1: /*
   2:  * File system table, see fstab (5)
   3:  *
   4:  * Used by dump, mount, umount, swapon, fsck, df, ...
   5:  *
   6:  * The fs_spec field is the block special name.
   7:  * Programs that want to use the character special name must
   8:  * create that name by prepending a 'r' after the right most slash.
   9:  */
  10: 
  11: #define FSTAB       "/etc/fstab"
  12: #define FSNMLG      16
  13: 
  14: #define FSTABFMT    "%16s:%16s:%2s:%d:%d\n"
  15: #define FSTABARG(p) (p)->fs_spec, (p)->fs_file, \
  16:             (p)->fs_type, &(p)->fs_freq, &(p)->fs_passno
  17: #define FSTABNARGS  5
  18: 
  19: #define FSTAB_RW    "rw"    /* read write device */
  20: #define FSTAB_RO    "ro"    /* read only device */
  21: #define FSTAB_SW    "sw"    /* swap device */
  22: #define FSTAB_XX    "xx"    /* ignore totally */
  23: 
  24: struct  fstab{
  25:     char    fs_spec[FSNMLG];    /* block special device name */
  26:     char    fs_file[FSNMLG];    /* file system path prefix */
  27:     char    fs_type[3];     /* rw,ro,sw or xx */
  28:     int fs_freq;        /* dump frequency, in days */
  29:     int fs_passno;      /* pass number on parallel dump */
  30: };
  31: 
  32: struct  fstab *getfsent();
  33: struct  fstab *getfsspec();
  34: struct  fstab *getfsfile();
  35: int setfsent();
  36: int endfsent();

Defined struct's

fstab defined in line 24; used 52 times

Defined macros

FSNMLG defined in line 12; used 4 times
FSTABARG defined in line 15; never used
FSTABFMT defined in line 14; never used
FSTABNARGS defined in line 17; used 1 times
FSTAB_SW defined in line 21; never used
FSTAB_XX defined in line 22; never used

Usage of this include

Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 616
Valid CSS Valid XHTML 1.0 Strict