X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=blobdiff_plain;f=nfs%2Flibnfs-raw-nfs.h;h=4b4c87406f4b6b4cb4cb31bc68b833b9eeacc10f;hp=8eb3b2e21fea18701caace016262e6758fcf3867;hb=f1f22dbf6222c4899b45d9c83ccf1b6314464869;hpb=ee872606f1e484f684276ec595f1e39d1f95b9a9 diff --git a/nfs/libnfs-raw-nfs.h b/nfs/libnfs-raw-nfs.h index 8eb3b2e..4b4c874 100644 --- a/nfs/libnfs-raw-nfs.h +++ b/nfs/libnfs-raw-nfs.h @@ -1,3 +1,32 @@ +/* +Copyright (c) 2014, Ronnie Sahlberg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those +of the authors and should not be interpreted as representing official policies, +either expressed or implied, of the FreeBSD Project. +*/ + /* * Please do not edit this file. * It was generated using rpcgen. @@ -30,9 +59,7 @@ typedef long long unsigned u_quad_t; typedef char cookieverf3[NFS3_COOKIEVERFSIZE]; -typedef u_quad_t uint64; - -typedef uint64 cookie3; +typedef u_quad_t cookie3; struct nfs_fh3 { struct { @@ -67,9 +94,9 @@ typedef u_int uid3; typedef u_int gid3; -typedef uint64 size3; +typedef u_quad_t size3; -typedef uint64 fileid3; +typedef u_quad_t fileid3; struct specdata3 { u_int specdata1; @@ -92,7 +119,7 @@ struct fattr3 { size3 size; size3 used; specdata3 rdev; - uint64 fsid; + u_quad_t fsid; fileid3 fileid; nfstime3 atime; nfstime3 mtime; @@ -148,7 +175,7 @@ enum stable_how { }; typedef enum stable_how stable_how; -typedef uint64 offset3; +typedef u_quad_t offset3; typedef u_int count3; @@ -1611,7 +1638,6 @@ extern int nfsacl_program_3_freeresult (); #if defined(__STDC__) || defined(__cplusplus) extern bool_t zdr_cookieverf3 (ZDR *, cookieverf3); -extern bool_t zdr_uint64 (ZDR *, uint64*); extern bool_t zdr_cookie3 (ZDR *, cookie3*); extern bool_t zdr_nfs_fh3 (ZDR *, nfs_fh3*); extern bool_t zdr_filename3 (ZDR *, filename3*); @@ -1799,7 +1825,6 @@ extern bool_t zdr_SETACL3res (ZDR *, SETACL3res*); #else /* K&R C */ extern bool_t zdr_cookieverf3 (); -extern bool_t zdr_uint64 (); extern bool_t zdr_cookie3 (); extern bool_t zdr_nfs_fh3 (); extern bool_t zdr_filename3 ();