xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/linux/fcntl.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1 #ifndef _LINUX_FCNTL_H
2 #define _LINUX_FCNTL_H
3 
4 #include <asm/fcntl.h>
5 
6 #define F_SETLEASE	(F_LINUX_SPECIFIC_BASE + 0)
7 #define F_GETLEASE	(F_LINUX_SPECIFIC_BASE + 1)
8 
9 /*
10  * Cancel a blocking posix lock; internal use only until we expose an
11  * asynchronous lock api to userspace:
12  */
13 #define F_CANCELLK	(F_LINUX_SPECIFIC_BASE + 5)
14 
15 /* Create a file descriptor with FD_CLOEXEC set. */
16 #define F_DUPFD_CLOEXEC	(F_LINUX_SPECIFIC_BASE + 6)
17 
18 /*
19  * Request nofications on a directory.
20  * See below for events that may be notified.
21  */
22 #define F_NOTIFY	(F_LINUX_SPECIFIC_BASE+2)
23 
24 /*
25  * Types of directory notifications that may be requested.
26  */
27 #define DN_ACCESS	0x00000001	/* File accessed */
28 #define DN_MODIFY	0x00000002	/* File modified */
29 #define DN_CREATE	0x00000004	/* File created */
30 #define DN_DELETE	0x00000008	/* File removed */
31 #define DN_RENAME	0x00000010	/* File renamed */
32 #define DN_ATTRIB	0x00000020	/* File changed attibutes */
33 #define DN_MULTISHOT	0x80000000	/* Don't remove notifier */
34 
35 #define AT_FDCWD		-100    /* Special value used to indicate
36                                            openat should use the current
37                                            working directory. */
38 #define AT_SYMLINK_NOFOLLOW	0x100   /* Do not follow symbolic links.  */
39 #define AT_REMOVEDIR		0x200   /* Remove directory instead of
40                                            unlinking file.  */
41 #define AT_SYMLINK_FOLLOW	0x400   /* Follow symbolic links.  */
42 
43 
44 #endif
45