[PATCH] Consolidate asm-ppc*/fcntl.h
[deliverable/linux.git] / include / asm-ppc / fcntl.h
CommitLineData
1da177e4
LT
1#ifndef _PPC_FCNTL_H
2#define _PPC_FCNTL_H
3
4/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
5 located on an ext2 file system */
1da177e4
LT
6#define O_CREAT 0100 /* not fcntl */
7#define O_EXCL 0200 /* not fcntl */
8#define O_NOCTTY 0400 /* not fcntl */
9#define O_TRUNC 01000 /* not fcntl */
10#define O_APPEND 02000
11#define O_NONBLOCK 04000
12#define O_NDELAY O_NONBLOCK
13#define O_SYNC 010000
14#define FASYNC 020000 /* fcntl, for BSD compatibility */
15#define O_DIRECTORY 040000 /* must be a directory */
16#define O_NOFOLLOW 0100000 /* don't follow links */
17#define O_LARGEFILE 0200000
18#define O_DIRECT 0400000 /* direct disk access hint */
19#define O_NOATIME 01000000
20
1da177e4
LT
21#define F_GETLK 5
22#define F_SETLK 6
23#define F_SETLKW 7
24
25#define F_SETOWN 8 /* for sockets. */
26#define F_GETOWN 9 /* for sockets. */
27#define F_SETSIG 10 /* for sockets. */
28#define F_GETSIG 11 /* for sockets. */
29
2b2fa38e 30#ifndef __powerpc64__
1da177e4
LT
31#define F_GETLK64 12 /* using 'struct flock64' */
32#define F_SETLK64 13
33#define F_SETLKW64 14
2b2fa38e 34#endif
1da177e4 35
1da177e4
LT
36/* for posix fcntl() and lockf() */
37#define F_RDLCK 0
38#define F_WRLCK 1
39#define F_UNLCK 2
40
41/* for old implementation of bsd flock () */
42#define F_EXLCK 4 /* or 3 */
43#define F_SHLCK 8 /* or 4 */
44
45/* for leases */
46#define F_INPROGRESS 16
47
1da177e4
LT
48struct flock {
49 short l_type;
50 short l_whence;
51 off_t l_start;
52 off_t l_len;
53 pid_t l_pid;
54};
55
2b2fa38e 56#ifndef __powerpc64__
1da177e4
LT
57struct flock64 {
58 short l_type;
59 short l_whence;
60 loff_t l_start;
61 loff_t l_len;
62 pid_t l_pid;
63};
2b2fa38e 64#endif
1da177e4 65
9317259e
SR
66#include <asm-generic/fcntl.h>
67
2b2fa38e 68#endif /* _PPC_FCNTL_H */
This page took 0.05601 seconds and 5 git commands to generate.