]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/lockfile-util.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / shared / lockfile-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 typedef struct LockFile {
5 char *path;
6 int fd;
7 int operation;
8 } LockFile;
9
10 int make_lock_file(const char *p, int operation, LockFile *ret);
11 int make_lock_file_for(const char *p, int operation, LockFile *ret);
12 void release_lock_file(LockFile *f);
13
14 #define LOCK_FILE_INIT { .fd = -1, .path = NULL }