home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / fstab.h < prev    next >
C/C++ Source or Header  |  1990-01-22  |  2KB  |  52 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)fstab.h    5.1 (Berkeley) 5/30/85
  7.  */
  8.  
  9. /*
  10.  * File system table, see fstab (5)
  11.  *
  12.  * Used by dump, mount, umount, swapon, fsck, df, ...
  13.  *
  14.  * The fs_spec field is the block special name.  Programs
  15.  * that want to use the character special name must create
  16.  * that name by prepending a 'r' after the right most slash.
  17.  * Quota files are always named "quotas", so if type is "rq",
  18.  * then use concatenation of fs_file and "quotas" to locate
  19.  * quota file.
  20.  */
  21. #define    FSTAB        "/etc/fstab"
  22.  
  23. #define    FSTAB_RW    "rw"    /* read/write device */
  24. #define    FSTAB_RQ    "rq"    /* read/write with quotas */
  25. #define    FSTAB_RO    "ro"    /* read-only device */
  26. #define    FSTAB_SW    "sw"    /* swap device */
  27. #define    FSTAB_XX    "xx"    /* ignore totally */
  28.  
  29. struct    fstab{
  30.     char    *fs_spec;        /* block special device name */
  31.     char    *fs_file;        /* file system path prefix */
  32.     char    *fs_type;        /* FSTAB_* */
  33.     int    fs_freq;        /* dump frequency, in days */
  34.     int    fs_passno;        /* pass number on parallel dump */
  35. };
  36.  
  37. #ifdef __STRICT_BSD__
  38. struct    fstab *getfsent();
  39. struct    fstab *getfsspec();
  40. struct    fstab *getfsfile();
  41. struct    fstab *getfstype();
  42. int    setfsent();
  43. int    endfsent();
  44. #else
  45. struct    fstab *getfsent(void);
  46. struct    fstab *getfsspec(char *spec);
  47. struct    fstab *getfsfile(char *file);
  48. struct    fstab *getfstype(char *type);
  49. int    setfsent(void);
  50. int    endfsent(void);
  51. #endif __STRICT_BSD__
  52.