summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-05-04 16:12:46 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-05-05 22:35:29 -0400
commitcd2eb9e942eb380a5419cc978ad494807540d357 (patch)
tree80bcd2d6237236648e38b45b74e6d866a9c9bd74 /src/shared/util.h
parent7e7cddb22493642dad826ec42ac00979f40b2d17 (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.h14
1 files changed, 0 insertions, 14 deletions
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);