]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - include/asm-m32r/fcntl.h
9e0191c31e3b67beea757868720b1b35ef3588d4
[karo-tx-linux.git] / include / asm-m32r / fcntl.h
1 #ifndef _ASM_M32R_FCNTL_H
2 #define _ASM_M32R_FCNTL_H
3
4 /* $Id$ */
5
6 /* orig : i386 2.4.18 */
7
8 #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
21 /* 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
33 struct 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
41 struct 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
49 #include <asm-generic/fcntl.h>
50
51 #endif  /* _ASM_M32R_FCNTL_H */