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
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]
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
34 #pragma ident "%Z%%M% %I% %E% SMI"
36 #include <sys/types.h>
42 #define MNTTAB "/etc/mnttab"
43 #define MNT_LINE_MAX 1024
45 #define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
46 #define MNT_TOOMANY 2 /* too many fields in line */
47 #define MNT_TOOFEW 3 /* too few fields in line */
50 ((mp)->mnt_special = (mp)->mnt_mountp = \
51 (mp)->mnt_fstype = (mp)->mnt_mntopts = \
52 (mp)->mnt_time = NULL)
54 #define putmntent(fd, mp) (-1)
65 * NOTE: fields in extmnttab should match struct mnttab till new fields
66 * are encountered, this allows hasmntopt to work properly when its arg is
67 * a pointer to an extmnttab struct cast to a mnttab struct pointer.
81 extern void resetmnttab(FILE *);
82 extern int getmntent(FILE *, struct mnttab
*);
83 extern int getextmntent(FILE *, struct extmnttab
*, size_t);
84 extern int getmntany(FILE *, struct mnttab
*, struct mnttab
*);
85 extern char *hasmntopt(struct mnttab
*, char *);
86 extern char *mntopt(char **);
88 extern void resetmnttab();
89 extern int getmntent();
90 extern int getextmntent();
91 extern int getmntany();
92 extern char *hasmntopt();
93 extern char *mntopt();
101 #endif /* _SYS_MNTTAB_H */