Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: mntent.h
/* Utilities for reading/writing fstab, mtab, etc.
[0] Fix | Delete
Copyright (C) 1995-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
#ifndef _MNTENT_H
[18] Fix | Delete
#define _MNTENT_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
#include <paths.h>
[22] Fix | Delete
#include <bits/types/FILE.h>
[23] Fix | Delete
[24] Fix | Delete
/* File listing canonical interesting mount points. */
[25] Fix | Delete
#define MNTTAB _PATH_MNTTAB /* Deprecated alias. */
[26] Fix | Delete
[27] Fix | Delete
/* File listing currently active mount points. */
[28] Fix | Delete
#define MOUNTED _PATH_MOUNTED /* Deprecated alias. */
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
/* General filesystem types. */
[32] Fix | Delete
#define MNTTYPE_IGNORE "ignore" /* Ignore this entry. */
[33] Fix | Delete
#define MNTTYPE_NFS "nfs" /* Network file system. */
[34] Fix | Delete
#define MNTTYPE_SWAP "swap" /* Swap device. */
[35] Fix | Delete
[36] Fix | Delete
[37] Fix | Delete
/* Generic mount options. */
[38] Fix | Delete
#define MNTOPT_DEFAULTS "defaults" /* Use all default options. */
[39] Fix | Delete
#define MNTOPT_RO "ro" /* Read only. */
[40] Fix | Delete
#define MNTOPT_RW "rw" /* Read/write. */
[41] Fix | Delete
#define MNTOPT_SUID "suid" /* Set uid allowed. */
[42] Fix | Delete
#define MNTOPT_NOSUID "nosuid" /* No set uid allowed. */
[43] Fix | Delete
#define MNTOPT_NOAUTO "noauto" /* Do not auto mount. */
[44] Fix | Delete
[45] Fix | Delete
[46] Fix | Delete
__BEGIN_DECLS
[47] Fix | Delete
[48] Fix | Delete
/* Structure describing a mount table entry. */
[49] Fix | Delete
struct mntent
[50] Fix | Delete
{
[51] Fix | Delete
char *mnt_fsname; /* Device or server for filesystem. */
[52] Fix | Delete
char *mnt_dir; /* Directory mounted on. */
[53] Fix | Delete
char *mnt_type; /* Type of filesystem: ufs, nfs, etc. */
[54] Fix | Delete
char *mnt_opts; /* Comma-separated options for fs. */
[55] Fix | Delete
int mnt_freq; /* Dump frequency (in days). */
[56] Fix | Delete
int mnt_passno; /* Pass number for `fsck'. */
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
/* Prepare to begin reading and/or writing mount table entries from the
[61] Fix | Delete
beginning of FILE. MODE is as for `fopen'. */
[62] Fix | Delete
extern FILE *setmntent (const char *__file, const char *__mode) __THROW;
[63] Fix | Delete
[64] Fix | Delete
/* Read one mount table entry from STREAM. Returns a pointer to storage
[65] Fix | Delete
reused on the next call, or null for EOF or error (use feof/ferror to
[66] Fix | Delete
check). */
[67] Fix | Delete
extern struct mntent *getmntent (FILE *__stream) __THROW;
[68] Fix | Delete
[69] Fix | Delete
#ifdef __USE_MISC
[70] Fix | Delete
/* Reentrant version of the above function. */
[71] Fix | Delete
extern struct mntent *getmntent_r (FILE *__restrict __stream,
[72] Fix | Delete
struct mntent *__restrict __result,
[73] Fix | Delete
char *__restrict __buffer,
[74] Fix | Delete
int __bufsize) __THROW;
[75] Fix | Delete
#endif
[76] Fix | Delete
[77] Fix | Delete
/* Write the mount table entry described by MNT to STREAM.
[78] Fix | Delete
Return zero on success, nonzero on failure. */
[79] Fix | Delete
extern int addmntent (FILE *__restrict __stream,
[80] Fix | Delete
const struct mntent *__restrict __mnt) __THROW;
[81] Fix | Delete
[82] Fix | Delete
/* Close a stream opened with `setmntent'. */
[83] Fix | Delete
extern int endmntent (FILE *__stream) __THROW;
[84] Fix | Delete
[85] Fix | Delete
/* Search MNT->mnt_opts for an option matching OPT.
[86] Fix | Delete
Returns the address of the substring, or null if none found. */
[87] Fix | Delete
extern char *hasmntopt (const struct mntent *__mnt,
[88] Fix | Delete
const char *__opt) __THROW;
[89] Fix | Delete
[90] Fix | Delete
[91] Fix | Delete
__END_DECLS
[92] Fix | Delete
[93] Fix | Delete
#endif /* mntent.h */
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function