• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* asm-generic/fcntl.h */
2F_DUPFD		0
3F_GETFD		1
4F_SETFD		2
5F_GETFL		3
6F_SETFL		4
7
8#if defined __alpha__ || defined __sparc__
9F_GETLK		7
10#elif defined __mips__
11F_GETLK		14
12#else
13F_GETLK		5
14#endif
15
16#if defined __alpha__ || defined __sparc__
17F_SETLK		8
18F_SETLKW	9
19#else
20F_SETLK		6
21F_SETLKW	7
22#endif
23
24#if defined __alpha__
25F_SETOWN	5
26F_GETOWN	6
27#elif defined __hppa__
28F_GETOWN	11
29F_SETOWN	12
30#elif defined __mips__
31F_GETOWN	23
32F_SETOWN	24
33#elif defined __sparc__
34F_GETOWN	5
35F_SETOWN	6
36#else
37F_SETOWN	8
38F_GETOWN	9
39#endif
40
41#ifdef __hppa__
42F_SETSIG	13
43F_GETSIG	14
44#else
45F_SETSIG	10
46F_GETSIG	11
47#endif
48
49#if defined __hppa__
50F_GETLK64	8
51F_SETLK64	9
52F_SETLKW64	10
53#elif defined __mips__ && !defined __mips64
54F_GETLK64	33
55F_SETLK64	34
56F_SETLKW64	35
57#else
58F_GETLK64	12
59F_SETLK64	13
60F_SETLKW64	14
61#endif
62
63#ifndef STRACE_WORKAROUND_FOR_F_OWNER_EX
64# define STRACE_WORKAROUND_FOR_F_OWNER_EX
65/*
66 * Linux kernel commit v2.6.32-rc7~23 has changed values of F_SETOWN_EX
67 * and F_GETOWN_EX constants introduced by commit v2.6.32-rc1~96 to fix
68 * the conflict with F_GETLK64 and F_SETLK64 constants.
69 * Looks like the best way to handle this situation is to pretend that
70 * old values of F_SETOWN_EX and F_GETOWN_EX didn't exist.
71 */
72# if defined F_SETOWN_EX && F_SETOWN_EX != 15
73#  warning invalid value of F_SETOWN_EX ignored
74# endif
75# undef F_SETOWN_EX
76# if defined F_GETOWN_EX && F_GETOWN_EX != 16
77#  warning invalid value of F_GETOWN_EX ignored
78# endif
79# undef F_GETOWN_EX
80#endif
81F_SETOWN_EX	15
82F_GETOWN_EX	16
83
84F_GETOWNER_UIDS	17
85F_OFD_GETLK	36
86F_OFD_SETLK	37
87F_OFD_SETLKW	38
88
89/* linux/fcntl.h */
90F_SETLEASE	(1024 + 0)
91F_GETLEASE	(1024 + 1)
92F_NOTIFY	(1024 + 2)
93F_CANCELLK	(1024 + 5)
94F_DUPFD_CLOEXEC	(1024 + 6)
95F_SETPIPE_SZ	(1024 + 7)
96F_GETPIPE_SZ	(1024 + 8)
97F_ADD_SEALS	(1024 + 9)
98F_GET_SEALS	(1024 + 10)
99