Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: fcntl.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_FCNTL_H
[1] Fix | Delete
#define _LINUX_FCNTL_H
[2] Fix | Delete
[3] Fix | Delete
#include <asm/fcntl.h>
[4] Fix | Delete
#include <linux/openat2.h>
[5] Fix | Delete
[6] Fix | Delete
#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
[7] Fix | Delete
#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
[8] Fix | Delete
[9] Fix | Delete
/*
[10] Fix | Delete
* Cancel a blocking posix lock; internal use only until we expose an
[11] Fix | Delete
* asynchronous lock api to userspace:
[12] Fix | Delete
*/
[13] Fix | Delete
#define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5)
[14] Fix | Delete
[15] Fix | Delete
/* Create a file descriptor with FD_CLOEXEC set. */
[16] Fix | Delete
#define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
[17] Fix | Delete
[18] Fix | Delete
/*
[19] Fix | Delete
* Request nofications on a directory.
[20] Fix | Delete
* See below for events that may be notified.
[21] Fix | Delete
*/
[22] Fix | Delete
#define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
[23] Fix | Delete
[24] Fix | Delete
/*
[25] Fix | Delete
* Set and get of pipe page size array
[26] Fix | Delete
*/
[27] Fix | Delete
#define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
[28] Fix | Delete
#define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
* Set/Get seals
[32] Fix | Delete
*/
[33] Fix | Delete
#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
[34] Fix | Delete
#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Types of seals
[38] Fix | Delete
*/
[39] Fix | Delete
#define F_SEAL_SEAL 0x0001 /* prevent further seals from being set */
[40] Fix | Delete
#define F_SEAL_SHRINK 0x0002 /* prevent file from shrinking */
[41] Fix | Delete
#define F_SEAL_GROW 0x0004 /* prevent file from growing */
[42] Fix | Delete
#define F_SEAL_WRITE 0x0008 /* prevent writes */
[43] Fix | Delete
/* (1U << 31) is reserved for signed error codes */
[44] Fix | Delete
[45] Fix | Delete
/*
[46] Fix | Delete
* Set/Get write life time hints. {GET,SET}_RW_HINT operate on the
[47] Fix | Delete
* underlying inode, while {GET,SET}_FILE_RW_HINT operate only on
[48] Fix | Delete
* the specific file.
[49] Fix | Delete
*/
[50] Fix | Delete
#define F_GET_RW_HINT (F_LINUX_SPECIFIC_BASE + 11)
[51] Fix | Delete
#define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12)
[52] Fix | Delete
#define F_GET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 13)
[53] Fix | Delete
#define F_SET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 14)
[54] Fix | Delete
[55] Fix | Delete
/*
[56] Fix | Delete
* Valid hint values for F_{GET,SET}_RW_HINT. 0 is "not set", or can be
[57] Fix | Delete
* used to clear any hints previously set.
[58] Fix | Delete
*/
[59] Fix | Delete
#define RWH_WRITE_LIFE_NOT_SET 0
[60] Fix | Delete
#define RWH_WRITE_LIFE_NONE 1
[61] Fix | Delete
#define RWH_WRITE_LIFE_SHORT 2
[62] Fix | Delete
#define RWH_WRITE_LIFE_MEDIUM 3
[63] Fix | Delete
#define RWH_WRITE_LIFE_LONG 4
[64] Fix | Delete
#define RWH_WRITE_LIFE_EXTREME 5
[65] Fix | Delete
[66] Fix | Delete
/*
[67] Fix | Delete
* The originally introduced spelling is remained from the first
[68] Fix | Delete
* versions of the patch set that introduced the feature, see commit
[69] Fix | Delete
* v4.13-rc1~212^2~51.
[70] Fix | Delete
*/
[71] Fix | Delete
#define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Types of directory notifications that may be requested.
[75] Fix | Delete
*/
[76] Fix | Delete
#define DN_ACCESS 0x00000001 /* File accessed */
[77] Fix | Delete
#define DN_MODIFY 0x00000002 /* File modified */
[78] Fix | Delete
#define DN_CREATE 0x00000004 /* File created */
[79] Fix | Delete
#define DN_DELETE 0x00000008 /* File removed */
[80] Fix | Delete
#define DN_RENAME 0x00000010 /* File renamed */
[81] Fix | Delete
#define DN_ATTRIB 0x00000020 /* File changed attibutes */
[82] Fix | Delete
#define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
[83] Fix | Delete
[84] Fix | Delete
/*
[85] Fix | Delete
* The constants AT_REMOVEDIR and AT_EACCESS have the same value. AT_EACCESS is
[86] Fix | Delete
* meaningful only to faccessat, while AT_REMOVEDIR is meaningful only to
[87] Fix | Delete
* unlinkat. The two functions do completely different things and therefore,
[88] Fix | Delete
* the flags can be allowed to overlap. For example, passing AT_REMOVEDIR to
[89] Fix | Delete
* faccessat would be undefined behavior and thus treating it equivalent to
[90] Fix | Delete
* AT_EACCESS is valid undefined behavior.
[91] Fix | Delete
*/
[92] Fix | Delete
#define AT_FDCWD -100 /* Special value used to indicate
[93] Fix | Delete
openat should use the current
[94] Fix | Delete
working directory. */
[95] Fix | Delete
#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
[96] Fix | Delete
#define AT_EACCESS 0x200 /* Test access permitted for
[97] Fix | Delete
effective IDs, not real IDs. */
[98] Fix | Delete
#define AT_REMOVEDIR 0x200 /* Remove directory instead of
[99] Fix | Delete
unlinking file. */
[100] Fix | Delete
#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
[101] Fix | Delete
#define AT_NO_AUTOMOUNT 0x800 /* Suppress terminal automount traversal */
[102] Fix | Delete
#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
[103] Fix | Delete
[104] Fix | Delete
#define AT_STATX_SYNC_TYPE 0x6000 /* Type of synchronisation required from statx() */
[105] Fix | Delete
#define AT_STATX_SYNC_AS_STAT 0x0000 /* - Do whatever stat() does */
[106] Fix | Delete
#define AT_STATX_FORCE_SYNC 0x2000 /* - Force the attributes to be sync'd with the server */
[107] Fix | Delete
#define AT_STATX_DONT_SYNC 0x4000 /* - Don't sync attributes with the server */
[108] Fix | Delete
[109] Fix | Delete
#define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */
[110] Fix | Delete
[111] Fix | Delete
#endif /* _LINUX_FCNTL_H */
[112] Fix | Delete
[113] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function