1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _ASM_GENERIC_FCNTL_H
13 #define _ASM_GENERIC_FCNTL_H
15 #include <linux/types.h>
17 #define O_ACCMODE 00000003
18 #define O_RDONLY 00000000
19 #define O_WRONLY 00000001
20 #define O_RDWR 00000002
22 #define O_CREAT 00000100
25 #define O_EXCL 00000200
28 #define O_NOCTTY 00000400
31 #define O_TRUNC 00001000
34 #define O_APPEND 00002000
37 #define O_NONBLOCK 00004000
40 #define O_SYNC 00010000
43 #define FASYNC 00020000
46 #define O_DIRECT 00040000
49 #define O_LARGEFILE 00100000
52 #define O_DIRECTORY 00200000
55 #define O_NOFOLLOW 00400000
58 #define O_NOATIME 01000000
61 #define O_NDELAY O_NONBLOCK
97 #define F_INPROGRESS 16
107 #define LOCK_WRITE 128
110 #define F_LINUX_SPECIFIC_BASE 1024
112 #ifndef HAVE_ARCH_STRUCT_FLOCK
113 #ifndef __ARCH_FLOCK_PAD
114 #define __ARCH_FLOCK_PAD
130 #define F_SETLKW64 14
133 #ifndef HAVE_ARCH_STRUCT_FLOCK64
134 #ifndef __ARCH_FLOCK64_PAD
135 #define __ARCH_FLOCK64_PAD