169800Stomsoft/* 269800Stomsoft * Copyright (c) 1997-2014 Erez Zadok 369800Stomsoft * Copyright (c) 1990 Jan-Simon Pendry 469800Stomsoft * Copyright (c) 1990 Imperial College of Science, Technology & Medicine 5114067Sschweikh * Copyright (c) 1990 The Regents of the University of California. 669800Stomsoft * All rights reserved. 769800Stomsoft * 8114067Sschweikh * This code is derived from software contributed to Berkeley by 969800Stomsoft * Jan-Simon Pendry at Imperial College, London. 1069800Stomsoft * 1169800Stomsoft * Redistribution and use in source and binary forms, with or without 1269800Stomsoft * modification, are permitted provided that the following conditions 1369800Stomsoft * are met: 1469800Stomsoft * 1. Redistributions of source code must retain the above copyright 1569800Stomsoft * notice, this list of conditions and the following disclaimer. 1669800Stomsoft * 2. Redistributions in binary form must reproduce the above copyright 1769800Stomsoft * notice, this list of conditions and the following disclaimer in the 1869800Stomsoft * documentation and/or other materials provided with the distribution. 1969800Stomsoft * 3. Neither the name of the University nor the names of its contributors 2069800Stomsoft * may be used to endorse or promote products derived from this software 2169800Stomsoft * without specific prior written permission. 2269800Stomsoft * 2369800Stomsoft * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2469800Stomsoft * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25114067Sschweikh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2669800Stomsoft * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2769800Stomsoft * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2869800Stomsoft * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2969800Stomsoft * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3069800Stomsoft * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3169800Stomsoft * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3269800Stomsoft * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3369800Stomsoft * SUCH DAMAGE. 3469800Stomsoft * 3569800Stomsoft * 3669800Stomsoft * File: am-utils/conf/nfs_prot/nfs_prot_netbsd1_4.h 3769800Stomsoft * 3869926Stomsoft */ 3969800Stomsoft 4069800Stomsoft#ifndef _AMU_NFS_PROT_H 4169800Stomsoft#define _AMU_NFS_PROT_H 4269800Stomsoft 4369800Stomsoft#ifdef HAVE_RPCSVC_NFS_PROT_H 4469800Stomsoft# include <rpcsvc/nfs_prot.h> 4569800Stomsoft#endif /* HAVE_RPCSVC_NFS_PROT_H */ 4669800Stomsoft#ifdef HAVE_NFS_RPCV2_H 4769800Stomsoft# include <nfs/rpcv2.h> 4869800Stomsoft#endif /* HAVE_NFS_RPCV2_H */ 49140351Scharnier#ifndef NFS_NPROCS 50140351Scharnier# define NFS_NPROCS 26 5169800Stomsoft#endif /* not NFS_NPROCS */ 5269800Stomsoft#ifdef HAVE_NFS_NFS_H 5369800Stomsoft# include <nfs/nfs.h> 5469800Stomsoft#endif /* HAVE_NFS_NFS_H */ 5569800Stomsoft#ifdef HAVE_NFS_NFSMOUNT_H 5669800Stomsoft# include <nfs/nfsmount.h> 57114936Sgrog#endif /* HAVE_NFS_NFSMOUNT_H */ 5869800Stomsoft 5969800Stomsoft#ifdef HAVE_UFS_UFS_UFSMOUNT_H 6069800Stomsoft/* netbsd-1.4 does't protect <ufs/ufs/ufsmount.h> */ 6169800Stomsoft# ifndef _UFS_UFS_UFSMOUNT_H 6269800Stomsoft# include <ufs/ufs/ufsmount.h> 6369800Stomsoft# define _UFS_UFS_UFSMOUNT_H 64103949Smike# endif /* not _UFS_UFS_UFSMOUNT_H */ 6569800Stomsoft#endif /* HAVE_UFS_UFS_UFSMOUNT_H */ 66127798Sle 6769800Stomsoft/* NON-NFS STUFF (doesn't really belong here) */ 68127821Sbde#ifndef DEFINED_YPALL_CALLBACK_FXN_T 6969800Stomsoft# define DEFINED_YPALL_CALLBACK_FXN_T 7069800Stomsoft#if 0 7169800Stomsoft/* this is RIGHT for 1.2G and 1.2.1 */ 7269800Stomsofttypedef int (*ypall_callback_fxn_t)(u_long, char *, int, char *, int, void *); 7369800Stomsoft#endif /* 0 */ 7469800Stomsoft/* this is right for 1.3beta and newer */ 7569800Stomsofttypedef int (*ypall_callback_fxn_t)(int, char *, int, char *, int, char *); 7669800Stomsoft#endif /* DEFINED_YPALL_CALLBACK_FXN_T */ 7769800Stomsoft 7869800Stomsoft#ifdef HAVE_STATVFS 7969800Stomsoft# define statfs statvfs 8069800Stomsoft#endif /* HAVE_STATVFS */ 8169800Stomsoft 8298542Smckusick/* 8369800Stomsoft * MACROS: 8469800Stomsoft */ 8569800Stomsoft#define dr_drok_u diropres 8669800Stomsoft#define ca_where where 8798542Smckusick#define da_fhandle dir 8898542Smckusick#define da_name name 8998542Smckusick#define dl_entries entries 9098542Smckusick#define dl_eof eof 9198542Smckusick#define dr_status status 9298542Smckusick#define dr_u diropres_u 9369800Stomsoft#define drok_attributes attributes 9469800Stomsoft#define drok_fhandle file 9569800Stomsoft#define fh_data data 9669800Stomsoft#define la_fhandle from 9769800Stomsoft#define la_to to 9869800Stomsoft#define na_atime atime 9969800Stomsoft#define na_ctime ctime 10098542Smckusick#define na_fileid fileid 10169800Stomsoft#define na_fsid fsid 10298542Smckusick#define na_gid gid 10369800Stomsoft#define na_mode mode 10498542Smckusick#define na_mtime mtime 10598542Smckusick#define na_nlink nlink 10698542Smckusick#define na_rdev rdev 10769800Stomsoft#define na_size size 10898542Smckusick#define na_uid uid 10998542Smckusick#define na_type type 110127798Sle#define ne_cookie cookie 111132832Sle#define ne_fileid fileid 112132832Sle#define ne_name name 113132832Sle#define ne_nextentry nextentry 114132832Sle#define ns_attr_u attributes 115132832Sle#define ns_status status 116132832Sle#define ns_u attrstat_u 11798542Smckusick#define nt_seconds seconds 11898542Smckusick#define nt_useconds useconds 119127798Sle#define rda_cookie cookie 120114936Sgrog#define rda_count count 12169800Stomsoft#define rda_fhandle dir 12269800Stomsoft#define rdr_reply_u reply 123114067Sschweikh#define rdr_status status 12469800Stomsoft#define rdr_u readdirres_u 12569800Stomsoft#define rlr_data_u data 12669800Stomsoft#define rlr_status status 12769800Stomsoft#define rlr_u readlinkres_u 12898542Smckusick#define rna_from from 12998542Smckusick#define rna_to to 13069800Stomsoft#define rr_status status 13169800Stomsoft#define sag_fhandle file 13277885Stomsoft#define sfr_reply_u reply 13369800Stomsoft#define sfr_status status 13469800Stomsoft#define sfr_u statfsres_u 13569800Stomsoft#define sfrok_bavail bavail 13669800Stomsoft#define sfrok_bfree bfree 13777885Stomsoft#define sfrok_blocks blocks 13898542Smckusick#define sfrok_bsize bsize 13998542Smckusick#define sfrok_tsize tsize 14098542Smckusick#define sla_from from 14169800Stomsoft#define wra_fhandle file 14269926Stomsoft 14369800Stomsoft 14469800Stomsoft/* 14569800Stomsoft * TYPEDEFS: 14677885Stomsoft */ 14777885Stomsofttypedef attrstat nfsattrstat; 14877885Stomsofttypedef createargs nfscreateargs; 14969800Stomsofttypedef dirlist nfsdirlist; 15077885Stomsofttypedef diropargs nfsdiropargs; 15198542Smckusicktypedef diropres nfsdiropres; 15298542Smckusicktypedef entry nfsentry; 15398542Smckusicktypedef fattr nfsfattr; 15498542Smckusicktypedef ftype nfsftype; 15569800Stomsofttypedef linkargs nfslinkargs; 15677885Stomsofttypedef readargs nfsreadargs; 15798542Smckusicktypedef readdirargs nfsreaddirargs; 15898542Smckusicktypedef readdirres nfsreaddirres; 159114936Sgrogtypedef readlinkres nfsreadlinkres; 16069800Stomsofttypedef readres nfsreadres; 16169800Stomsofttypedef renameargs nfsrenameargs; 16269800Stomsofttypedef sattrargs nfssattrargs; 163114067Sschweikhtypedef statfsokres nfsstatfsokres; 164114067Sschweikhtypedef statfsres nfsstatfsres; 165114067Sschweikhtypedef symlinkargs nfssymlinkargs; 16669800Stomsofttypedef writeargs nfswriteargs; 167114067Sschweikh 168114067Sschweikh/* 169114067Sschweikh * 17069800Stomsoft * NetBSD 1.2 has NFS V3, but it is undefined in the header files. 17169800Stomsoft * so I define everything that's needed for NFS V3 here. 17269800Stomsoft */ 17369800Stomsoft#ifdef NFSMNT_NFSV3 17477885Stomsoft 17569800Stomsoft# define MOUNT_NFS3 MOUNT_NFS 17669800Stomsoft# define MNTOPT_NFS3 "nfs" 17769800Stomsoft 178203770Smckusick#endif /* NFSMNT_NFSV3 */ 179203770Smckusick 18069800Stomsoft#endif /* not _AMU_NFS_PROT_H */ 18169800Stomsoft