X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=nsm%2Flibnfs-raw-nsm.c;h=cfd98e8367a461ed21a581ecffff04724c7f4464;hb=c76fd7199ffdf118c43357af72a29f56f245db04;hp=cee4d8910ee41ed702b4ce683e3d267fb8a0a679;hpb=ee872606f1e484f684276ec595f1e39d1f95b9a9;p=deb_libnfs.git diff --git a/nsm/libnfs-raw-nsm.c b/nsm/libnfs-raw-nsm.c index cee4d89..cfd98e8 100644 --- a/nsm/libnfs-raw-nsm.c +++ b/nsm/libnfs-raw-nsm.c @@ -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. @@ -6,7 +35,7 @@ #include "libnfs-zdr.h" #include "libnfs-raw-nsm.h" -bool_t +uint32_t zdr_nsmstat1 (ZDR *zdrs, nsmstat1 *objp) { register int32_t *buf; @@ -17,7 +46,7 @@ zdr_nsmstat1 (ZDR *zdrs, nsmstat1 *objp) return TRUE; } -bool_t +uint32_t zdr_nsm_my_id (ZDR *zdrs, nsm_my_id *objp) { register int32_t *buf; @@ -34,7 +63,7 @@ zdr_nsm_my_id (ZDR *zdrs, nsm_my_id *objp) return TRUE; } -bool_t +uint32_t zdr_nsm_mon_id (ZDR *zdrs, nsm_mon_id *objp) { register int32_t *buf; @@ -47,7 +76,7 @@ zdr_nsm_mon_id (ZDR *zdrs, nsm_mon_id *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_STATres (ZDR *zdrs, NSM1_STATres *objp) { register int32_t *buf; @@ -60,7 +89,7 @@ zdr_NSM1_STATres (ZDR *zdrs, NSM1_STATres *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_STATargs (ZDR *zdrs, NSM1_STATargs *objp) { register int32_t *buf; @@ -71,7 +100,7 @@ zdr_NSM1_STATargs (ZDR *zdrs, NSM1_STATargs *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_MONres (ZDR *zdrs, NSM1_MONres *objp) { register int32_t *buf; @@ -84,12 +113,13 @@ zdr_NSM1_MONres (ZDR *zdrs, NSM1_MONres *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_MONargs (ZDR *zdrs, NSM1_MONargs *objp) { register int32_t *buf; buf = NULL; + int i; if (!zdr_nsm_mon_id (zdrs, &objp->mon_id)) return FALSE; if (!zdr_opaque (zdrs, objp->priv, 16)) @@ -97,7 +127,7 @@ zdr_NSM1_MONargs (ZDR *zdrs, NSM1_MONargs *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_UNMONres (ZDR *zdrs, NSM1_UNMONres *objp) { register int32_t *buf; @@ -108,7 +138,7 @@ zdr_NSM1_UNMONres (ZDR *zdrs, NSM1_UNMONres *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_UNMONargs (ZDR *zdrs, NSM1_UNMONargs *objp) { register int32_t *buf; @@ -119,7 +149,7 @@ zdr_NSM1_UNMONargs (ZDR *zdrs, NSM1_UNMONargs *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_UNMONALLres (ZDR *zdrs, NSM1_UNMONALLres *objp) { register int32_t *buf; @@ -130,7 +160,7 @@ zdr_NSM1_UNMONALLres (ZDR *zdrs, NSM1_UNMONALLres *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_UNMONALLargs (ZDR *zdrs, NSM1_UNMONALLargs *objp) { register int32_t *buf; @@ -141,7 +171,7 @@ zdr_NSM1_UNMONALLargs (ZDR *zdrs, NSM1_UNMONALLargs *objp) return TRUE; } -bool_t +uint32_t zdr_NSM1_NOTIFYargs (ZDR *zdrs, NSM1_NOTIFYargs *objp) { register int32_t *buf;