Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ALPHA_FCNTL_H |
| 2 | #define _ALPHA_FCNTL_H |
| 3 | |
| 4 | /* open/fcntl - O_SYNC is only implemented on blocks devices and on files |
| 5 | located on an ext2 file system */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #define O_CREAT 01000 /* not fcntl */ |
| 7 | #define O_TRUNC 02000 /* not fcntl */ |
| 8 | #define O_EXCL 04000 /* not fcntl */ |
| 9 | #define O_NOCTTY 010000 /* not fcntl */ |
| 10 | |
| 11 | #define O_NONBLOCK 00004 |
| 12 | #define O_APPEND 00010 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #define O_SYNC 040000 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define O_DIRECTORY 0100000 /* must be a directory */ |
| 15 | #define O_NOFOLLOW 0200000 /* don't follow links */ |
| 16 | #define O_LARGEFILE 0400000 /* will be set by the kernel on every open */ |
| 17 | #define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */ |
| 18 | #define O_NOATIME 04000000 |
Richard Henderson | 620b5e6 | 2007-08-08 13:17:08 -0700 | [diff] [blame] | 19 | #define O_CLOEXEC 010000000 /* set close_on_exec */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #define F_GETLK 7 |
| 22 | #define F_SETLK 8 |
| 23 | #define F_SETLKW 9 |
| 24 | |
| 25 | #define F_SETOWN 5 /* for sockets. */ |
| 26 | #define F_GETOWN 6 /* for sockets. */ |
| 27 | #define F_SETSIG 10 /* for sockets. */ |
| 28 | #define F_GETSIG 11 /* for sockets. */ |
Peter Zijlstra | 71ccb83 | 2009-11-11 14:26:27 -0800 | [diff] [blame] | 29 | #define F_SETOWN_EX 15 |
| 30 | #define F_GETOWN_EX 16 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | /* for posix fcntl() and lockf() */ |
| 33 | #define F_RDLCK 1 |
| 34 | #define F_WRLCK 2 |
| 35 | #define F_UNLCK 8 |
| 36 | |
| 37 | /* for old implementation of bsd flock () */ |
| 38 | #define F_EXLCK 16 /* or 3 */ |
| 39 | #define F_SHLCK 32 /* or 4 */ |
| 40 | |
| 41 | #define F_INPROGRESS 64 |
| 42 | |
Stephen Rothwell | 9317259 | 2005-09-06 15:17:57 -0700 | [diff] [blame] | 43 | #include <asm-generic/fcntl.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
| 45 | #endif |