ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / include / fstab.h
CommitLineData
bb0cfa24
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
19bfcb20 3 * All rights reserved.
bb0cfa24 4 *
19bfcb20
KB
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 *
8a2ab02a 17 * @(#)fstab.h 5.4 (Berkeley) %G%
bb0cfa24 18 */
bc08c854
SL
19
20/*
21 * File system table, see fstab (5)
22 *
23 * Used by dump, mount, umount, swapon, fsck, df, ...
24 *
c0adf42f
SL
25 * The fs_spec field is the block special name. Programs
26 * that want to use the character special name must create
27 * that name by prepending a 'r' after the right most slash.
28 * Quota files are always named "quotas", so if type is "rq",
29 * then use concatenation of fs_file and "quotas" to locate
30 * quota file.
bc08c854 31 */
bc08c854 32#define FSTAB "/etc/fstab"
bc08c854 33
c0adf42f 34#define FSTAB_RW "rw" /* read/write device */
e2151f85 35#define FSTAB_RQ "rq" /* read/write with quotas */
c0adf42f 36#define FSTAB_RO "ro" /* read-only device */
bc08c854
SL
37#define FSTAB_SW "sw" /* swap device */
38#define FSTAB_XX "xx" /* ignore totally */
39
40struct fstab{
a7347436
SL
41 char *fs_spec; /* block special device name */
42 char *fs_file; /* file system path prefix */
c0adf42f 43 char *fs_type; /* FSTAB_* */
bc08c854
SL
44 int fs_freq; /* dump frequency, in days */
45 int fs_passno; /* pass number on parallel dump */
46};
47
48struct fstab *getfsent();
49struct fstab *getfsspec();
50struct fstab *getfsfile();
51int setfsent();
fed6d52f 52void endfsent();