1/* $NetBSD$ */ 2 3/* 4 * Copyright (c) 1997-2009 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. All advertising materials mentioning features or use of this software 22 * must display the following acknowledgment: 23 * This product includes software developed by the University of 24 * California, Berkeley and its contributors. 25 * 4. Neither the name of the University nor the names of its contributors 26 * may be used to endorse or promote products derived from this software 27 * without specific prior written permission. 28 * 29 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 32 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * 42 * File: am-utils/conf/nfs_prot/nfs_prot_aix4.h 43 * 44 */ 45 46#ifndef _AMU_NFS_PROT_H 47#define _AMU_NFS_PROT_H 48 49#ifdef HAVE_RPCSVC_NFS_PROT_H 50# include <rpcsvc/nfs_prot.h> 51#endif /* HAVE_RPCSVC_NFS_PROT_H */ 52#ifdef HAVE_NFS_NFSV2_H 53# include <nfs/nfsv2.h> 54#endif /* HAVE_NFS_NFSV2_H */ 55#ifdef HAVE_NFS_RPCV2_H 56# include <nfs/rpcv2.h> 57#endif /* HAVE_NFS_RPCV2_H */ 58#ifdef HAVE_SYS_FS_NFS_H 59# include <sys/fs/nfs.h> 60#endif /* HAVE_SYS_FS_NFS_H */ 61#ifdef HAVE_RPCSVC_MOUNT_H 62# include <rpcsvc/mount.h> 63#endif /* HAVE_RPCSVC_MOUNT_H */ 64 65 66/* 67 * MACROS 68 */ 69 70#ifndef MNTPATHLEN 71# define MNTPATHLEN 1024 72#endif /* not MNTPATHLEN */ 73#ifndef MNTNAMLEN 74# define MNTNAMLEN 255 75#endif /* not MNTNAMLEN */ 76 77/* map field names */ 78#define ex_dir ex_name 79#define gr_name g_name 80#define gr_next g_next 81#define ml_directory ml_path 82#define ml_hostname ml_name 83#define ml_next ml_nxt 84 85#define dr_drok_u diropres 86#define ca_attributes attributes 87#define ca_where where 88#define da_fhandle dir 89#define da_name name 90#define dl_entries entries 91#define dl_eof eof 92#define dr_status status 93#define dr_u diropres_u 94#define drok_attributes attributes 95#define drok_fhandle file 96#define fh_data data 97#define la_fhandle from 98#define la_to to 99#define na_atime atime 100#define na_blocks blocks 101#define na_blocksize blocksize 102#define na_ctime ctime 103#define na_fileid fileid 104#define na_fsid fsid 105#define na_gid gid 106#define na_mode mode 107#define na_mtime mtime 108#define na_nlink nlink 109#define na_rdev rdev 110#define na_size size 111#define na_type type 112#define na_uid uid 113#define ne_cookie cookie 114#define ne_fileid fileid 115#define ne_name name 116#define ne_nextentry nextentry 117#define ns_attr_u attributes 118#define ns_status status 119#define ns_u attrstat_u 120#define nt_seconds seconds 121#define nt_useconds useconds 122#define ra_count count 123#define ra_fhandle file 124#define ra_offset offset 125#define ra_totalcount totalcount 126#define raok_attributes attributes 127#define raok_len_u data_len 128#define raok_u data 129#define raok_val_u data_val 130#define rda_cookie cookie 131#define rda_count count 132#define rda_fhandle dir 133#define rdr_reply_u reply 134#define rdr_status status 135#define rdr_u readdirres_u 136#define rlr_data_u data 137#define rlr_status status 138#define rlr_u readlinkres_u 139#define rna_from from 140#define rna_to to 141#define rr_reply_u reply 142#define rr_status status 143#define rr_u readres_u 144#define sa_atime atime 145#define sa_gid gid 146#define sa_mode mode 147#define sa_mtime mtime 148#define sa_size size 149#define sa_uid uid 150#define sag_attributes attributes 151#define sag_fhandle file 152#define sfr_reply_u reply 153#define sfr_status status 154#define sfr_u statfsres_u 155#define sfrok_bavail bavail 156#define sfrok_bfree bfree 157#define sfrok_blocks blocks 158#define sfrok_bsize bsize 159#define sfrok_tsize tsize 160#define sla_attributes attributes 161#define sla_from from 162#define sla_to to 163#define wra_beginoffset beginoffset 164#define wra_fhandle file 165#define wra_len_u data_len 166#define wra_offset offset 167#define wra_totalcount totalcount 168#define wra_u data 169#define wra_val_u data_val 170 171 172/* 173 * TYPEDEFS: 174 */ 175typedef char *dirpath; 176typedef char *name; 177typedef struct exports *exports; 178typedef struct exports exportnode; 179typedef struct groups *groups; 180typedef struct groups groupnode; 181typedef struct mountlist *mountlist; 182 183typedef attrstat nfsattrstat; 184typedef createargs nfscreateargs; 185typedef dirlist nfsdirlist; 186typedef diropargs nfsdiropargs; 187typedef diropokres nfsdiropokres; 188typedef diropres nfsdiropres; 189typedef entry nfsentry; 190typedef fattr nfsfattr; 191typedef ftype nfsftype; 192typedef linkargs nfslinkargs; 193typedef readargs nfsreadargs; 194typedef readdirargs nfsreaddirargs; 195typedef readdirres nfsreaddirres; 196typedef readlinkres nfsreadlinkres; 197typedef readokres nfsreadokres; 198typedef readres nfsreadres; 199typedef renameargs nfsrenameargs; 200typedef sattr nfssattr; 201typedef sattrargs nfssattrargs; 202typedef statfsokres nfsstatfsokres; 203typedef statfsres nfsstatfsres; 204typedef symlinkargs nfssymlinkargs; 205typedef writeargs nfswriteargs; 206 207/* 208 * EXTERNALS: 209 */ 210extern bool_t xdr_groups(XDR *xdrs, groups *objp); 211 212/* 213 * STRUCTURES: 214 */ 215 216#endif /* not _AMU_NFS_PROT_H */ 217