[PATCH] Clean up the fcntl operations
[linux-drm-fsl-dcu.git] / include / asm-s390 / fcntl.h
1 /*
2  *  include/asm-s390/fcntl.h
3  *
4  *  S390 version
5  *
6  *  Derived from "include/asm-i386/fcntl.h"
7  */
8 #ifndef _S390_FCNTL_H
9 #define _S390_FCNTL_H
10
11 #ifndef __s390x__
12 #define F_GETLK64       12      /*  using 'struct flock64' */
13 #define F_SETLK64       13
14 #define F_SETLKW64      14
15 #endif /* ! __s390x__ */
16
17 struct flock {
18         short l_type;
19         short l_whence;
20         off_t l_start;
21         off_t l_len;
22         pid_t l_pid;
23 };
24
25 #ifndef __s390x__
26 struct flock64 {
27         short  l_type;
28         short  l_whence;
29         loff_t l_start;
30         loff_t l_len;
31         pid_t  l_pid;
32 };
33 #endif
34
35 #include <asm-generic/fcntl.h>
36
37 #endif