util-lib: split out fd-related operations into fd-util.[ch]

There are more than enough to deserve their own .c file, hence move them
over.
This commit is contained in:
Lennart Poettering
2015-10-25 13:19:18 +01:00
parent 04c0136989
commit 3ffd4af220
275 changed files with 982 additions and 668 deletions
+2 -1
View File
@@ -26,10 +26,11 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include "clock-util.h"
#include "fd-util.h"
#include "macro.h"
#include "string-util.h"
#include "util.h"
#include "clock-util.h"
int clock_get_hwclock(struct tm *tm) {
_cleanup_close_ int fd = -1;