blob: 9e0191c31e3b67beea757868720b1b35ef3588d4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_M32R_FCNTL_H
2#define _ASM_M32R_FCNTL_H
3
4/* $Id$ */
5
6/* orig : i386 2.4.18 */
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#define F_GETLK 5
9#define F_SETLK 6
10#define F_SETLKW 7
11
12#define F_SETOWN 8 /* for sockets. */
13#define F_GETOWN 9 /* for sockets. */
14#define F_SETSIG 10 /* for sockets. */
15#define F_GETSIG 11 /* for sockets. */
16
17#define F_GETLK64 12 /* using 'struct flock64' */
18#define F_SETLK64 13
19#define F_SETLKW64 14
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021/* for posix fcntl() and lockf() */
22#define F_RDLCK 0
23#define F_WRLCK 1
24#define F_UNLCK 2
25
26/* for old implementation of bsd flock () */
27#define F_EXLCK 4 /* or 3 */
28#define F_SHLCK 8 /* or 4 */
29
30/* for leases */
31#define F_INPROGRESS 16
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033struct flock {
34 short l_type;
35 short l_whence;
36 off_t l_start;
37 off_t l_len;
38 pid_t l_pid;
39};
40
41struct flock64 {
42 short l_type;
43 short l_whence;
44 loff_t l_start;
45 loff_t l_len;
46 pid_t l_pid;
47};
48
Stephen Rothwell93172592005-09-06 15:17:57 -070049#include <asm-generic/fcntl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
51#endif /* _ASM_M32R_FCNTL_H */