Back to index

glibc  2.9
Classes | Defines | Functions
mntent.h File Reference
#include <features.h>
#include <stdio.h>
#include <paths.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  mntent


#define __need_FILE
#define MNTTAB   _PATH_MNTTAB /* Deprecated alias. */
#define MOUNTED   _PATH_MOUNTED /* Deprecated alias. */
#define MNTTYPE_IGNORE   "ignore" /* Ignore this entry. */
#define MNTTYPE_NFS   "nfs" /* Network file system. */
#define MNTTYPE_SWAP   "swap" /* Swap device. */
#define MNTOPT_DEFAULTS   "defaults" /* Use all default options. */
#define MNTOPT_RO   "ro" /* Read only. */
#define MNTOPT_RW   "rw" /* Read/write. */
#define MNTOPT_SUID   "suid" /* Set uid allowed. */
#define MNTOPT_NOSUID   "nosuid" /* No set uid allowed. */
#define MNTOPT_NOAUTO   "noauto" /* Do not auto mount. */


FILEsetmntent (__const char *__file, __const char *__mode) __THROW
struct mntentgetmntent (FILE *__stream) __THROW
int addmntent (FILE *__restrict __stream, __const struct mntent *__restrict __mnt) __THROW
int endmntent (FILE *__stream) __THROW
char * hasmntopt (__const struct mntent *__mnt, __const char *__opt) __THROW

Class Documentation

struct mntent

Definition at line 54 of file mntent.h.

Class Members
char * mnt_dir
int mnt_freq
char * mnt_fsname
char * mnt_opts
int mnt_passno
char * mnt_type

Define Documentation

#define __need_FILE

Definition at line 24 of file mntent.h.

#define MNTOPT_DEFAULTS   "defaults" /* Use all default options. */

Definition at line 43 of file mntent.h.

#define MNTOPT_NOAUTO   "noauto" /* Do not auto mount. */

Definition at line 48 of file mntent.h.

#define MNTOPT_NOSUID   "nosuid" /* No set uid allowed. */

Definition at line 47 of file mntent.h.

#define MNTOPT_RO   "ro" /* Read only. */

Definition at line 44 of file mntent.h.

#define MNTOPT_RW   "rw" /* Read/write. */

Definition at line 45 of file mntent.h.

#define MNTOPT_SUID   "suid" /* Set uid allowed. */

Definition at line 46 of file mntent.h.

#define MNTTAB   _PATH_MNTTAB /* Deprecated alias. */

Definition at line 30 of file mntent.h.

#define MNTTYPE_IGNORE   "ignore" /* Ignore this entry. */

Definition at line 37 of file mntent.h.

#define MNTTYPE_NFS   "nfs" /* Network file system. */

Definition at line 38 of file mntent.h.

#define MNTTYPE_SWAP   "swap" /* Swap device. */

Definition at line 39 of file mntent.h.

#define MOUNTED   _PATH_MOUNTED /* Deprecated alias. */

Definition at line 33 of file mntent.h.

Function Documentation

int addmntent ( FILE *__restrict  __stream,
__const struct mntent *__restrict  __mnt 

Here is the caller graph for this function:

int endmntent ( FILE __stream)
struct mntent* getmntent ( FILE __stream) [read]

Definition at line 41 of file mntent.c.

  static struct mntent m;
  __libc_once_define (static, once);
  __libc_once (once, allocate);

  if (getmntent_buffer == NULL)
    /* If no core is available we don't have a chance to run the
       program successfully and so returning NULL is an acceptable
       result.  */
    return NULL;

  return __getmntent_r (stream, &m, getmntent_buffer, BUFFER_SIZE);

Here is the call graph for this function:

Here is the caller graph for this function:

char* hasmntopt ( __const struct mntent __mnt,
__const char *  __opt 

Here is the caller graph for this function:

FILE* setmntent ( __const char *  __file,
__const char *  __mode