1 /* $NetBSD: nfs_prot_default.h,v 1.1.1.3 2015/01/17 16:34:16 christos Exp $ */ 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_default.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 /* 51 * MACROS: 52 */ 53 #define dr_drok_u diropres 54 #define ca_attributes attributes 55 #define ca_where where 56 #define da_fhandle dir 57 #define da_name name 58 #define dl_entries entries 59 #define dl_eof eof 60 #define dr_status status 61 #define dr_u diropres_u 62 #define drok_attributes attributes 63 #define drok_fhandle file 64 #define fh_data data 65 #define la_fhandle from 66 #define la_to to 67 #define na_atime atime 68 #define na_blocks blocks 69 #define na_blocksize blocksize 70 #define na_ctime ctime 71 #define na_fileid fileid 72 #define na_fsid fsid 73 #define na_gid gid 74 #define na_mode mode 75 #define na_mtime mtime 76 #define na_nlink nlink 77 #define na_rdev rdev 78 #define na_size size 79 #define na_type type 80 #define na_uid uid 81 #define ne_cookie cookie 82 #define ne_fileid fileid 83 #define ne_name name 84 #define ne_nextentry nextentry 85 #define ns_attr_u attributes 86 #define ns_status status 87 #define ns_u attrstat_u 88 #define nt_seconds seconds 89 #define nt_useconds useconds 90 #define ra_count count 91 #define ra_fhandle file 92 #define ra_offset offset 93 #define ra_totalcount totalcount 94 #define raok_attributes attributes 95 #define raok_len_u data_len 96 #define raok_u data 97 #define raok_val_u data_val 98 #define rda_cookie cookie 99 #define rda_count count 100 #define rda_fhandle dir 101 #define rdr_reply_u reply 102 #define rdr_status status 103 #define rdr_u readdirres_u 104 #define rlr_data_u data 105 #define rlr_status status 106 #define rlr_u readlinkres_u 107 #define rna_from from 108 #define rna_to to 109 #define rr_reply_u reply 110 #define rr_status status 111 #define rr_u readres_u 112 #define sa_atime atime 113 #define sa_gid gid 114 #define sa_mode mode 115 #define sa_mtime mtime 116 #define sa_size size 117 #define sa_uid uid 118 #define sag_attributes attributes 119 #define sag_fhandle file 120 #define sfr_reply_u reply 121 #define sfr_status status 122 #define sfr_u statfsres_u 123 #define sfrok_bavail bavail 124 #define sfrok_bfree bfree 125 #define sfrok_blocks blocks 126 #define sfrok_bsize bsize 127 #define sfrok_tsize tsize 128 #define sla_attributes attributes 129 #define sla_from from 130 #define sla_to to 131 #define wra_beginoffset beginoffset 132 #define wra_fhandle file 133 #define wra_len_u data_len 134 #define wra_offset offset 135 #define wra_totalcount totalcount 136 #define wra_u data 137 #define wra_val_u data_val 138 139 140 /* 141 * TYPEDEFS: 142 */ 143 typedef attrstat nfsattrstat; 144 typedef createargs nfscreateargs; 145 typedef dirlist nfsdirlist; 146 typedef diropargs nfsdiropargs; 147 typedef diropokres nfsdiropokres; 148 typedef diropres nfsdiropres; 149 typedef entry nfsentry; 150 typedef fattr nfsfattr; 151 typedef ftype nfsftype; 152 typedef linkargs nfslinkargs; 153 typedef readargs nfsreadargs; 154 typedef readdirargs nfsreaddirargs; 155 typedef readdirres nfsreaddirres; 156 typedef readlinkres nfsreadlinkres; 157 typedef readokres nfsreadokres; 158 typedef readres nfsreadres; 159 typedef renameargs nfsrenameargs; 160 typedef sattr nfssattr; 161 typedef sattrargs nfssattrargs; 162 typedef statfsokres nfsstatfsokres; 163 typedef statfsres nfsstatfsres; 164 typedef symlinkargs nfssymlinkargs; 165 typedef writeargs nfswriteargs; 166 167 168 #endif /* not _AMU_NFS_PROT_H */ 169