1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_FCNTL_H 8 #define _UAPI_LINUX_FCNTL_H 9 #include <asm/fcntl.h> 10 #include <linux/openat2.h> 11 #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) 12 #define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1) 13 #define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5) 14 #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6) 15 #define F_NOTIFY (F_LINUX_SPECIFIC_BASE + 2) 16 #define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7) 17 #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8) 18 #define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) 19 #define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10) 20 #define F_SEAL_SEAL 0x0001 21 #define F_SEAL_SHRINK 0x0002 22 #define F_SEAL_GROW 0x0004 23 #define F_SEAL_WRITE 0x0008 24 #define F_SEAL_FUTURE_WRITE 0x0010 25 #define F_SEAL_EXEC 0x0020 26 #define F_GET_RW_HINT (F_LINUX_SPECIFIC_BASE + 11) 27 #define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12) 28 #define F_GET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 13) 29 #define F_SET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 14) 30 #define RWH_WRITE_LIFE_NOT_SET 0 31 #define RWH_WRITE_LIFE_NONE 1 32 #define RWH_WRITE_LIFE_SHORT 2 33 #define RWH_WRITE_LIFE_MEDIUM 3 34 #define RWH_WRITE_LIFE_LONG 4 35 #define RWH_WRITE_LIFE_EXTREME 5 36 #define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET 37 #define DN_ACCESS 0x00000001 38 #define DN_MODIFY 0x00000002 39 #define DN_CREATE 0x00000004 40 #define DN_DELETE 0x00000008 41 #define DN_RENAME 0x00000010 42 #define DN_ATTRIB 0x00000020 43 #define DN_MULTISHOT 0x80000000 44 #define AT_FDCWD - 100 45 #define AT_SYMLINK_NOFOLLOW 0x100 46 #define AT_EACCESS 0x200 47 #define AT_REMOVEDIR 0x200 48 #define AT_SYMLINK_FOLLOW 0x400 49 #define AT_NO_AUTOMOUNT 0x800 50 #define AT_EMPTY_PATH 0x1000 51 #define AT_STATX_SYNC_TYPE 0x6000 52 #define AT_STATX_SYNC_AS_STAT 0x0000 53 #define AT_STATX_FORCE_SYNC 0x2000 54 #define AT_STATX_DONT_SYNC 0x4000 55 #define AT_RECURSIVE 0x8000 56 #define AT_HANDLE_FID AT_REMOVEDIR 57 #endif 58