xref: /aosp_15_r20/prebuilts/build-tools/sysroots/i686-unknown-linux-musl/include/asm-generic/fcntl.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1*cda5da8dSAndroid Build Coastguard Worker /*
2*cda5da8dSAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*cda5da8dSAndroid Build Coastguard Worker  *
4*cda5da8dSAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*cda5da8dSAndroid Build Coastguard Worker  * for more information.
6*cda5da8dSAndroid Build Coastguard Worker  */
7*cda5da8dSAndroid Build Coastguard Worker #ifndef _ASM_GENERIC_FCNTL_H
8*cda5da8dSAndroid Build Coastguard Worker #define _ASM_GENERIC_FCNTL_H
9*cda5da8dSAndroid Build Coastguard Worker #include <bits/flock64.h>
10*cda5da8dSAndroid Build Coastguard Worker #include <bits/flock.h>
11*cda5da8dSAndroid Build Coastguard Worker #include <linux/types.h>
12*cda5da8dSAndroid Build Coastguard Worker #define O_ACCMODE 00000003
13*cda5da8dSAndroid Build Coastguard Worker #define O_RDONLY 00000000
14*cda5da8dSAndroid Build Coastguard Worker #define O_WRONLY 00000001
15*cda5da8dSAndroid Build Coastguard Worker #define O_RDWR 00000002
16*cda5da8dSAndroid Build Coastguard Worker #ifndef O_CREAT
17*cda5da8dSAndroid Build Coastguard Worker #define O_CREAT 00000100
18*cda5da8dSAndroid Build Coastguard Worker #endif
19*cda5da8dSAndroid Build Coastguard Worker #ifndef O_EXCL
20*cda5da8dSAndroid Build Coastguard Worker #define O_EXCL 00000200
21*cda5da8dSAndroid Build Coastguard Worker #endif
22*cda5da8dSAndroid Build Coastguard Worker #ifndef O_NOCTTY
23*cda5da8dSAndroid Build Coastguard Worker #define O_NOCTTY 00000400
24*cda5da8dSAndroid Build Coastguard Worker #endif
25*cda5da8dSAndroid Build Coastguard Worker #ifndef O_TRUNC
26*cda5da8dSAndroid Build Coastguard Worker #define O_TRUNC 00001000
27*cda5da8dSAndroid Build Coastguard Worker #endif
28*cda5da8dSAndroid Build Coastguard Worker #ifndef O_APPEND
29*cda5da8dSAndroid Build Coastguard Worker #define O_APPEND 00002000
30*cda5da8dSAndroid Build Coastguard Worker #endif
31*cda5da8dSAndroid Build Coastguard Worker #ifndef O_NONBLOCK
32*cda5da8dSAndroid Build Coastguard Worker #define O_NONBLOCK 00004000
33*cda5da8dSAndroid Build Coastguard Worker #endif
34*cda5da8dSAndroid Build Coastguard Worker #ifndef O_DSYNC
35*cda5da8dSAndroid Build Coastguard Worker #define O_DSYNC 00010000
36*cda5da8dSAndroid Build Coastguard Worker #endif
37*cda5da8dSAndroid Build Coastguard Worker #ifndef FASYNC
38*cda5da8dSAndroid Build Coastguard Worker #define FASYNC 00020000
39*cda5da8dSAndroid Build Coastguard Worker #endif
40*cda5da8dSAndroid Build Coastguard Worker #ifndef O_DIRECT
41*cda5da8dSAndroid Build Coastguard Worker #define O_DIRECT 00040000
42*cda5da8dSAndroid Build Coastguard Worker #endif
43*cda5da8dSAndroid Build Coastguard Worker #ifndef O_LARGEFILE
44*cda5da8dSAndroid Build Coastguard Worker #define O_LARGEFILE 00100000
45*cda5da8dSAndroid Build Coastguard Worker #endif
46*cda5da8dSAndroid Build Coastguard Worker #ifndef O_DIRECTORY
47*cda5da8dSAndroid Build Coastguard Worker #define O_DIRECTORY 00200000
48*cda5da8dSAndroid Build Coastguard Worker #endif
49*cda5da8dSAndroid Build Coastguard Worker #ifndef O_NOFOLLOW
50*cda5da8dSAndroid Build Coastguard Worker #define O_NOFOLLOW 00400000
51*cda5da8dSAndroid Build Coastguard Worker #endif
52*cda5da8dSAndroid Build Coastguard Worker #ifndef O_NOATIME
53*cda5da8dSAndroid Build Coastguard Worker #define O_NOATIME 01000000
54*cda5da8dSAndroid Build Coastguard Worker #endif
55*cda5da8dSAndroid Build Coastguard Worker #ifndef O_CLOEXEC
56*cda5da8dSAndroid Build Coastguard Worker #define O_CLOEXEC 02000000
57*cda5da8dSAndroid Build Coastguard Worker #endif
58*cda5da8dSAndroid Build Coastguard Worker #ifndef O_SYNC
59*cda5da8dSAndroid Build Coastguard Worker #define __O_SYNC 04000000
60*cda5da8dSAndroid Build Coastguard Worker #define O_SYNC (__O_SYNC | O_DSYNC)
61*cda5da8dSAndroid Build Coastguard Worker #endif
62*cda5da8dSAndroid Build Coastguard Worker #ifndef O_PATH
63*cda5da8dSAndroid Build Coastguard Worker #define O_PATH 010000000
64*cda5da8dSAndroid Build Coastguard Worker #endif
65*cda5da8dSAndroid Build Coastguard Worker #ifndef __O_TMPFILE
66*cda5da8dSAndroid Build Coastguard Worker #define __O_TMPFILE 020000000
67*cda5da8dSAndroid Build Coastguard Worker #endif
68*cda5da8dSAndroid Build Coastguard Worker #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
69*cda5da8dSAndroid Build Coastguard Worker #ifndef O_NDELAY
70*cda5da8dSAndroid Build Coastguard Worker #define O_NDELAY O_NONBLOCK
71*cda5da8dSAndroid Build Coastguard Worker #endif
72*cda5da8dSAndroid Build Coastguard Worker #define F_DUPFD 0
73*cda5da8dSAndroid Build Coastguard Worker #define F_GETFD 1
74*cda5da8dSAndroid Build Coastguard Worker #define F_SETFD 2
75*cda5da8dSAndroid Build Coastguard Worker #define F_GETFL 3
76*cda5da8dSAndroid Build Coastguard Worker #define F_SETFL 4
77*cda5da8dSAndroid Build Coastguard Worker #ifndef F_GETLK
78*cda5da8dSAndroid Build Coastguard Worker #define F_GETLK 5
79*cda5da8dSAndroid Build Coastguard Worker #define F_SETLK 6
80*cda5da8dSAndroid Build Coastguard Worker #define F_SETLKW 7
81*cda5da8dSAndroid Build Coastguard Worker #endif
82*cda5da8dSAndroid Build Coastguard Worker #ifndef F_SETOWN
83*cda5da8dSAndroid Build Coastguard Worker #define F_SETOWN 8
84*cda5da8dSAndroid Build Coastguard Worker #define F_GETOWN 9
85*cda5da8dSAndroid Build Coastguard Worker #endif
86*cda5da8dSAndroid Build Coastguard Worker #ifndef F_SETSIG
87*cda5da8dSAndroid Build Coastguard Worker #define F_SETSIG 10
88*cda5da8dSAndroid Build Coastguard Worker #define F_GETSIG 11
89*cda5da8dSAndroid Build Coastguard Worker #endif
90*cda5da8dSAndroid Build Coastguard Worker #if __BITS_PER_LONG == 32
91*cda5da8dSAndroid Build Coastguard Worker #ifndef F_GETLK64
92*cda5da8dSAndroid Build Coastguard Worker #define F_GETLK64 12
93*cda5da8dSAndroid Build Coastguard Worker #define F_SETLK64 13
94*cda5da8dSAndroid Build Coastguard Worker #define F_SETLKW64 14
95*cda5da8dSAndroid Build Coastguard Worker #endif
96*cda5da8dSAndroid Build Coastguard Worker #endif
97*cda5da8dSAndroid Build Coastguard Worker #ifndef F_SETOWN_EX
98*cda5da8dSAndroid Build Coastguard Worker #define F_SETOWN_EX 15
99*cda5da8dSAndroid Build Coastguard Worker #define F_GETOWN_EX 16
100*cda5da8dSAndroid Build Coastguard Worker #endif
101*cda5da8dSAndroid Build Coastguard Worker #ifndef F_GETOWNER_UIDS
102*cda5da8dSAndroid Build Coastguard Worker #define F_GETOWNER_UIDS 17
103*cda5da8dSAndroid Build Coastguard Worker #endif
104*cda5da8dSAndroid Build Coastguard Worker #define F_OFD_GETLK 36
105*cda5da8dSAndroid Build Coastguard Worker #define F_OFD_SETLK 37
106*cda5da8dSAndroid Build Coastguard Worker #define F_OFD_SETLKW 38
107*cda5da8dSAndroid Build Coastguard Worker #define F_OWNER_TID 0
108*cda5da8dSAndroid Build Coastguard Worker #define F_OWNER_PID 1
109*cda5da8dSAndroid Build Coastguard Worker #define F_OWNER_PGRP 2
110*cda5da8dSAndroid Build Coastguard Worker struct f_owner_ex {
111*cda5da8dSAndroid Build Coastguard Worker   int type;
112*cda5da8dSAndroid Build Coastguard Worker   __kernel_pid_t pid;
113*cda5da8dSAndroid Build Coastguard Worker };
114*cda5da8dSAndroid Build Coastguard Worker #define FD_CLOEXEC 1
115*cda5da8dSAndroid Build Coastguard Worker #ifndef F_RDLCK
116*cda5da8dSAndroid Build Coastguard Worker #define F_RDLCK 0
117*cda5da8dSAndroid Build Coastguard Worker #define F_WRLCK 1
118*cda5da8dSAndroid Build Coastguard Worker #define F_UNLCK 2
119*cda5da8dSAndroid Build Coastguard Worker #endif
120*cda5da8dSAndroid Build Coastguard Worker #ifndef F_EXLCK
121*cda5da8dSAndroid Build Coastguard Worker #define F_EXLCK 4
122*cda5da8dSAndroid Build Coastguard Worker #define F_SHLCK 8
123*cda5da8dSAndroid Build Coastguard Worker #endif
124*cda5da8dSAndroid Build Coastguard Worker #define LOCK_SH 1
125*cda5da8dSAndroid Build Coastguard Worker #define LOCK_EX 2
126*cda5da8dSAndroid Build Coastguard Worker #define LOCK_NB 4
127*cda5da8dSAndroid Build Coastguard Worker #define LOCK_UN 8
128*cda5da8dSAndroid Build Coastguard Worker #define LOCK_MAND 32
129*cda5da8dSAndroid Build Coastguard Worker #define LOCK_READ 64
130*cda5da8dSAndroid Build Coastguard Worker #define LOCK_WRITE 128
131*cda5da8dSAndroid Build Coastguard Worker #define LOCK_RW 192
132*cda5da8dSAndroid Build Coastguard Worker #define F_LINUX_SPECIFIC_BASE 1024
133*cda5da8dSAndroid Build Coastguard Worker #ifndef HAVE_ARCH_STRUCT_FLOCK
134*cda5da8dSAndroid Build Coastguard Worker #endif
135*cda5da8dSAndroid Build Coastguard Worker #endif
136