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: struct fstab *getfsent();
38: struct fstab *getfsspec();
39: struct fstab *getfsfile();
40: struct fstab *getfstype();
41: int setfsent();
42: int endfsent();
Defined struct's
fstab
defined in line
29; used 144 times
- in line 37-40(8)
- in /usr/src/bin/df.c line
75(2),
101(2)
- in /usr/src/etc/dump.4.1/dump.h line
105(2)
- in /usr/src/etc/dump.4.1/dumpmain.c line
25(2)
- in /usr/src/etc/dump.4.1/dumpoptr.c line
288-296(8),
313(2),
320(2),
352-361(6),
392(2)
- in /usr/src/etc/dump/dump.h line
106(2)
- in /usr/src/etc/dump/dumpmain.c line
32(2)
- in /usr/src/etc/dump/dumpoptr.c line
290-298(8),
315(2),
322(2),
354-363(6),
394(2)
- in /usr/src/etc/dumpfs.c line
43(2)
- in /usr/src/etc/edquota.c line
319(2),
383(2)
- in /usr/src/etc/fsck/main.c line
35(2)
- in /usr/src/etc/mount.c line
79(2),
98(2)
- in /usr/src/etc/quot.c line
97(2),
148(2)
- in /usr/src/etc/quotacheck.c line
76(2),
147(2)
- in /usr/src/etc/quotaon.c line
41(2),
97(2),
139(2),
174(2)
- in /usr/src/etc/repquota.c line
54(2)
- in /usr/src/etc/swapon.c line
35(2)
- in /usr/src/etc/tunefs.c line
45(2)
- in /usr/src/etc/umount.c line
74(2),
95-103(8),
119(2),
139(2)
- in /usr/src/lib/libc/gen/fstab.c line
15(2),
55(2),
99(2),
105-151(28)
- in /usr/src/ucb/quota.c line
109(2)
Defined macros
FSTAB
defined in line
21; used 13 times
Usage of this include