Back to index

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

Go to the source code of this file.

Classes

struct  fstab

Defines

#define _PATH_FSTAB   "/etc/fstab"
#define FSTAB   "/etc/fstab" /* deprecated */
#define FSTAB_RW   "rw" /* read/write device */
#define FSTAB_RQ   "rq" /* read/write with quotas */
#define FSTAB_RO   "ro" /* read-only device */
#define FSTAB_SW   "sw" /* swap device */
#define FSTAB_XX   "xx" /* ignore totally */

Functions

__BEGIN_DECLS struct fstabgetfsent (void) __THROW
struct fstabgetfsspec (__const char *__name) __THROW
struct fstabgetfsfile (__const char *__name) __THROW
int setfsent (void) __THROW
void endfsent (void) __THROW

Class Documentation

struct fstab

Definition at line 57 of file fstab.h.

Class Members
char * fs_file
int fs_freq
char * fs_mntops
int fs_passno
char * fs_spec
const char * fs_type
char * fs_vfstype

Define Documentation

#define _PATH_FSTAB   "/etc/fstab"

Definition at line 48 of file fstab.h.

#define FSTAB   "/etc/fstab" /* deprecated */

Definition at line 49 of file fstab.h.

#define FSTAB_RO   "ro" /* read-only device */

Definition at line 53 of file fstab.h.

#define FSTAB_RQ   "rq" /* read/write with quotas */

Definition at line 52 of file fstab.h.

#define FSTAB_RW   "rw" /* read/write device */

Definition at line 51 of file fstab.h.

#define FSTAB_SW   "sw" /* swap device */

Definition at line 54 of file fstab.h.

#define FSTAB_XX   "xx" /* ignore totally */

Definition at line 55 of file fstab.h.


Function Documentation

void endfsent ( void  )

Definition at line 100 of file fstab.c.

{
  struct fstab_state *state;

  state = &fstab_state;
  if (state->fs_fp != NULL)
    {
      (void) __endmntent (state->fs_fp);
      state->fs_fp = NULL;
    }
}

Here is the call graph for this function:

__BEGIN_DECLS struct fstab* getfsent ( void  ) [read]

Definition at line 52 of file fstab.c.

{
  struct fstab_state *state;

  state = fstab_init (0);
  if (state == NULL)
    return NULL;
  if (fstab_fetch (state) == NULL)
    return NULL;
  return fstab_convert (state);
}

Here is the call graph for this function:

struct fstab* getfsfile ( __const char *  __name) [read]
struct fstab* getfsspec ( __const char *  __name) [read]
int setfsent ( void  )

Definition at line 45 of file fstab.c.

{
  return fstab_init (1) != NULL;
}

Here is the call graph for this function: