Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: fs.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_FS_H
[1] Fix | Delete
#define _LINUX_FS_H
[2] Fix | Delete
[3] Fix | Delete
/*
[4] Fix | Delete
* This file has definitions for some important file table structures
[5] Fix | Delete
* and constants and structures used by various generic file system
[6] Fix | Delete
* ioctl's. Please do not make any changes in this file before
[7] Fix | Delete
* sending patches for review to linux-fsdevel@vger.kernel.org and
[8] Fix | Delete
* linux-api@vger.kernel.org.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
#include <linux/limits.h>
[12] Fix | Delete
#include <linux/ioctl.h>
[13] Fix | Delete
#include <linux/types.h>
[14] Fix | Delete
[15] Fix | Delete
/* Use of MS_* flags within the kernel is restricted to core mount(2) code. */
[16] Fix | Delete
#include <linux/mount.h>
[17] Fix | Delete
[18] Fix | Delete
/*
[19] Fix | Delete
* It's silly to have NR_OPEN bigger than NR_FILE, but you can change
[20] Fix | Delete
* the file limit at runtime and only root can increase the per-process
[21] Fix | Delete
* nr_file rlimit, so it's safe to set up a ridiculously high absolute
[22] Fix | Delete
* upper limit on files-per-process.
[23] Fix | Delete
*
[24] Fix | Delete
* Some programs (notably those using select()) may have to be
[25] Fix | Delete
* recompiled to take full advantage of the new limits..
[26] Fix | Delete
*/
[27] Fix | Delete
[28] Fix | Delete
/* Fixed constants first: */
[29] Fix | Delete
#undef NR_OPEN
[30] Fix | Delete
#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */
[31] Fix | Delete
#define INR_OPEN_MAX 4096 /* Hard limit for nfile rlimits */
[32] Fix | Delete
[33] Fix | Delete
#define BLOCK_SIZE_BITS 10
[34] Fix | Delete
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
[35] Fix | Delete
[36] Fix | Delete
#define SEEK_SET 0 /* seek relative to beginning of file */
[37] Fix | Delete
#define SEEK_CUR 1 /* seek relative to current file position */
[38] Fix | Delete
#define SEEK_END 2 /* seek relative to end of file */
[39] Fix | Delete
#define SEEK_DATA 3 /* seek to the next data */
[40] Fix | Delete
#define SEEK_HOLE 4 /* seek to the next hole */
[41] Fix | Delete
#define SEEK_MAX SEEK_HOLE
[42] Fix | Delete
[43] Fix | Delete
#define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */
[44] Fix | Delete
#define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
[45] Fix | Delete
#define RENAME_WHITEOUT (1 << 2) /* Whiteout source */
[46] Fix | Delete
[47] Fix | Delete
struct file_clone_range {
[48] Fix | Delete
__s64 src_fd;
[49] Fix | Delete
__u64 src_offset;
[50] Fix | Delete
__u64 src_length;
[51] Fix | Delete
__u64 dest_offset;
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
struct fstrim_range {
[55] Fix | Delete
__u64 start;
[56] Fix | Delete
__u64 len;
[57] Fix | Delete
__u64 minlen;
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
/* extent-same (dedupe) ioctls; these MUST match the btrfs ioctl definitions */
[61] Fix | Delete
#define FILE_DEDUPE_RANGE_SAME 0
[62] Fix | Delete
#define FILE_DEDUPE_RANGE_DIFFERS 1
[63] Fix | Delete
[64] Fix | Delete
/* from struct btrfs_ioctl_file_extent_same_info */
[65] Fix | Delete
struct file_dedupe_range_info {
[66] Fix | Delete
__s64 dest_fd; /* in - destination file */
[67] Fix | Delete
__u64 dest_offset; /* in - start of extent in destination */
[68] Fix | Delete
__u64 bytes_deduped; /* out - total # of bytes we were able
[69] Fix | Delete
* to dedupe from this file. */
[70] Fix | Delete
/* status of this dedupe operation:
[71] Fix | Delete
* < 0 for error
[72] Fix | Delete
* == FILE_DEDUPE_RANGE_SAME if dedupe succeeds
[73] Fix | Delete
* == FILE_DEDUPE_RANGE_DIFFERS if data differs
[74] Fix | Delete
*/
[75] Fix | Delete
__s32 status; /* out - see above description */
[76] Fix | Delete
__u32 reserved; /* must be zero */
[77] Fix | Delete
};
[78] Fix | Delete
[79] Fix | Delete
/* from struct btrfs_ioctl_file_extent_same_args */
[80] Fix | Delete
struct file_dedupe_range {
[81] Fix | Delete
__u64 src_offset; /* in - start of extent in source */
[82] Fix | Delete
__u64 src_length; /* in - length of extent */
[83] Fix | Delete
__u16 dest_count; /* in - total elements in info array */
[84] Fix | Delete
__u16 reserved1; /* must be zero */
[85] Fix | Delete
__u32 reserved2; /* must be zero */
[86] Fix | Delete
struct file_dedupe_range_info info[0];
[87] Fix | Delete
};
[88] Fix | Delete
[89] Fix | Delete
/* And dynamically-tunable limits and defaults: */
[90] Fix | Delete
struct files_stat_struct {
[91] Fix | Delete
unsigned long nr_files; /* read only */
[92] Fix | Delete
unsigned long nr_free_files; /* read only */
[93] Fix | Delete
unsigned long max_files; /* tunable */
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
struct inodes_stat_t {
[97] Fix | Delete
long nr_inodes;
[98] Fix | Delete
long nr_unused;
[99] Fix | Delete
long dummy[5]; /* padding for sysctl ABI compatibility */
[100] Fix | Delete
};
[101] Fix | Delete
[102] Fix | Delete
[103] Fix | Delete
#define NR_FILE 8192 /* this can well be larger on a larger system */
[104] Fix | Delete
[105] Fix | Delete
/*
[106] Fix | Delete
* Structure for FS_IOC_FSGETXATTR[A] and FS_IOC_FSSETXATTR.
[107] Fix | Delete
*/
[108] Fix | Delete
struct fsxattr {
[109] Fix | Delete
__u32 fsx_xflags; /* xflags field value (get/set) */
[110] Fix | Delete
__u32 fsx_extsize; /* extsize field value (get/set)*/
[111] Fix | Delete
__u32 fsx_nextents; /* nextents field value (get) */
[112] Fix | Delete
__u32 fsx_projid; /* project identifier (get/set) */
[113] Fix | Delete
__u32 fsx_cowextsize; /* CoW extsize field value (get/set)*/
[114] Fix | Delete
unsigned char fsx_pad[8];
[115] Fix | Delete
};
[116] Fix | Delete
[117] Fix | Delete
/*
[118] Fix | Delete
* Flags for the fsx_xflags field
[119] Fix | Delete
*/
[120] Fix | Delete
#define FS_XFLAG_REALTIME 0x00000001 /* data in realtime volume */
[121] Fix | Delete
#define FS_XFLAG_PREALLOC 0x00000002 /* preallocated file extents */
[122] Fix | Delete
#define FS_XFLAG_IMMUTABLE 0x00000008 /* file cannot be modified */
[123] Fix | Delete
#define FS_XFLAG_APPEND 0x00000010 /* all writes append */
[124] Fix | Delete
#define FS_XFLAG_SYNC 0x00000020 /* all writes synchronous */
[125] Fix | Delete
#define FS_XFLAG_NOATIME 0x00000040 /* do not update access time */
[126] Fix | Delete
#define FS_XFLAG_NODUMP 0x00000080 /* do not include in backups */
[127] Fix | Delete
#define FS_XFLAG_RTINHERIT 0x00000100 /* create with rt bit set */
[128] Fix | Delete
#define FS_XFLAG_PROJINHERIT 0x00000200 /* create with parents projid */
[129] Fix | Delete
#define FS_XFLAG_NOSYMLINKS 0x00000400 /* disallow symlink creation */
[130] Fix | Delete
#define FS_XFLAG_EXTSIZE 0x00000800 /* extent size allocator hint */
[131] Fix | Delete
#define FS_XFLAG_EXTSZINHERIT 0x00001000 /* inherit inode extent size */
[132] Fix | Delete
#define FS_XFLAG_NODEFRAG 0x00002000 /* do not defragment */
[133] Fix | Delete
#define FS_XFLAG_FILESTREAM 0x00004000 /* use filestream allocator */
[134] Fix | Delete
#define FS_XFLAG_DAX 0x00008000 /* use DAX for IO */
[135] Fix | Delete
#define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */
[136] Fix | Delete
#define FS_XFLAG_HASATTR 0x80000000 /* no DIFLAG for this */
[137] Fix | Delete
[138] Fix | Delete
/* the read-only stuff doesn't really belong here, but any other place is
[139] Fix | Delete
probably as bad and I don't want to create yet another include file. */
[140] Fix | Delete
[141] Fix | Delete
#define BLKROSET _IO(0x12,93) /* set device read-only (0 = read-write) */
[142] Fix | Delete
#define BLKROGET _IO(0x12,94) /* get read-only status (0 = read_write) */
[143] Fix | Delete
#define BLKRRPART _IO(0x12,95) /* re-read partition table */
[144] Fix | Delete
#define BLKGETSIZE _IO(0x12,96) /* return device size /512 (long *arg) */
[145] Fix | Delete
#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */
[146] Fix | Delete
#define BLKRASET _IO(0x12,98) /* set read ahead for block device */
[147] Fix | Delete
#define BLKRAGET _IO(0x12,99) /* get current read ahead setting */
[148] Fix | Delete
#define BLKFRASET _IO(0x12,100)/* set filesystem (mm/filemap.c) read-ahead */
[149] Fix | Delete
#define BLKFRAGET _IO(0x12,101)/* get filesystem (mm/filemap.c) read-ahead */
[150] Fix | Delete
#define BLKSECTSET _IO(0x12,102)/* set max sectors per request (ll_rw_blk.c) */
[151] Fix | Delete
#define BLKSECTGET _IO(0x12,103)/* get max sectors per request (ll_rw_blk.c) */
[152] Fix | Delete
#define BLKSSZGET _IO(0x12,104)/* get block device sector size */
[153] Fix | Delete
#if 0
[154] Fix | Delete
#define BLKPG _IO(0x12,105)/* See blkpg.h */
[155] Fix | Delete
[156] Fix | Delete
/* Some people are morons. Do not use sizeof! */
[157] Fix | Delete
[158] Fix | Delete
#define BLKELVGET _IOR(0x12,106,size_t)/* elevator get */
[159] Fix | Delete
#define BLKELVSET _IOW(0x12,107,size_t)/* elevator set */
[160] Fix | Delete
/* This was here just to show that the number is taken -
[161] Fix | Delete
probably all these _IO(0x12,*) ioctls should be moved to blkpg.h. */
[162] Fix | Delete
#endif
[163] Fix | Delete
/* A jump here: 108-111 have been used for various private purposes. */
[164] Fix | Delete
#define BLKBSZGET _IOR(0x12,112,size_t)
[165] Fix | Delete
#define BLKBSZSET _IOW(0x12,113,size_t)
[166] Fix | Delete
#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */
[167] Fix | Delete
#define BLKTRACESETUP _IOWR(0x12,115,struct blk_user_trace_setup)
[168] Fix | Delete
#define BLKTRACESTART _IO(0x12,116)
[169] Fix | Delete
#define BLKTRACESTOP _IO(0x12,117)
[170] Fix | Delete
#define BLKTRACETEARDOWN _IO(0x12,118)
[171] Fix | Delete
#define BLKDISCARD _IO(0x12,119)
[172] Fix | Delete
#define BLKIOMIN _IO(0x12,120)
[173] Fix | Delete
#define BLKIOOPT _IO(0x12,121)
[174] Fix | Delete
#define BLKALIGNOFF _IO(0x12,122)
[175] Fix | Delete
#define BLKPBSZGET _IO(0x12,123)
[176] Fix | Delete
#define BLKDISCARDZEROES _IO(0x12,124)
[177] Fix | Delete
#define BLKSECDISCARD _IO(0x12,125)
[178] Fix | Delete
#define BLKROTATIONAL _IO(0x12,126)
[179] Fix | Delete
#define BLKZEROOUT _IO(0x12,127)
[180] Fix | Delete
/*
[181] Fix | Delete
* A jump here: 130-136 are reserved for zoned block devices
[182] Fix | Delete
* (see uapi/linux/blkzoned.h)
[183] Fix | Delete
*/
[184] Fix | Delete
[185] Fix | Delete
#define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
[186] Fix | Delete
#define FIBMAP _IO(0x00,1) /* bmap access */
[187] Fix | Delete
#define FIGETBSZ _IO(0x00,2) /* get the block size used for bmap */
[188] Fix | Delete
#define FIFREEZE _IOWR('X', 119, int) /* Freeze */
[189] Fix | Delete
#define FITHAW _IOWR('X', 120, int) /* Thaw */
[190] Fix | Delete
#define FITRIM _IOWR('X', 121, struct fstrim_range) /* Trim */
[191] Fix | Delete
#define FICLONE _IOW(0x94, 9, int)
[192] Fix | Delete
#define FICLONERANGE _IOW(0x94, 13, struct file_clone_range)
[193] Fix | Delete
#define FIDEDUPERANGE _IOWR(0x94, 54, struct file_dedupe_range)
[194] Fix | Delete
[195] Fix | Delete
#define FSLABEL_MAX 256 /* Max chars for the interface; each fs may differ */
[196] Fix | Delete
[197] Fix | Delete
#define FS_IOC_GETFLAGS _IOR('f', 1, long)
[198] Fix | Delete
#define FS_IOC_SETFLAGS _IOW('f', 2, long)
[199] Fix | Delete
#define FS_IOC_GETVERSION _IOR('v', 1, long)
[200] Fix | Delete
#define FS_IOC_SETVERSION _IOW('v', 2, long)
[201] Fix | Delete
#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
[202] Fix | Delete
#define FS_IOC32_GETFLAGS _IOR('f', 1, int)
[203] Fix | Delete
#define FS_IOC32_SETFLAGS _IOW('f', 2, int)
[204] Fix | Delete
#define FS_IOC32_GETVERSION _IOR('v', 1, int)
[205] Fix | Delete
#define FS_IOC32_SETVERSION _IOW('v', 2, int)
[206] Fix | Delete
#define FS_IOC_FSGETXATTR _IOR('X', 31, struct fsxattr)
[207] Fix | Delete
#define FS_IOC_FSSETXATTR _IOW('X', 32, struct fsxattr)
[208] Fix | Delete
#define FS_IOC_GETFSLABEL _IOR(0x94, 49, char[FSLABEL_MAX])
[209] Fix | Delete
#define FS_IOC_SETFSLABEL _IOW(0x94, 50, char[FSLABEL_MAX])
[210] Fix | Delete
[211] Fix | Delete
/*
[212] Fix | Delete
* File system encryption support
[213] Fix | Delete
*/
[214] Fix | Delete
/* Policy provided via an ioctl on the topmost directory */
[215] Fix | Delete
#define FS_KEY_DESCRIPTOR_SIZE 8
[216] Fix | Delete
[217] Fix | Delete
#define FS_POLICY_FLAGS_PAD_4 0x00
[218] Fix | Delete
#define FS_POLICY_FLAGS_PAD_8 0x01
[219] Fix | Delete
#define FS_POLICY_FLAGS_PAD_16 0x02
[220] Fix | Delete
#define FS_POLICY_FLAGS_PAD_32 0x03
[221] Fix | Delete
#define FS_POLICY_FLAGS_PAD_MASK 0x03
[222] Fix | Delete
#define FS_POLICY_FLAGS_VALID 0x03
[223] Fix | Delete
[224] Fix | Delete
/* Encryption algorithms */
[225] Fix | Delete
#define FS_ENCRYPTION_MODE_INVALID 0
[226] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_256_XTS 1
[227] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_256_GCM 2
[228] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_256_CBC 3
[229] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_256_CTS 4
[230] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_128_CBC 5
[231] Fix | Delete
#define FS_ENCRYPTION_MODE_AES_128_CTS 6
[232] Fix | Delete
#define FS_ENCRYPTION_MODE_SPECK128_256_XTS 7
[233] Fix | Delete
#define FS_ENCRYPTION_MODE_SPECK128_256_CTS 8
[234] Fix | Delete
[235] Fix | Delete
struct fscrypt_policy {
[236] Fix | Delete
__u8 version;
[237] Fix | Delete
__u8 contents_encryption_mode;
[238] Fix | Delete
__u8 filenames_encryption_mode;
[239] Fix | Delete
__u8 flags;
[240] Fix | Delete
__u8 master_key_descriptor[FS_KEY_DESCRIPTOR_SIZE];
[241] Fix | Delete
};
[242] Fix | Delete
[243] Fix | Delete
#define FS_IOC_SET_ENCRYPTION_POLICY _IOR('f', 19, struct fscrypt_policy)
[244] Fix | Delete
#define FS_IOC_GET_ENCRYPTION_PWSALT _IOW('f', 20, __u8[16])
[245] Fix | Delete
#define FS_IOC_GET_ENCRYPTION_POLICY _IOW('f', 21, struct fscrypt_policy)
[246] Fix | Delete
[247] Fix | Delete
/* Parameters for passing an encryption key into the kernel keyring */
[248] Fix | Delete
#define FS_KEY_DESC_PREFIX "fscrypt:"
[249] Fix | Delete
#define FS_KEY_DESC_PREFIX_SIZE 8
[250] Fix | Delete
[251] Fix | Delete
/* Structure that userspace passes to the kernel keyring */
[252] Fix | Delete
#define FS_MAX_KEY_SIZE 64
[253] Fix | Delete
[254] Fix | Delete
struct fscrypt_key {
[255] Fix | Delete
__u32 mode;
[256] Fix | Delete
__u8 raw[FS_MAX_KEY_SIZE];
[257] Fix | Delete
__u32 size;
[258] Fix | Delete
};
[259] Fix | Delete
[260] Fix | Delete
/*
[261] Fix | Delete
* Inode flags (FS_IOC_GETFLAGS / FS_IOC_SETFLAGS)
[262] Fix | Delete
*
[263] Fix | Delete
* Note: for historical reasons, these flags were originally used and
[264] Fix | Delete
* defined for use by ext2/ext3, and then other file systems started
[265] Fix | Delete
* using these flags so they wouldn't need to write their own version
[266] Fix | Delete
* of chattr/lsattr (which was shipped as part of e2fsprogs). You
[267] Fix | Delete
* should think twice before trying to use these flags in new
[268] Fix | Delete
* contexts, or trying to assign these flags, since they are used both
[269] Fix | Delete
* as the UAPI and the on-disk encoding for ext2/3/4. Also, we are
[270] Fix | Delete
* almost out of 32-bit flags. :-)
[271] Fix | Delete
*
[272] Fix | Delete
* We have recently hoisted FS_IOC_FSGETXATTR / FS_IOC_FSSETXATTR from
[273] Fix | Delete
* XFS to the generic FS level interface. This uses a structure that
[274] Fix | Delete
* has padding and hence has more room to grow, so it may be more
[275] Fix | Delete
* appropriate for many new use cases.
[276] Fix | Delete
*
[277] Fix | Delete
* Please do not change these flags or interfaces before checking with
[278] Fix | Delete
* linux-fsdevel@vger.kernel.org and linux-api@vger.kernel.org.
[279] Fix | Delete
*/
[280] Fix | Delete
#define FS_SECRM_FL 0x00000001 /* Secure deletion */
[281] Fix | Delete
#define FS_UNRM_FL 0x00000002 /* Undelete */
[282] Fix | Delete
#define FS_COMPR_FL 0x00000004 /* Compress file */
[283] Fix | Delete
#define FS_SYNC_FL 0x00000008 /* Synchronous updates */
[284] Fix | Delete
#define FS_IMMUTABLE_FL 0x00000010 /* Immutable file */
[285] Fix | Delete
#define FS_APPEND_FL 0x00000020 /* writes to file may only append */
[286] Fix | Delete
#define FS_NODUMP_FL 0x00000040 /* do not dump file */
[287] Fix | Delete
#define FS_NOATIME_FL 0x00000080 /* do not update atime */
[288] Fix | Delete
/* Reserved for compression usage... */
[289] Fix | Delete
#define FS_DIRTY_FL 0x00000100
[290] Fix | Delete
#define FS_COMPRBLK_FL 0x00000200 /* One or more compressed clusters */
[291] Fix | Delete
#define FS_NOCOMP_FL 0x00000400 /* Don't compress */
[292] Fix | Delete
/* End compression flags --- maybe not all used */
[293] Fix | Delete
#define FS_ENCRYPT_FL 0x00000800 /* Encrypted file */
[294] Fix | Delete
#define FS_BTREE_FL 0x00001000 /* btree format dir */
[295] Fix | Delete
#define FS_INDEX_FL 0x00001000 /* hash-indexed directory */
[296] Fix | Delete
#define FS_IMAGIC_FL 0x00002000 /* AFS directory */
[297] Fix | Delete
#define FS_JOURNAL_DATA_FL 0x00004000 /* Reserved for ext3 */
[298] Fix | Delete
#define FS_NOTAIL_FL 0x00008000 /* file tail should not be merged */
[299] Fix | Delete
#define FS_DIRSYNC_FL 0x00010000 /* dirsync behaviour (directories only) */
[300] Fix | Delete
#define FS_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/
[301] Fix | Delete
#define FS_HUGE_FILE_FL 0x00040000 /* Reserved for ext4 */
[302] Fix | Delete
#define FS_EXTENT_FL 0x00080000 /* Extents */
[303] Fix | Delete
#define FS_EA_INODE_FL 0x00200000 /* Inode used for large EA */
[304] Fix | Delete
#define FS_EOFBLOCKS_FL 0x00400000 /* Reserved for ext4 */
[305] Fix | Delete
#define FS_NOCOW_FL 0x00800000 /* Do not cow file */
[306] Fix | Delete
#define FS_DAX_FL 0x02000000 /* Inode is DAX */
[307] Fix | Delete
#define FS_INLINE_DATA_FL 0x10000000 /* Reserved for ext4 */
[308] Fix | Delete
#define FS_PROJINHERIT_FL 0x20000000 /* Create with parents projid */
[309] Fix | Delete
#define FS_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
[310] Fix | Delete
[311] Fix | Delete
#define FS_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */
[312] Fix | Delete
#define FS_FL_USER_MODIFIABLE 0x000380FF /* User modifiable flags */
[313] Fix | Delete
[314] Fix | Delete
[315] Fix | Delete
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
[316] Fix | Delete
#define SYNC_FILE_RANGE_WRITE 2
[317] Fix | Delete
#define SYNC_FILE_RANGE_WAIT_AFTER 4
[318] Fix | Delete
[319] Fix | Delete
/*
[320] Fix | Delete
* Flags for preadv2/pwritev2:
[321] Fix | Delete
*/
[322] Fix | Delete
[323] Fix | Delete
typedef int __bitwise __kernel_rwf_t;
[324] Fix | Delete
[325] Fix | Delete
/* high priority request, poll if possible */
[326] Fix | Delete
#define RWF_HIPRI ((__kernel_rwf_t)0x00000001)
[327] Fix | Delete
[328] Fix | Delete
/* per-IO O_DSYNC */
[329] Fix | Delete
#define RWF_DSYNC ((__kernel_rwf_t)0x00000002)
[330] Fix | Delete
[331] Fix | Delete
/* per-IO O_SYNC */
[332] Fix | Delete
#define RWF_SYNC ((__kernel_rwf_t)0x00000004)
[333] Fix | Delete
[334] Fix | Delete
/* per-IO, return -EAGAIN if operation would block */
[335] Fix | Delete
#define RWF_NOWAIT ((__kernel_rwf_t)0x00000008)
[336] Fix | Delete
[337] Fix | Delete
/* per-IO O_APPEND */
[338] Fix | Delete
#define RWF_APPEND ((__kernel_rwf_t)0x00000010)
[339] Fix | Delete
[340] Fix | Delete
/* mask of flags supported by the kernel */
[341] Fix | Delete
#define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT |\
[342] Fix | Delete
RWF_APPEND)
[343] Fix | Delete
[344] Fix | Delete
#endif /* _LINUX_FS_H */
[345] Fix | Delete
[346] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function