]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/lockfile-util.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / shared / lockfile-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
cd2eb9e9
CW
2#pragma once
3
cd2eb9e9
CW
4typedef struct LockFile {
5 char *path;
6 int fd;
7 int operation;
8} LockFile;
9
10int make_lock_file(const char *p, int operation, LockFile *ret);
11int make_lock_file_for(const char *p, int operation, LockFile *ret);
12void release_lock_file(LockFile *f);
13
cd2eb9e9 14#define LOCK_FILE_INIT { .fd = -1, .path = NULL }