Indent the C preprocessor directives to reflect their nesting using the following script: $ cppi -l $(git grep -El '^[[:space:]]*#[[:space:]]*(if|ifdef|ifndef|elif|else|endif|define|pragma)[[:space:]]' |grep -v '\.sh$') |while read f; do cppi < "$f" > "$f".cppi; mv "$f".cppi "$f" done
31 lines
794 B
C
31 lines
794 B
C
/*
|
|
* Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
|
|
* Copyright (c) 2015-2018 The strace developers.
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#ifndef STRACE_FLOCK_H
|
|
# define STRACE_FLOCK_H
|
|
|
|
# include <linux/fcntl.h>
|
|
|
|
# if defined HAVE_STRUCT_FLOCK
|
|
typedef struct flock struct_kernel_flock;
|
|
# elif defined HAVE_STRUCT___KERNEL_FLOCK
|
|
typedef struct __kernel_flock struct_kernel_flock;
|
|
# else
|
|
# error struct flock definition not found in <linux/fcntl.h>
|
|
# endif
|
|
|
|
# if defined HAVE_STRUCT_FLOCK64
|
|
typedef struct flock64 struct_kernel_flock64;
|
|
# elif defined HAVE_STRUCT___KERNEL_FLOCK64
|
|
typedef struct __kernel_flock64 struct_kernel_flock64;
|
|
# else
|
|
# error struct flock64 definition not found in <linux/fcntl.h>
|
|
# endif
|
|
|
|
#endif /* !STRACE_FLOCK_H */
|