Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: mount.h
/* Header file for mounting/unmount Linux filesystems.
[0] Fix | Delete
Copyright (C) 1996-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
/* This is taken from /usr/include/linux/fs.h. */
[18] Fix | Delete
[19] Fix | Delete
#ifndef _SYS_MOUNT_H
[20] Fix | Delete
#define _SYS_MOUNT_H 1
[21] Fix | Delete
[22] Fix | Delete
#include <features.h>
[23] Fix | Delete
#include <sys/ioctl.h>
[24] Fix | Delete
[25] Fix | Delete
#define BLOCK_SIZE 1024
[26] Fix | Delete
#define BLOCK_SIZE_BITS 10
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
/* These are the fs-independent mount-flags: up to 16 flags are
[30] Fix | Delete
supported */
[31] Fix | Delete
enum
[32] Fix | Delete
{
[33] Fix | Delete
MS_RDONLY = 1, /* Mount read-only. */
[34] Fix | Delete
#define MS_RDONLY MS_RDONLY
[35] Fix | Delete
MS_NOSUID = 2, /* Ignore suid and sgid bits. */
[36] Fix | Delete
#define MS_NOSUID MS_NOSUID
[37] Fix | Delete
MS_NODEV = 4, /* Disallow access to device special files. */
[38] Fix | Delete
#define MS_NODEV MS_NODEV
[39] Fix | Delete
MS_NOEXEC = 8, /* Disallow program execution. */
[40] Fix | Delete
#define MS_NOEXEC MS_NOEXEC
[41] Fix | Delete
MS_SYNCHRONOUS = 16, /* Writes are synced at once. */
[42] Fix | Delete
#define MS_SYNCHRONOUS MS_SYNCHRONOUS
[43] Fix | Delete
MS_REMOUNT = 32, /* Alter flags of a mounted FS. */
[44] Fix | Delete
#define MS_REMOUNT MS_REMOUNT
[45] Fix | Delete
MS_MANDLOCK = 64, /* Allow mandatory locks on an FS. */
[46] Fix | Delete
#define MS_MANDLOCK MS_MANDLOCK
[47] Fix | Delete
MS_DIRSYNC = 128, /* Directory modifications are synchronous. */
[48] Fix | Delete
#define MS_DIRSYNC MS_DIRSYNC
[49] Fix | Delete
MS_NOATIME = 1024, /* Do not update access times. */
[50] Fix | Delete
#define MS_NOATIME MS_NOATIME
[51] Fix | Delete
MS_NODIRATIME = 2048, /* Do not update directory access times. */
[52] Fix | Delete
#define MS_NODIRATIME MS_NODIRATIME
[53] Fix | Delete
MS_BIND = 4096, /* Bind directory at different place. */
[54] Fix | Delete
#define MS_BIND MS_BIND
[55] Fix | Delete
MS_MOVE = 8192,
[56] Fix | Delete
#define MS_MOVE MS_MOVE
[57] Fix | Delete
MS_REC = 16384,
[58] Fix | Delete
#define MS_REC MS_REC
[59] Fix | Delete
MS_SILENT = 32768,
[60] Fix | Delete
#define MS_SILENT MS_SILENT
[61] Fix | Delete
MS_POSIXACL = 1 << 16, /* VFS does not apply the umask. */
[62] Fix | Delete
#define MS_POSIXACL MS_POSIXACL
[63] Fix | Delete
MS_UNBINDABLE = 1 << 17, /* Change to unbindable. */
[64] Fix | Delete
#define MS_UNBINDABLE MS_UNBINDABLE
[65] Fix | Delete
MS_PRIVATE = 1 << 18, /* Change to private. */
[66] Fix | Delete
#define MS_PRIVATE MS_PRIVATE
[67] Fix | Delete
MS_SLAVE = 1 << 19, /* Change to slave. */
[68] Fix | Delete
#define MS_SLAVE MS_SLAVE
[69] Fix | Delete
MS_SHARED = 1 << 20, /* Change to shared. */
[70] Fix | Delete
#define MS_SHARED MS_SHARED
[71] Fix | Delete
MS_RELATIME = 1 << 21, /* Update atime relative to mtime/ctime. */
[72] Fix | Delete
#define MS_RELATIME MS_RELATIME
[73] Fix | Delete
MS_KERNMOUNT = 1 << 22, /* This is a kern_mount call. */
[74] Fix | Delete
#define MS_KERNMOUNT MS_KERNMOUNT
[75] Fix | Delete
MS_I_VERSION = 1 << 23, /* Update inode I_version field. */
[76] Fix | Delete
#define MS_I_VERSION MS_I_VERSION
[77] Fix | Delete
MS_STRICTATIME = 1 << 24, /* Always perform atime updates. */
[78] Fix | Delete
#define MS_STRICTATIME MS_STRICTATIME
[79] Fix | Delete
MS_LAZYTIME = 1 << 25, /* Update the on-disk [acm]times lazily. */
[80] Fix | Delete
#define MS_LAZYTIME MS_LAZYTIME
[81] Fix | Delete
MS_ACTIVE = 1 << 30,
[82] Fix | Delete
#define MS_ACTIVE MS_ACTIVE
[83] Fix | Delete
MS_NOUSER = 1 << 31
[84] Fix | Delete
#define MS_NOUSER MS_NOUSER
[85] Fix | Delete
};
[86] Fix | Delete
[87] Fix | Delete
/* Flags that can be altered by MS_REMOUNT */
[88] Fix | Delete
#define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION \
[89] Fix | Delete
|MS_LAZYTIME)
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
/* Magic mount flag number. Has to be or-ed to the flag values. */
[93] Fix | Delete
[94] Fix | Delete
#define MS_MGC_VAL 0xc0ed0000 /* Magic flag number to indicate "new" flags */
[95] Fix | Delete
#define MS_MGC_MSK 0xffff0000 /* Magic flag number mask */
[96] Fix | Delete
[97] Fix | Delete
[98] Fix | Delete
/* The read-only stuff doesn't really belong here, but any other place
[99] Fix | Delete
is probably as bad and I don't want to create yet another include
[100] Fix | Delete
file. */
[101] Fix | Delete
[102] Fix | Delete
#define BLKROSET _IO(0x12, 93) /* Set device read-only (0 = read-write). */
[103] Fix | Delete
#define BLKROGET _IO(0x12, 94) /* Get read-only status (0 = read_write). */
[104] Fix | Delete
#define BLKRRPART _IO(0x12, 95) /* Re-read partition table. */
[105] Fix | Delete
#define BLKGETSIZE _IO(0x12, 96) /* Return device size. */
[106] Fix | Delete
#define BLKFLSBUF _IO(0x12, 97) /* Flush buffer cache. */
[107] Fix | Delete
#define BLKRASET _IO(0x12, 98) /* Set read ahead for block device. */
[108] Fix | Delete
#define BLKRAGET _IO(0x12, 99) /* Get current read ahead setting. */
[109] Fix | Delete
#define BLKFRASET _IO(0x12,100) /* Set filesystem read-ahead. */
[110] Fix | Delete
#define BLKFRAGET _IO(0x12,101) /* Get filesystem read-ahead. */
[111] Fix | Delete
#define BLKSECTSET _IO(0x12,102) /* Set max sectors per request. */
[112] Fix | Delete
#define BLKSECTGET _IO(0x12,103) /* Get max sectors per request. */
[113] Fix | Delete
#define BLKSSZGET _IO(0x12,104) /* Get block device sector size. */
[114] Fix | Delete
#define BLKBSZGET _IOR(0x12,112,size_t)
[115] Fix | Delete
#define BLKBSZSET _IOW(0x12,113,size_t)
[116] Fix | Delete
#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size. */
[117] Fix | Delete
[118] Fix | Delete
[119] Fix | Delete
/* Possible value for FLAGS parameter of `umount2'. */
[120] Fix | Delete
enum
[121] Fix | Delete
{
[122] Fix | Delete
MNT_FORCE = 1, /* Force unmounting. */
[123] Fix | Delete
#define MNT_FORCE MNT_FORCE
[124] Fix | Delete
MNT_DETACH = 2, /* Just detach from the tree. */
[125] Fix | Delete
#define MNT_DETACH MNT_DETACH
[126] Fix | Delete
MNT_EXPIRE = 4, /* Mark for expiry. */
[127] Fix | Delete
#define MNT_EXPIRE MNT_EXPIRE
[128] Fix | Delete
UMOUNT_NOFOLLOW = 8 /* Don't follow symlink on umount. */
[129] Fix | Delete
#define UMOUNT_NOFOLLOW UMOUNT_NOFOLLOW
[130] Fix | Delete
};
[131] Fix | Delete
[132] Fix | Delete
[133] Fix | Delete
__BEGIN_DECLS
[134] Fix | Delete
[135] Fix | Delete
/* Mount a filesystem. */
[136] Fix | Delete
extern int mount (const char *__special_file, const char *__dir,
[137] Fix | Delete
const char *__fstype, unsigned long int __rwflag,
[138] Fix | Delete
const void *__data) __THROW;
[139] Fix | Delete
[140] Fix | Delete
/* Unmount a filesystem. */
[141] Fix | Delete
extern int umount (const char *__special_file) __THROW;
[142] Fix | Delete
[143] Fix | Delete
/* Unmount a filesystem. Force unmounting if FLAGS is set to MNT_FORCE. */
[144] Fix | Delete
extern int umount2 (const char *__special_file, int __flags) __THROW;
[145] Fix | Delete
[146] Fix | Delete
__END_DECLS
[147] Fix | Delete
[148] Fix | Delete
#endif /* _SYS_MOUNT_H */
[149] Fix | Delete
[150] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function