diff options
author | Colin Walters <walters@verbum.org> | 2015-05-04 16:12:46 -0400 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 08:21:10 +0100 |
commit | 7dc61c4539d8d96c7e858ab22b433194afbc5a0e (patch) | |
tree | eb3bd3c4cabbce4468fe3ad11f2eb3e27bd88191 /src/shared/util.h | |
parent | 86bdfce4885106a833847da2199fca1250ba5851 (diff) |
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.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 5b2a08389..bfa3e4429 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -881,20 +881,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); |