diff options
author | rofl0r <retnyg@gmx.net> | 2012-12-06 17:48:11 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2012-12-06 17:48:16 +0100 |
commit | 120e402de66bf0791a4f76dd1ee0e089809814f3 (patch) | |
tree | 4fcdbd935ddb97348c6b56af3bdccbab35217624 /include/fcntl.h | |
parent | 3d3903fa5bd18f66c4f22fb766615d84b9519aa0 (diff) | |
download | musl-120e402de66bf0791a4f76dd1ee0e089809814f3.tar.gz musl-120e402de66bf0791a4f76dd1ee0e089809814f3.tar.bz2 musl-120e402de66bf0791a4f76dd1ee0e089809814f3.tar.xz musl-120e402de66bf0791a4f76dd1ee0e089809814f3.zip |
fcntl.h: add some linux-specific F_ macros
thankfully these are all generic across archs.
the DN_ macros are for usage with F_NOTIFY.
Diffstat (limited to 'include/fcntl.h')
-rw-r--r-- | include/fcntl.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 70d4cbb5..d0c38bec 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -108,6 +108,23 @@ int posix_fallocate(int, off_t, off_t); #define F_TLOCK 2 #define F_TEST 3 +#define F_LINUX_SPECIFIC_BASE 1024 +#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) +#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1) +#define F_NOTIFY (F_LINUX_SPECIFIC_BASE + 2) +#define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5) +#define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6) +#define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7) +#define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8) + +#define DN_ACCESS 0x00000001 +#define DN_MODIFY 0x00000002 +#define DN_CREATE 0x00000004 +#define DN_DELETE 0x00000008 +#define DN_RENAME 0x00000010 +#define DN_ATTRIB 0x00000020 +#define DN_MULTISHOT 0x80000000 + int lockf(int, int, off_t); #endif |