2 * arch/mips/include/klibc/archfcntl.h
4 * On MIPS, <asm/fcntl.h> isn't usable (compiling struct stat with
5 * the correct definitions doesn't "just work"), so we need to provide
9 #ifndef _KLIBC_ARCHFCNTL_H
10 #define _KLIBC_ARCHFCNTL_H
12 #ifdef _ASM_FCNTL_H /* We were too late! */
13 # error "<asm/fcntl.h> included before <klibc/archfcntl.h>"
15 #define _ASM_FCNTL_H /* Keep <asm/fcntl.h> from getting included */
17 #define O_ACCMODE 0x0003
18 #define O_RDONLY 0x0000
19 #define O_WRONLY 0x0001
21 #define O_APPEND 0x0008
23 #define O_NONBLOCK 0x0080
24 #define O_CREAT 0x0100
25 #define O_TRUNC 0x0200
27 #define O_NOCTTY 0x0800
29 #define O_LARGEFILE 0x2000
30 #define O_DIRECT 0x8000
31 #define O_DIRECTORY 0x10000
32 #define O_NOFOLLOW 0x20000
33 #define O_NOATIME 0x40000
35 #define O_NDELAY O_NONBLOCK
64 #define F_INPROGRESS 16
73 #define LOCK_WRITE 128
76 typedef struct flock {
84 #define F_LINUX_SPECIFIC_BASE 1024
86 #endif /* _KLIBC_ARCHFCNTL_H */