1190815Srmacklem/*-
2190815Srmacklem * Copyright (c) 1989, 1993, 1995
3190815Srmacklem *	The Regents of the University of California.  All rights reserved.
4190815Srmacklem *
5190815Srmacklem * This code is derived from software contributed to Berkeley by
6190815Srmacklem * Rick Macklem at The University of Guelph.
7190815Srmacklem *
8190815Srmacklem * Redistribution and use in source and binary forms, with or without
9190815Srmacklem * modification, are permitted provided that the following conditions
10190815Srmacklem * are met:
11190815Srmacklem * 1. Redistributions of source code must retain the above copyright
12190815Srmacklem *    notice, this list of conditions and the following disclaimer.
13190815Srmacklem * 2. Redistributions in binary form must reproduce the above copyright
14190815Srmacklem *    notice, this list of conditions and the following disclaimer in the
15190815Srmacklem *    documentation and/or other materials provided with the distribution.
16190815Srmacklem * 4. Neither the name of the University nor the names of its contributors
17190815Srmacklem *    may be used to endorse or promote products derived from this software
18190815Srmacklem *    without specific prior written permission.
19190815Srmacklem *
20190815Srmacklem * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21190815Srmacklem * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22190815Srmacklem * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23190815Srmacklem * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24190815Srmacklem * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25190815Srmacklem * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26190815Srmacklem * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27190815Srmacklem * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28190815Srmacklem * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29190815Srmacklem * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30190815Srmacklem * SUCH DAMAGE.
31190815Srmacklem *
32190815Srmacklem * $FreeBSD$
33190815Srmacklem */
34190815Srmacklem
35190815Srmacklem#ifndef _NFS_NFSSVC_H_
36190815Srmacklem#define _NFS_NFSSVC_H_
37190815Srmacklem
38190815Srmacklem/*
39190815Srmacklem * Flags for nfssvc() system call.
40190815Srmacklem */
41190815Srmacklem#define	NFSSVC_OLDNFSD	0x004
42190815Srmacklem#define	NFSSVC_ADDSOCK	0x008
43190815Srmacklem#define	NFSSVC_NFSD	0x010
44190815Srmacklem
45190815Srmacklem/*
46190815Srmacklem * and ones for nfsv4.
47190815Srmacklem */
48190815Srmacklem#define	NFSSVC_NOPUBLICFH	0x00000020
49190815Srmacklem#define	NFSSVC_STABLERESTART	0x00000040
50190815Srmacklem#define	NFSSVC_NFSDNFSD		0x00000080
51190815Srmacklem#define	NFSSVC_NFSDADDSOCK	0x00000100
52190815Srmacklem#define	NFSSVC_IDNAME		0x00000200
53190815Srmacklem#define	NFSSVC_GSSDDELETEALL	0x00000400
54190815Srmacklem#define	NFSSVC_GSSDADDPORT	0x00000800
55190815Srmacklem#define	NFSSVC_NFSUSERDPORT	0x00001000
56190815Srmacklem#define	NFSSVC_NFSUSERDDELPORT	0x00002000
57190815Srmacklem#define	NFSSVC_V4ROOTEXPORT	0x00004000
58190815Srmacklem#define	NFSSVC_ADMINREVOKE	0x00008000
59190815Srmacklem#define	NFSSVC_DUMPCLIENTS	0x00010000
60190815Srmacklem#define	NFSSVC_DUMPLOCKS	0x00020000
61190815Srmacklem#define	NFSSVC_GSSDADDFIRST	0x00040000
62190815Srmacklem#define	NFSSVC_PUBLICFH		0x00080000
63190815Srmacklem#define	NFSSVC_NFSCBD		0x00100000
64190815Srmacklem#define	NFSSVC_CBADDSOCK	0x00200000
65190815Srmacklem#define	NFSSVC_GETSTATS		0x00400000
66217432Srmacklem#define	NFSSVC_BACKUPSTABLE	0x00800000
67221439Srmacklem#define	NFSSVC_ZEROCLTSTATS	0x01000000	/* modifier for GETSTATS */
68221439Srmacklem#define	NFSSVC_ZEROSRVSTATS	0x02000000	/* modifier for GETSTATS */
69241561Srmacklem#define	NFSSVC_SUSPENDNFSD	0x04000000
70241561Srmacklem#define	NFSSVC_RESUMENFSD	0x08000000
71243782Srmacklem#define	NFSSVC_DUMPMNTOPTS	0x10000000
72190815Srmacklem
73243782Srmacklem/* Argument structure for NFSSVC_DUMPMNTOPTS. */
74243782Srmacklemstruct nfscl_dumpmntopts {
75243782Srmacklem	char	*ndmnt_fname;		/* File Name */
76243782Srmacklem	size_t	ndmnt_blen;		/* Size of buffer */
77243782Srmacklem	void	*ndmnt_buf;		/* and the buffer */
78243782Srmacklem};
79243782Srmacklem
80190815Srmacklem#endif /* _NFS_NFSSVC_H */
81