aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-m32r
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-m32r')
-rw-r--r--include/asm-m32r/fcntl.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/include/asm-m32r/fcntl.h b/include/asm-m32r/fcntl.h
index 3e3089572028..3372bf915547 100644
--- a/include/asm-m32r/fcntl.h
+++ b/include/asm-m32r/fcntl.h
@@ -7,10 +7,6 @@
7 7
8/* open/fcntl - O_SYNC is only implemented on blocks devices and on files 8/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
9 located on an ext2 file system */ 9 located on an ext2 file system */
10#define O_ACCMODE 0003
11#define O_RDONLY 00
12#define O_WRONLY 01
13#define O_RDWR 02
14#define O_CREAT 0100 /* not fcntl */ 10#define O_CREAT 0100 /* not fcntl */
15#define O_EXCL 0200 /* not fcntl */ 11#define O_EXCL 0200 /* not fcntl */
16#define O_NOCTTY 0400 /* not fcntl */ 12#define O_NOCTTY 0400 /* not fcntl */
@@ -26,11 +22,6 @@
26#define O_NOFOLLOW 0400000 /* don't follow links */ 22#define O_NOFOLLOW 0400000 /* don't follow links */
27#define O_NOATIME 01000000 23#define O_NOATIME 01000000
28 24
29#define F_DUPFD 0 /* dup */
30#define F_GETFD 1 /* get close_on_exec */
31#define F_SETFD 2 /* set/clear close_on_exec */
32#define F_GETFL 3 /* get file->f_flags */
33#define F_SETFL 4 /* set file->f_flags */
34#define F_GETLK 5 25#define F_GETLK 5
35#define F_SETLK 6 26#define F_SETLK 6
36#define F_SETLKW 7 27#define F_SETLKW 7
@@ -44,9 +35,6 @@
44#define F_SETLK64 13 35#define F_SETLK64 13
45#define F_SETLKW64 14 36#define F_SETLKW64 14
46 37
47/* for F_[GET|SET]FL */
48#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
49
50/* for posix fcntl() and lockf() */ 38/* for posix fcntl() and lockf() */
51#define F_RDLCK 0 39#define F_RDLCK 0
52#define F_WRLCK 1 40#define F_WRLCK 1
@@ -59,18 +47,6 @@
59/* for leases */ 47/* for leases */
60#define F_INPROGRESS 16 48#define F_INPROGRESS 16
61 49
62/* operations for bsd flock(), also used by the kernel implementation */
63#define LOCK_SH 1 /* shared lock */
64#define LOCK_EX 2 /* exclusive lock */
65#define LOCK_NB 4 /* or'd with one of the above to prevent
66 blocking */
67#define LOCK_UN 8 /* remove lock */
68
69#define LOCK_MAND 32 /* This is a mandatory flock */
70#define LOCK_READ 64 /* ... Which allows concurrent read operations */
71#define LOCK_WRITE 128 /* ... Which allows concurrent write operations */
72#define LOCK_RW 192 /* ... Which allows concurrent read & write ops */
73
74struct flock { 50struct flock {
75 short l_type; 51 short l_type;
76 short l_whence; 52 short l_whence;
@@ -87,6 +63,6 @@ struct flock64 {
87 pid_t l_pid; 63 pid_t l_pid;
88}; 64};
89 65
90#define F_LINUX_SPECIFIC_BASE 1024 66#include <asm-generic/fcntl.h>
91 67
92#endif /* _ASM_M32R_FCNTL_H */ 68#endif /* _ASM_M32R_FCNTL_H */