xref: /titanic_50/usr/src/lib/libbc/inc/include/exportent.h (revision 0a1278f26ea4b7c8c0285d4f2d6c5b680904aa01)
1 /*
2  * CDDL HEADER START
3  *
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.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 #pragma ident	"%Z%%M%	%I%	%E% SMI"
23 
24 /*
25  * Exported file system table, see exportent(3)
26  * Copyright (C) 1986 by Sun Microsystems, Inc.
27  */
28 
29 #ifndef _exportent_h
30 #define _exportent_h
31 
32 #define TABFILE "/etc/xtab"		/* where the table is kept */
33 
34 /*
35  * Options keywords
36  */
37 #define ACCESS_OPT	"access"	/* machines that can mount fs */
38 #define ROOT_OPT	"root"		/* machines with root access of fs */
39 #define RO_OPT		"ro"		/* export read-only */
40 #define RW_OPT		"rw"		/* export read-mostly */
41 #define ANON_OPT	"anon"		/* uid for anonymous requests */
42 #define SECURE_OPT	"secure"	/* require secure NFS for access */
43 #define WINDOW_OPT	"window"	/* expiration window for credential */
44 
45 struct exportent {
46 	char *xent_dirname;	/* directory (or file) to export */
47 	char *xent_options;	/* options, as above */
48 };
49 
50 extern FILE *setexportent();
51 extern void endexportent();
52 extern int remexportent();
53 extern int addexportent();
54 extern char *getexportopt();
55 extern struct exportent *getexportent();
56 
57 #endif /*!_exportent_h*/
58