diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-06 18:17:58 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:37 -0400 |
| commit | 2b2fa38e5f3f17a5e1ef3fe29a9869d93197ebfd (patch) | |
| tree | 22fd529a3e7993b0e0815047a19ca27c9f51bf87 /include/asm-ppc64 | |
| parent | 9317259ead88fe6c05120ae1e3ace99738e2c698 (diff) | |
[PATCH] Consolidate asm-ppc*/fcntl.h
These two files are basically identical, so make one just include the other
(protecting the 32-bit-only parts with __powerpc64__). Also remove some
completely unused defines.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64')
| -rw-r--r-- | include/asm-ppc64/fcntl.h | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/include/asm-ppc64/fcntl.h b/include/asm-ppc64/fcntl.h index 579a5292fd52..6526023b59ff 100644 --- a/include/asm-ppc64/fcntl.h +++ b/include/asm-ppc64/fcntl.h | |||
| @@ -1,65 +1 @@ | |||
| 1 | #ifndef _PPC64_FCNTL_H | #include <asm-ppc/fcntl.h> | |
| 2 | #define _PPC64_FCNTL_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * This program is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU General Public License | ||
| 7 | * as published by the Free Software Foundation; either version | ||
| 8 | * 2 of the License, or (at your option) any later version. | ||
| 9 | */ | ||
| 10 | |||
| 11 | /* open/fcntl - O_SYNC is only implemented on blocks devices and on files | ||
| 12 | located on an ext2 file system */ | ||
| 13 | #define O_CREAT 0100 /* not fcntl */ | ||
| 14 | #define O_EXCL 0200 /* not fcntl */ | ||
| 15 | #define O_NOCTTY 0400 /* not fcntl */ | ||
| 16 | #define O_TRUNC 01000 /* not fcntl */ | ||
| 17 | #define O_APPEND 02000 | ||
| 18 | #define O_NONBLOCK 04000 | ||
| 19 | #define O_NDELAY O_NONBLOCK | ||
| 20 | #define O_SYNC 010000 | ||
| 21 | #define FASYNC 020000 /* fcntl, for BSD compatibility */ | ||
| 22 | #define O_DIRECTORY 040000 /* must be a directory */ | ||
| 23 | #define O_NOFOLLOW 0100000 /* don't follow links */ | ||
| 24 | #define O_LARGEFILE 0200000 | ||
| 25 | #define O_DIRECT 0400000 /* direct disk access hint */ | ||
| 26 | #define O_NOATIME 01000000 | ||
| 27 | |||
| 28 | #define F_GETLK 5 | ||
| 29 | #define F_SETLK 6 | ||
| 30 | #define F_SETLKW 7 | ||
| 31 | |||
| 32 | #define F_SETOWN 8 /* for sockets. */ | ||
| 33 | #define F_GETOWN 9 /* for sockets. */ | ||
| 34 | #define F_SETSIG 10 /* for sockets. */ | ||
| 35 | #define F_GETSIG 11 /* for sockets. */ | ||
| 36 | |||
| 37 | /* for posix fcntl() and lockf() */ | ||
| 38 | #define F_RDLCK 0 | ||
| 39 | #define F_WRLCK 1 | ||
| 40 | #define F_UNLCK 2 | ||
| 41 | |||
| 42 | /* for old implementation of bsd flock () */ | ||
| 43 | #define F_EXLCK 4 /* or 3 */ | ||
| 44 | #define F_SHLCK 8 /* or 4 */ | ||
| 45 | |||
| 46 | /* for leases */ | ||
| 47 | #define F_INPROGRESS 16 | ||
| 48 | |||
| 49 | #ifdef __KERNEL__ | ||
| 50 | #define F_POSIX 1 | ||
| 51 | #define F_FLOCK 2 | ||
| 52 | #define F_BROKEN 4 /* broken flock() emulation */ | ||
| 53 | #endif /* __KERNEL__ */ | ||
| 54 | |||
| 55 | struct flock { | ||
| 56 | short l_type; | ||
| 57 | short l_whence; | ||
| 58 | off_t l_start; | ||
| 59 | off_t l_len; | ||
| 60 | pid_t l_pid; | ||
| 61 | }; | ||
| 62 | |||
| 63 | #include <asm-generic/fcntl.h> | ||
| 64 | |||
| 65 | #endif /* _PPC64_FCNTL_H */ | ||
