From cd2eb9e942eb380a5419cc978ad494807540d357 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 4 May 2015 16:12:46 -0400 Subject: lockfile-util.[ch]: Split out from util.[ch] Continuing the general trend of splitting up util.[ch]. I specifically want to reuse this code in https://github.com/GNOME/libglnx and having it split up will make future copy-pasting easier. --- src/shared/util.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index 9409ad98b6..4a67d5c716 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -882,20 +882,6 @@ int chattr_path(const char *p, unsigned value, unsigned mask); int read_attr_fd(int fd, unsigned *ret); int read_attr_path(const char *p, unsigned *ret); -typedef struct LockFile { - char *path; - int fd; - int operation; -} LockFile; - -int make_lock_file(const char *p, int operation, LockFile *ret); -int make_lock_file_for(const char *p, int operation, LockFile *ret); -void release_lock_file(LockFile *f); - -#define _cleanup_release_lock_file_ _cleanup_(release_lock_file) - -#define LOCK_FILE_INIT { .fd = -1, .path = NULL } - #define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim }) ssize_t sparse_write(int fd, const void *p, size_t sz, size_t run_length); -- cgit v1.2.3-54-g00ecf