X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Ffcntl.h;h=86037400a6e380f8ec5b1bd31acc6ebfbb296bd1;hb=13c48c490208d9e70d8d66d56f96c5054db69af7;hp=8a7c82151de96388fd53c7f06296783bd247b14d;hpb=2fca877b68b2b4fc5b94277858a1bedd46017cde;p=linux-2.6 diff --git a/include/linux/fcntl.h b/include/linux/fcntl.h index 8a7c82151d..86037400a6 100644 --- a/include/linux/fcntl.h +++ b/include/linux/fcntl.h @@ -3,8 +3,17 @@ #include -#define F_SETLEASE (F_LINUX_SPECIFIC_BASE+0) -#define F_GETLEASE (F_LINUX_SPECIFIC_BASE+1) +#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) +#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1) + +/* + * Cancel a blocking posix lock; internal use only until we expose an + * asynchronous lock api to userspace: + */ +#define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5) + +/* Create a file descriptor with FD_CLOEXEC set. */ +#define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6) /* * Request nofications on a directory. @@ -23,6 +32,14 @@ #define DN_ATTRIB 0x00000020 /* File changed attibutes */ #define DN_MULTISHOT 0x80000000 /* Don't remove notifier */ +#define AT_FDCWD -100 /* Special value used to indicate + openat should use the current + working directory. */ +#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */ +#define AT_REMOVEDIR 0x200 /* Remove directory instead of + unlinking file. */ +#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */ + #ifdef __KERNEL__ #ifndef force_o_largefile