1/* $NetBSD$ */ 2 3/* 4 * Copyright (c) 1997-2014 Erez Zadok 5 * Copyright (c) 1990 Jan-Simon Pendry 6 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine 7 * Copyright (c) 1990 The Regents of the University of California. 8 * All rights reserved. 9 * 10 * This code is derived from software contributed to Berkeley by 11 * Jan-Simon Pendry at Imperial College, London. 12 * 13 * Redistribution and use in source and binary forms, with or without 14 * modification, are permitted provided that the following conditions 15 * are met: 16 * 1. Redistributions of source code must retain the above copyright 17 * notice, this list of conditions and the following disclaimer. 18 * 2. Redistributions in binary form must reproduce the above copyright 19 * notice, this list of conditions and the following disclaimer in the 20 * documentation and/or other materials provided with the distribution. 21 * 3. Neither the name of the University nor the names of its contributors 22 * may be used to endorse or promote products derived from this software 23 * without specific prior written permission. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * 38 * File: am-utils/conf/nfs_prot/nfs_prot_freebsd2.h 39 * 40 */ 41 42#ifndef _AMU_NFS_PROT_H 43#define _AMU_NFS_PROT_H 44 45#ifdef HAVE_RPCSVC_NFS_PROT_H 46# include <rpcsvc/nfs_prot.h> 47#endif /* HAVE_RPCSVC_NFS_PROT_H */ 48 49/* 50 * MACROS: 51 */ 52#define dr_drok_u diropres 53#define ca_where where 54#define da_fhandle dir 55#define da_name name 56#define dl_entries entries 57#define dl_eof eof 58#define dr_status status 59#define dr_u diropres_u 60#define drok_attributes attributes 61#define drok_fhandle file 62#define fh_data data 63#define la_fhandle from 64#define la_to to 65#define na_atime atime 66#define na_ctime ctime 67#define na_fileid fileid 68#define na_fsid fsid 69#define na_mode mode 70#define na_mtime mtime 71#define na_nlink nlink 72#define na_size size 73#define na_type type 74#define ne_cookie cookie 75#define ne_fileid fileid 76#define ne_name name 77#define ne_nextentry nextentry 78#define ns_attr_u attributes 79#define ns_status status 80#define ns_u attrstat_u 81#define nt_seconds seconds 82#define nt_useconds useconds 83#define rda_cookie cookie 84#define rda_count count 85#define rda_fhandle dir 86#define rdr_reply_u reply 87#define rdr_status status 88#define rdr_u readdirres_u 89#define rlr_data_u data 90#define rlr_status status 91#define rlr_u readlinkres_u 92#define rna_from from 93#define rna_to to 94#define rr_status status 95#define sag_fhandle file 96#define sfr_reply_u reply 97#define sfr_status status 98#define sfr_u statfsres_u 99#define sfrok_bavail bavail 100#define sfrok_bfree bfree 101#define sfrok_blocks blocks 102#define sfrok_bsize bsize 103#define sfrok_tsize tsize 104#define sla_from from 105#define wra_fhandle file 106 107 108/* 109 * TYPEDEFS: 110 */ 111typedef attrstat nfsattrstat; 112typedef createargs nfscreateargs; 113typedef dirlist nfsdirlist; 114typedef diropargs nfsdiropargs; 115typedef diropres nfsdiropres; 116typedef entry nfsentry; 117typedef fattr nfsfattr; 118typedef ftype nfsftype; 119typedef linkargs nfslinkargs; 120typedef readargs nfsreadargs; 121typedef readdirargs nfsreaddirargs; 122typedef readdirres nfsreaddirres; 123typedef readlinkres nfsreadlinkres; 124typedef readres nfsreadres; 125typedef renameargs nfsrenameargs; 126typedef sattrargs nfssattrargs; 127typedef statfsokres nfsstatfsokres; 128typedef statfsres nfsstatfsres; 129typedef symlinkargs nfssymlinkargs; 130typedef writeargs nfswriteargs; 131 132 133/* 134 * FreeBSD 2.2.x has NFS V3, but it does not define enough macros 135 * in the headers to automatically detect it. 136 * So fake it in the meant time. 137 */ 138#if 0 139#define MOUNT_NFS3 MOUNT_NFS 140#endif /* 0 */ 141 142 143#endif /* not _AMU_NFS_PROT_H */ 144