Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

flock.h 794B

123456789101112131415161718192021222324252627282930
  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. #ifndef STRACE_FLOCK_H
  9. # define STRACE_FLOCK_H
  10. # include <linux/fcntl.h>
  11. # if defined HAVE_STRUCT_FLOCK
  12. typedef struct flock struct_kernel_flock;
  13. # elif defined HAVE_STRUCT___KERNEL_FLOCK
  14. typedef struct __kernel_flock struct_kernel_flock;
  15. # else
  16. # error struct flock definition not found in <linux/fcntl.h>
  17. # endif
  18. # if defined HAVE_STRUCT_FLOCK64
  19. typedef struct flock64 struct_kernel_flock64;
  20. # elif defined HAVE_STRUCT___KERNEL_FLOCK64
  21. typedef struct __kernel_flock64 struct_kernel_flock64;
  22. # else
  23. # error struct flock64 definition not found in <linux/fcntl.h>
  24. # endif
  25. #endif /* !STRACE_FLOCK_H */