1*e81f0ea2Spgoyette /* $NetBSD: nfssvc.h,v 1.1.1.2 2016/11/18 07:49:12 pgoyette Exp $ */ 26ca35587Sdholland /*- 36ca35587Sdholland * Copyright (c) 1989, 1993, 1995 46ca35587Sdholland * The Regents of the University of California. All rights reserved. 56ca35587Sdholland * 66ca35587Sdholland * This code is derived from software contributed to Berkeley by 76ca35587Sdholland * Rick Macklem at The University of Guelph. 86ca35587Sdholland * 96ca35587Sdholland * Redistribution and use in source and binary forms, with or without 106ca35587Sdholland * modification, are permitted provided that the following conditions 116ca35587Sdholland * are met: 126ca35587Sdholland * 1. Redistributions of source code must retain the above copyright 136ca35587Sdholland * notice, this list of conditions and the following disclaimer. 146ca35587Sdholland * 2. Redistributions in binary form must reproduce the above copyright 156ca35587Sdholland * notice, this list of conditions and the following disclaimer in the 166ca35587Sdholland * documentation and/or other materials provided with the distribution. 176ca35587Sdholland * 4. Neither the name of the University nor the names of its contributors 186ca35587Sdholland * may be used to endorse or promote products derived from this software 196ca35587Sdholland * without specific prior written permission. 206ca35587Sdholland * 216ca35587Sdholland * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 226ca35587Sdholland * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 236ca35587Sdholland * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 246ca35587Sdholland * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 256ca35587Sdholland * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 266ca35587Sdholland * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 276ca35587Sdholland * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 286ca35587Sdholland * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 296ca35587Sdholland * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 306ca35587Sdholland * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 316ca35587Sdholland * SUCH DAMAGE. 326ca35587Sdholland * 33*e81f0ea2Spgoyette * FreeBSD: head/sys/nfs/nfssvc.h 291527 2015-11-30 21:54:27Z rmacklem 34*e81f0ea2Spgoyette * $NetBSD: nfssvc.h,v 1.1.1.2 2016/11/18 07:49:12 pgoyette Exp $ 356ca35587Sdholland */ 366ca35587Sdholland 376ca35587Sdholland #ifndef _NFS_NFSSVC_H_ 386ca35587Sdholland #define _NFS_NFSSVC_H_ 396ca35587Sdholland 406ca35587Sdholland /* 416ca35587Sdholland * Flags for nfssvc() system call. 426ca35587Sdholland */ 436ca35587Sdholland #define NFSSVC_OLDNFSD 0x004 446ca35587Sdholland #define NFSSVC_ADDSOCK 0x008 456ca35587Sdholland #define NFSSVC_NFSD 0x010 466ca35587Sdholland 476ca35587Sdholland /* 486ca35587Sdholland * and ones for nfsv4. 496ca35587Sdholland */ 506ca35587Sdholland #define NFSSVC_NOPUBLICFH 0x00000020 516ca35587Sdholland #define NFSSVC_STABLERESTART 0x00000040 526ca35587Sdholland #define NFSSVC_NFSDNFSD 0x00000080 536ca35587Sdholland #define NFSSVC_NFSDADDSOCK 0x00000100 546ca35587Sdholland #define NFSSVC_IDNAME 0x00000200 556ca35587Sdholland #define NFSSVC_GSSDDELETEALL 0x00000400 566ca35587Sdholland #define NFSSVC_GSSDADDPORT 0x00000800 576ca35587Sdholland #define NFSSVC_NFSUSERDPORT 0x00001000 586ca35587Sdholland #define NFSSVC_NFSUSERDDELPORT 0x00002000 596ca35587Sdholland #define NFSSVC_V4ROOTEXPORT 0x00004000 606ca35587Sdholland #define NFSSVC_ADMINREVOKE 0x00008000 616ca35587Sdholland #define NFSSVC_DUMPCLIENTS 0x00010000 626ca35587Sdholland #define NFSSVC_DUMPLOCKS 0x00020000 636ca35587Sdholland #define NFSSVC_GSSDADDFIRST 0x00040000 646ca35587Sdholland #define NFSSVC_PUBLICFH 0x00080000 656ca35587Sdholland #define NFSSVC_NFSCBD 0x00100000 666ca35587Sdholland #define NFSSVC_CBADDSOCK 0x00200000 676ca35587Sdholland #define NFSSVC_GETSTATS 0x00400000 686ca35587Sdholland #define NFSSVC_BACKUPSTABLE 0x00800000 696ca35587Sdholland #define NFSSVC_ZEROCLTSTATS 0x01000000 /* modifier for GETSTATS */ 706ca35587Sdholland #define NFSSVC_ZEROSRVSTATS 0x02000000 /* modifier for GETSTATS */ 716ca35587Sdholland #define NFSSVC_SUSPENDNFSD 0x04000000 726ca35587Sdholland #define NFSSVC_RESUMENFSD 0x08000000 736ca35587Sdholland #define NFSSVC_DUMPMNTOPTS 0x10000000 74*e81f0ea2Spgoyette #define NFSSVC_NEWSTRUCT 0x20000000 756ca35587Sdholland 766ca35587Sdholland /* Argument structure for NFSSVC_DUMPMNTOPTS. */ 776ca35587Sdholland struct nfscl_dumpmntopts { 786ca35587Sdholland char *ndmnt_fname; /* File Name */ 796ca35587Sdholland size_t ndmnt_blen; /* Size of buffer */ 806ca35587Sdholland void *ndmnt_buf; /* and the buffer */ 816ca35587Sdholland }; 826ca35587Sdholland 836ca35587Sdholland #endif /* _NFS_NFSSVC_H */ 84