]> granicus.if.org Git - strace/blob - flock.h
tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
[strace] / flock.h
1 /*
2  * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3  * Copyright (c) 2015-2018 The strace developers.
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  */
8
9 #ifndef STRACE_FLOCK_H
10 # define STRACE_FLOCK_H
11
12 # include <linux/fcntl.h>
13
14 # if defined HAVE_STRUCT_FLOCK
15 typedef struct flock struct_kernel_flock;
16 # elif defined HAVE_STRUCT___KERNEL_FLOCK
17 typedef struct __kernel_flock struct_kernel_flock;
18 # else
19 #  error struct flock definition not found in <linux/fcntl.h>
20 # endif
21
22 # if defined HAVE_STRUCT_FLOCK64
23 typedef struct flock64 struct_kernel_flock64;
24 # elif defined HAVE_STRUCT___KERNEL_FLOCK64
25 typedef struct __kernel_flock64 struct_kernel_flock64;
26 # else
27 #  error struct flock64 definition not found in <linux/fcntl.h>
28 # endif
29
30 #endif /* !STRACE_FLOCK_H */