8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libbc / inc / include / fstab.h
blob35b415891f220dab70c8d81394c48fdcb1b1bb8f
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 #pragma ident "%Z%%M% %I% %E% SMI"
25 * File system table, see fstab (5)
27 * Used by dump, mount, umount, swapon, fsck, df, ...
29 * The fs_spec field is the block special name. Programs
30 * that want to use the character special name must create
31 * that name by prepending a 'r' after the right most slash.
32 * Quota files are always named "quotas", so if type is "rq",
33 * then use concatenation of fs_file and "quotas" to locate
34 * quota file.
37 #ifndef _fstab_h
38 #define _fstab_h
40 #define FSTAB "/etc/fstab"
42 #define FSTAB_RW "rw" /* read/write device */
43 #define FSTAB_RQ "rq" /* read/write with quotas */
44 #define FSTAB_RO "ro" /* read-only device */
45 #define FSTAB_SW "sw" /* swap device */
46 #define FSTAB_XX "xx" /* ignore totally */
48 struct fstab{
49 char *fs_spec; /* block special device name */
50 char *fs_file; /* file system path prefix */
51 char *fs_type; /* FSTAB_* */
52 int fs_freq; /* dump frequency, in days */
53 int fs_passno; /* pass number on parallel dump */
56 struct fstab *getfsent();
57 struct fstab *getfsspec();
58 struct fstab *getfsfile();
59 struct fstab *getfstype();
60 int setfsent();
61 int endfsent();
63 #endif /*!_fstab_h*/