# 2.11BSD#431 - /usr/include/fstab.h

##### Macros

    FSTAB             X
    FSTAB_RO          X
    FSTAB_RQ          X
    FSTAB_RW          X
    FSTAB_SW          X
    FSTAB_XX          X
    _FSTAB_H_         X
    _PATH_FSTAB       X

##### struct's

    fstab             X

       1: /*
       2:  * Copyright (c) 1980, 1993
       3:  *	The Regents of the University of California.  All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms, with or without
       6:  * modification, are permitted provided that the following conditions
       7:  * are met:
       8:  * 1. Redistributions of source code must retain the above copyright
       9:  *    notice, this list of conditions and the following disclaimer.
      10:  * 2. Redistributions in binary form must reproduce the above copyright
      11:  *    notice, this list of conditions and the following disclaimer in the
      12:  *    documentation and/or other materials provided with the distribution.
      13:  * 3. All advertising materials mentioning features or use of this software
      14:  *    must display the following acknowledgement:
      15:  *	This product includes software developed by the University of
      16:  *	California, Berkeley and its contributors.
      17:  * 4. Neither the name of the University nor the names of its contributors
      18:  *    may be used to endorse or promote products derived from this software
      19:  *    without specific prior written permission.
      20:  *
      21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
      22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
      25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      31:  * SUCH DAMAGE.
      32:  *
      33:  *	@(#)fstab.h	8.1.1 (2.11BSD) 1996/1/15
      34:  */
      35:
      36: #ifndef _FSTAB_H_
      37: #define _FSTAB_H_
      38:
      39: /*
      40:  * File system table, see fstab(5).
      41:  *
      42:  * Used by dump, mount, umount, swapon, fsck, df, ...
      43:  *
      44:  * For ufs fs_spec field is the block special name.  Programs that want to
      45:  * use the character special name must create that name by prepending a 'r'
      46:  * after the right most slash.  Quota files are always named "quotas", so
      47:  * if type is "rq", then use concatenation of fs_file and "quotas" to locate
      48:  * quota file.
      49:  */
      50: #define _PATH_FSTAB "/etc/fstab"
      51: #define FSTAB       "/etc/fstab"    /* deprecated */
      52:
      53: #define FSTAB_RW    "rw"        /* read/write device */
      54: #define FSTAB_RQ    "rq"        /* read/write with quotas */
      55: #define FSTAB_RO    "ro"        /* read-only device */
      56: #define FSTAB_SW    "sw"        /* swap device */
      57: #define FSTAB_XX    "xx"        /* ignore totally */
      58:
      59: struct fstab {
      60:     char    *fs_spec;       /* block special device name */
      61:     char    *fs_file;       /* file system path prefix */
      62:     char    *fs_vfstype;        /* File system type, ufs, nfs */
      63:     char    *fs_mntops;     /* Mount options ala -o */
      64:     char    *fs_type;       /* FSTAB_* from fs_mntops */
      65:     int fs_freq;        /* dump frequency, in days */
      66:     int fs_passno;      /* pass number on parallel dump */
      67: };
      68:
      69: struct fstab *getfsent();
      70: struct fstab *getfsspec();
      71: struct fstab *getfsfile();
      72: int setfsent();
      73: void endfsent();
      74:
      75: #endif /* !_FSTAB_H_ */

#### Defined struct's

fstab defined in line 59; used 64 times

- in line 69-71(6)
- in /usr/src/lib/libc/gen/fstab.c line 48(2), 147-155(6), 163-166(4), 174(2)
- in /usr/src/old/dump/dumpmain.c line 16(2)
- in /usr/src/old/dump/dumpoptr.c line 282(2)
- in /usr/src/sbin/dump/dumpmain.c line 20(2)
- in /usr/src/sbin/dump/dumpoptr.c line 270(2)
- in /usr/src/sbin/fsck/main.c line 34(2)
- in /usr/src/sbin/mount/mount.c line 93(2)
- in /usr/src/sbin/quotacheck/preen.c line 70(2)
- in /usr/src/sbin/quotacheck/quotacheck.c line 117(2), 181(2), 381(2)
- in /usr/src/sbin/umount/umount.c line 119(2)
- in /usr/src/ucb/quota.c line 108(2), 304(2)
- in /usr/src/usr.sbin/edquota/edquota.c line 167(2), 505(2)
- in /usr/src/usr.sbin/quotaon/quotaon.c line 65(2), 133(2), 179(2), 215(2)
- in /usr/src/usr.sbin/repquota/repquota.c line 79(2), 142(2), 237(2)

#### Defined macros

FSTAB defined in line 51; used 4 times

- in /usr/src/sbin/fsck/main.c line 90, 117
- in /usr/src/sbin/quotacheck/quotacheck.c line 153, 166

FSTAB_RO defined in line 55; used 5 times

- in /usr/src/lib/libc/gen/fstab.c line 122-123(2)
- in /usr/src/sbin/fsck/main.c line 121
- in /usr/src/sbin/mount/mount.c line 148
- in /usr/src/sbin/umount/umount.c line 132

FSTAB_RQ defined in line 54; used 12 times

- in /usr/src/lib/libc/gen/fstab.c line 118-119(2)
- in /usr/src/sbin/fsck/main.c line 122
- in /usr/src/sbin/mount/mount.c line 149
- in /usr/src/sbin/quotacheck/quotacheck.c line 187, 399
- in /usr/src/sbin/umount/umount.c line 133
- in /usr/src/ucb/quota.c line 322
- in /usr/src/usr.sbin/edquota/edquota.c line 523
- in /usr/src/usr.sbin/quotaon/quotaon.c line 98, 197
- in /usr/src/usr.sbin/repquota/repquota.c line 255

FSTAB_RW defined in line 53; used 8 times

- in /usr/src/lib/libc/gen/fstab.c line 114-115(2)
- in /usr/src/sbin/fsck/main.c line 120
- in /usr/src/sbin/mount/mount.c line 149
- in /usr/src/sbin/quotacheck/quotacheck.c line 187
- in /usr/src/sbin/umount/umount.c line 131
- in /usr/src/usr.sbin/quotaon/quotaon.c line 99-101(2)

FSTAB_SW defined in line 56; used 3 times

- in /usr/src/lib/libc/gen/fstab.c line 81, 126-127(2)

FSTAB_XX defined in line 57; used 3 times

- in /usr/src/lib/libc/gen/fstab.c line 77, 130-131(2)

_FSTAB_H_ defined in line 37; used 1 times

- in line 36

_PATH_FSTAB defined in line 50; used 4 times

- in /usr/src/lib/libc/gen/fstab.c line 183, 206
- in /usr/src/sbin/quotacheck/preen.c line 81
- in /usr/src/sbin/umount/umount.c line 107

#### Usage of this include

fstab.h used 14 times

- in /usr/src/bin/df.c line 216
- in /usr/src/lib/libc/gen/fstab.c line 39
- in /usr/src/old/dump/dump.h line 24
- in /usr/src/sbin/dump/dump.h line 18
- in /usr/src/sbin/fsck/main.c line 20
- in /usr/src/sbin/mount/getmntopts.c line 42
- in /usr/src/sbin/mount/mount.c line 47
- in /usr/src/sbin/quotacheck/preen.c line 41
- in /usr/src/sbin/quotacheck/quotacheck.c line 56
- in /usr/src/sbin/umount/umount.c line 45
- in /usr/src/ucb/quota.c line 19
- in /usr/src/usr.sbin/edquota/edquota.c line 54
- in /usr/src/usr.sbin/quotaon/quotaon.c line 52
- in /usr/src/usr.sbin/repquota/repquota.c line 51

Last modified: 1996-01-16 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 655 |