add isinf(), isnan() for all architectures
[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 *
863005e5 5 * %sccs.include.redist.c%
19bfcb20 6 *
91befe9c 7 * @(#)fstab.h 5.11 (Berkeley) %G%
bb0cfa24 8 */
bc08c854
SL
9
10/*
ff81dbe3 11 * File system table, see fstab(5).
bc08c854
SL
12 *
13 * Used by dump, mount, umount, swapon, fsck, df, ...
14 *
3038098e
KM
15 * For ufs fs_spec field is the block special name. Programs that want to
16 * use the character special name must create that name by prepending a 'r'
ff81dbe3
KB
17 * after the right most slash. Quota files are always named "quotas", so
18 * if type is "rq", then use concatenation of fs_file and "quotas" to locate
c0adf42f 19 * quota file.
bc08c854 20 */
ff81dbe3
KB
21#define _PATH_FSTAB "/etc/fstab"
22#define FSTAB "/etc/fstab" /* deprecated */
bc08c854 23
ff81dbe3
KB
24#define FSTAB_RW "rw" /* read/write device */
25#define FSTAB_RQ "rq" /* read/write with quotas */
26#define FSTAB_RO "ro" /* read-only device */
27#define FSTAB_SW "sw" /* swap device */
28#define FSTAB_XX "xx" /* ignore totally */
bc08c854 29
ff81dbe3 30struct fstab {
a7347436
SL
31 char *fs_spec; /* block special device name */
32 char *fs_file; /* file system path prefix */
60c7718d
KM
33 char *fs_vfstype; /* File system type, ufs, nfs */
34 char *fs_mntops; /* Mount options ala -o */
3038098e
KM
35 char *fs_type; /* FSTAB_* from fs_mntops */
36 int fs_freq; /* dump frequency, in days */
37 int fs_passno; /* pass number on parallel dump */
bc08c854
SL
38};
39
91befe9c
KB
40#include <sys/cdefs.h>
41
42__BEGIN_DECLS
43struct fstab *getfsent __P((void));
44struct fstab *getfsspec __P((const char *));
45struct fstab *getfsfile __P((const char *));
46int setfsent __P((void));
47void endfsent __P((void));
48__END_DECLS