/*-1* SPDX-License-Identifier: BSD-3-Clause2*3* Copyright (c) 1989, 1993, 19954* The Regents of the University of California. All rights reserved.5*6* This code is derived from software contributed to Berkeley by7* Rick Macklem at The University of Guelph.8*9* Redistribution and use in source and binary forms, with or without10* modification, are permitted provided that the following conditions11* are met:12* 1. Redistributions of source code must retain the above copyright13* notice, this list of conditions and the following disclaimer.14* 2. Redistributions in binary form must reproduce the above copyright15* notice, this list of conditions and the following disclaimer in the16* documentation and/or other materials provided with the distribution.17* 3. Neither the name of the University nor the names of its contributors18* may be used to endorse or promote products derived from this software19* without specific prior written permission.20*21* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND22* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE23* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE24* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE25* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL26* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS27* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)28* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT29* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY30* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF31* SUCH DAMAGE.32*/3334#ifndef _NFS_NFSSVC_H_35#define _NFS_NFSSVC_H_3637/*38* Flags for nfssvc() system call.39*/40#define NFSSVC_OLDNFSD 0x00441#define NFSSVC_ADDSOCK 0x00842#define NFSSVC_NFSD 0x0104344/*45* and ones for nfsv4.46*/47#define NFSSVC_NOPUBLICFH 0x0000002048#define NFSSVC_STABLERESTART 0x0000004049#define NFSSVC_NFSDNFSD 0x0000008050#define NFSSVC_NFSDADDSOCK 0x0000010051#define NFSSVC_IDNAME 0x0000020052#define NFSSVC_GSSDDELETEALL 0x0000040053#define NFSSVC_GSSDADDPORT 0x0000080054#define NFSSVC_NFSUSERDPORT 0x0000100055#define NFSSVC_NFSUSERDDELPORT 0x0000200056#define NFSSVC_V4ROOTEXPORT 0x0000400057#define NFSSVC_ADMINREVOKE 0x0000800058#define NFSSVC_DUMPCLIENTS 0x0001000059#define NFSSVC_DUMPLOCKS 0x0002000060#define NFSSVC_GSSDADDFIRST 0x0004000061#define NFSSVC_PUBLICFH 0x0008000062#define NFSSVC_NFSCBD 0x0010000063#define NFSSVC_CBADDSOCK 0x0020000064#define NFSSVC_GETSTATS 0x0040000065#define NFSSVC_BACKUPSTABLE 0x0080000066#define NFSSVC_ZEROCLTSTATS 0x01000000 /* modifier for GETSTATS */67#define NFSSVC_ZEROSRVSTATS 0x02000000 /* modifier for GETSTATS */68#define NFSSVC_SUSPENDNFSD 0x0400000069#define NFSSVC_RESUMENFSD 0x0800000070#define NFSSVC_DUMPMNTOPTS 0x1000000071#define NFSSVC_NEWSTRUCT 0x2000000072#define NFSSVC_FORCEDISM 0x4000000073#define NFSSVC_PNFSDS 0x800000007475/* Argument structure for NFSSVC_DUMPMNTOPTS. */76struct nfscl_dumpmntopts {77char *ndmnt_fname; /* File Name */78size_t ndmnt_blen; /* Size of buffer */79void *ndmnt_buf; /* and the buffer */80};8182#endif /* _NFS_NFSSVC_H */838485