[PATCH] Clean up the open flags
[deliverable/linux.git] / include / asm-m68k / fcntl.h
1 #ifndef _M68K_FCNTL_H
2 #define _M68K_FCNTL_H
3
4 #define O_DIRECTORY 040000 /* must be a directory */
5 #define O_NOFOLLOW 0100000 /* don't follow links */
6 #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */
7 #define O_LARGEFILE 0400000
8
9 #define F_GETLK 5
10 #define F_SETLK 6
11 #define F_SETLKW 7
12
13 #define F_SETOWN 8 /* for sockets. */
14 #define F_GETOWN 9 /* for sockets. */
15 #define F_SETSIG 10 /* for sockets. */
16 #define F_GETSIG 11 /* for sockets. */
17
18 #define F_GETLK64 12 /* using 'struct flock64' */
19 #define F_SETLK64 13
20 #define F_SETLKW64 14
21
22 /* for posix fcntl() and lockf() */
23 #define F_RDLCK 0
24 #define F_WRLCK 1
25 #define F_UNLCK 2
26
27 /* for old implementation of bsd flock () */
28 #define F_EXLCK 4 /* or 3 */
29 #define F_SHLCK 8 /* or 4 */
30
31 /* for leases */
32 #define F_INPROGRESS 16
33
34 struct flock {
35 short l_type;
36 short l_whence;
37 off_t l_start;
38 off_t l_len;
39 pid_t l_pid;
40 };
41
42 struct flock64 {
43 short l_type;
44 short l_whence;
45 loff_t l_start;
46 loff_t l_len;
47 pid_t l_pid;
48 };
49
50 #include <asm-generic/fcntl.h>
51
52 #endif /* _M68K_FCNTL_H */
This page took 0.043509 seconds and 6 git commands to generate.