Add copyright
[unix-history] / usr / src / include / fstab.h
CommitLineData
bb0cfa24
DF
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) %G%
7 */
bc08c854
SL
8
9/*
10 * File system table, see fstab (5)
11 *
12 * Used by dump, mount, umount, swapon, fsck, df, ...
13 *
c0adf42f
SL
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.
bc08c854 20 */
bc08c854 21#define FSTAB "/etc/fstab"
bc08c854 22
c0adf42f 23#define FSTAB_RW "rw" /* read/write device */
e2151f85 24#define FSTAB_RQ "rq" /* read/write with quotas */
c0adf42f 25#define FSTAB_RO "ro" /* read-only device */
bc08c854
SL
26#define FSTAB_SW "sw" /* swap device */
27#define FSTAB_XX "xx" /* ignore totally */
28
29struct fstab{
a7347436
SL
30 char *fs_spec; /* block special device name */
31 char *fs_file; /* file system path prefix */
c0adf42f 32 char *fs_type; /* FSTAB_* */
bc08c854
SL
33 int fs_freq; /* dump frequency, in days */
34 int fs_passno; /* pass number on parallel dump */
35};
36
37struct fstab *getfsent();
38struct fstab *getfsspec();
39struct fstab *getfsfile();
c0adf42f 40struct fstab *getfstype();
bc08c854
SL
41int setfsent();
42int endfsent();