diff options
author | Szabolcs Nagy <nsz@port70.net> | 2017-09-12 22:04:20 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-11-05 18:41:24 -0500 |
commit | 14ced22830ef6cbf8e2526d3131c2b443c3f57dd (patch) | |
tree | 91808335312334ac1b4f0aa97c5e3a8f84d152ce /include | |
parent | 754f66afb76f59bb4c43f303fb9406a3841a448f (diff) | |
download | musl-14ced22830ef6cbf8e2526d3131c2b443c3f57dd.tar.gz musl-14ced22830ef6cbf8e2526d3131c2b443c3f57dd.tar.xz musl-14ced22830ef6cbf8e2526d3131c2b443c3f57dd.zip |
add new fcntl.h macros from linux v4.13
for getting/setting write lifetime hints fcntl commands were added in linux commit c75b1d9421f80f4143e389d2d50ddfc8a28c8c35 added under _GNU_SOURCE || _BSD_SOURCE, since RWH_* life time hints are not in the POSIX reserved namespace.
Diffstat (limited to 'include')
-rw-r--r-- | include/fcntl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 0e165ca3..6d8edcd1 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -127,6 +127,18 @@ int posix_fallocate(int, off_t, off_t); #define F_SEAL_GROW 0x0004 #define F_SEAL_WRITE 0x0008 +#define F_GET_RW_HINT 1035 +#define F_SET_RW_HINT 1036 +#define F_GET_FILE_RW_HINT 1037 +#define F_SET_FILE_RW_HINT 1038 + +#define RWF_WRITE_LIFE_NOT_SET 0 +#define RWH_WRITE_LIFE_NONE 1 +#define RWH_WRITE_LIFE_SHORT 2 +#define RWH_WRITE_LIFE_MEDIUM 3 +#define RWH_WRITE_LIFE_LONG 4 +#define RWH_WRITE_LIFE_EXTREME 5 + #define DN_ACCESS 0x00000001 #define DN_MODIFY 0x00000002 #define DN_CREATE 0x00000004 |