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