31e37bb439502e3f7c4c0a9a77d655ea5d56887avn/*
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * CDDL HEADER START
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn *
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * The contents of this file are subject to the terms of the
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * Common Development and Distribution License, Version 1.0 only
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * (the "License"). You may not use this file except in compliance
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * with the License.
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn *
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * or http://www.opensolaris.org/os/licensing.
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * See the License for the specific language governing permissions
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * and limitations under the License.
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn *
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * When distributing Covered Code, include this CDDL HEADER in each
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * If applicable, add the following below this CDDL HEADER, with the
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * fields enclosed by brackets "[]" replaced with your own identifying
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * information: Portions Copyright [yyyy] [name of copyright owner]
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn *
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * CDDL HEADER END
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn */
5f149bca52352f45598e5563debe72ce04bd7a21cy#pragma ident "%Z%%M% %I% %E% SMI"
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn/*
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * Exported file system table, see exportent(3)
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * Copyright (C) 1986 by Sun Microsystems, Inc.
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#ifndef _exportent_h
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#define _exportent_h
5f149bca52352f45598e5563debe72ce04bd7a21cy
5f149bca52352f45598e5563debe72ce04bd7a21cy#define TABFILE "/etc/xtab" /* where the table is kept */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn
5f149bca52352f45598e5563debe72ce04bd7a21cy/*
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn * Options keywords
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#define ACCESS_OPT "access" /* machines that can mount fs */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#define ROOT_OPT "root" /* machines with root access of fs */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#define RO_OPT "ro" /* export read-only */
5f149bca52352f45598e5563debe72ce04bd7a21cy#define RW_OPT "rw" /* export read-mostly */
5f149bca52352f45598e5563debe72ce04bd7a21cy#define ANON_OPT "anon" /* uid for anonymous requests */
31e37bb439502e3f7c4c0a9a77d655ea5d56887avn#define SECURE_OPT "secure" /* require secure NFS for access */
5f149bca52352f45598e5563debe72ce04bd7a21cy#define WINDOW_OPT "window" /* expiration window for credential */
5f149bca52352f45598e5563debe72ce04bd7a21cy
31e37bb439502e3f7c4c0a9a77d655ea5d56887avnstruct exportent {
5f149bca52352f45598e5563debe72ce04bd7a21cy char *xent_dirname; /* directory (or file) to export */
62e6146930fb254c3db3332a4597f6fffe081b2cdb char *xent_options; /* options, as above */
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye};
5f149bca52352f45598e5563debe72ce04bd7a21cy
5f149bca52352f45598e5563debe72ce04bd7a21cyextern FILE *setexportent();
5f149bca52352f45598e5563debe72ce04bd7a21cyextern void endexportent();
5f149bca52352f45598e5563debe72ce04bd7a21cyextern int remexportent();
5f149bca52352f45598e5563debe72ce04bd7a21cyextern int addexportent();
5f149bca52352f45598e5563debe72ce04bd7a21cyextern char *getexportopt();
5f149bca52352f45598e5563debe72ce04bd7a21cyextern struct exportent *getexportent();
#endif /*!_exportent_h*/