X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fshared%2Futil.h;fp=src%2Fshared%2Futil.h;h=bfa3e4429c298af829c857e6d8fb5c7a6f30803b;hb=7dc61c4539d8d96c7e858ab22b433194afbc5a0e;hp=5b2a08389e5a5422ab6412ae87ee407ed0bfa45b;hpb=86bdfce4885106a833847da2199fca1250ba5851;p=elogind.git 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);