[systemd-devel] split util.[ch] ?
Ronny Chevalier
chevalier.ronny at gmail.com
Fri Apr 10 09:19:50 PDT 2015
Hi,
Every time src/shared/util.h is modified nearly all systemd code base
needs to be rebuilt, since it is included in lots of files (402/1029)
I think it would be great to split util.[ch] in multiple files (like
with copy.c, file-io.c, ...), and I think there is plenty of functions
that can be moved away of util.c.
- util-escape: Functions related to escaping
- util-string: Functions/macros like streq, strempty, endswith,...
- util-process: Functions that fetch process information
- util-safe: Functions that convert string to i64, u64, li, u16,...
- util-random: Functions to get random bytes, u64,...
- util-terminal: Functions/macros related to terminals/tty
- [...]
What do you think?
Is it worth it?
More information about the systemd-devel
mailing list