types: remove the [u_]quad type and replace with [u]int64
[deb_libnfs.git] / nlm / libnfs-raw-nlm.c
index 808924af6063c9806b9c9eb15cae610f51b97cd3..40d70f612cbb33f9828eb706ccd9c6d1267339e7 100644 (file)
@@ -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-nlm.h"
 
-bool_t
+uint32_t
 zdr_nlm_fh4 (ZDR *zdrs, nlm_fh4 *objp)
 {
        register int32_t *buf;
@@ -17,7 +46,7 @@ zdr_nlm_fh4 (ZDR *zdrs, nlm_fh4 *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_oh (ZDR *zdrs, nlm4_oh *objp)
 {
        register int32_t *buf;
@@ -28,7 +57,7 @@ zdr_nlm4_oh (ZDR *zdrs, nlm4_oh *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm_cookie (ZDR *zdrs, nlm_cookie *objp)
 {
        register int32_t *buf;
@@ -39,7 +68,7 @@ zdr_nlm_cookie (ZDR *zdrs, nlm_cookie *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlmstat4 (ZDR *zdrs, nlmstat4 *objp)
 {
        register int32_t *buf;
@@ -50,7 +79,7 @@ zdr_nlmstat4 (ZDR *zdrs, nlmstat4 *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
 {
        register int32_t *buf;
@@ -62,14 +91,14 @@ zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
                 return FALSE;
         if (!zdr_nlm4_oh (zdrs, &objp->oh))
                 return FALSE;
-        if (!zdr_u_quad_t (zdrs, &objp->l_offset))
+        if (!zdr_uint64_t (zdrs, &objp->l_offset))
                 return FALSE;
-        if (!zdr_u_quad_t (zdrs, &objp->l_len))
+        if (!zdr_uint64_t (zdrs, &objp->l_len))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
 {
        register int32_t *buf;
@@ -83,14 +112,14 @@ zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
                 return FALSE;
         if (!zdr_u_int (zdrs, &objp->svid))
                 return FALSE;
-        if (!zdr_u_quad_t (zdrs, &objp->l_offset))
+        if (!zdr_uint64_t (zdrs, &objp->l_offset))
                 return FALSE;
-        if (!zdr_u_quad_t (zdrs, &objp->l_len))
+        if (!zdr_uint64_t (zdrs, &objp->l_len))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_share (ZDR *zdrs, nlm4_share *objp)
 {
        register int32_t *buf;
@@ -109,7 +138,7 @@ zdr_nlm4_share (ZDR *zdrs, nlm4_share *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_testres_denied (ZDR *zdrs, nlm4_testres_denied *objp)
 {
        register int32_t *buf;
@@ -120,7 +149,7 @@ zdr_nlm4_testres_denied (ZDR *zdrs, nlm4_testres_denied *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_testreply (ZDR *zdrs, nlm4_testreply *objp)
 {
        register int32_t *buf;
@@ -139,7 +168,7 @@ zdr_nlm4_testreply (ZDR *zdrs, nlm4_testreply *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_TESTres (ZDR *zdrs, NLM4_TESTres *objp)
 {
        register int32_t *buf;
@@ -152,7 +181,7 @@ zdr_NLM4_TESTres (ZDR *zdrs, NLM4_TESTres *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_TESTargs (ZDR *zdrs, NLM4_TESTargs *objp)
 {
        register int32_t *buf;
@@ -167,7 +196,7 @@ zdr_NLM4_TESTargs (ZDR *zdrs, NLM4_TESTargs *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_CANCres (ZDR *zdrs, NLM4_CANCres *objp)
 {
        register int32_t *buf;
@@ -180,7 +209,7 @@ zdr_NLM4_CANCres (ZDR *zdrs, NLM4_CANCres *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_CANCargs (ZDR *zdrs, NLM4_CANCargs *objp)
 {
        register int32_t *buf;
@@ -197,7 +226,7 @@ zdr_NLM4_CANCargs (ZDR *zdrs, NLM4_CANCargs *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_UNLOCKres (ZDR *zdrs, NLM4_UNLOCKres *objp)
 {
        register int32_t *buf;
@@ -210,7 +239,7 @@ zdr_NLM4_UNLOCKres (ZDR *zdrs, NLM4_UNLOCKres *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_UNLOCKargs (ZDR *zdrs, NLM4_UNLOCKargs *objp)
 {
        register int32_t *buf;
@@ -223,7 +252,7 @@ zdr_NLM4_UNLOCKargs (ZDR *zdrs, NLM4_UNLOCKargs *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_LOCKres (ZDR *zdrs, NLM4_LOCKres *objp)
 {
        register int32_t *buf;
@@ -236,7 +265,7 @@ zdr_NLM4_LOCKres (ZDR *zdrs, NLM4_LOCKres *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_LOCKargs (ZDR *zdrs, NLM4_LOCKargs *objp)
 {
        register int32_t *buf;
@@ -257,7 +286,7 @@ zdr_NLM4_LOCKargs (ZDR *zdrs, NLM4_LOCKargs *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_GRANTEDargs (ZDR *zdrs, NLM4_GRANTEDargs *objp)
 {
        register int32_t *buf;
@@ -272,7 +301,7 @@ zdr_NLM4_GRANTEDargs (ZDR *zdrs, NLM4_GRANTEDargs *objp)
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_NLM4_GRANTEDres (ZDR *zdrs, NLM4_GRANTEDres *objp)
 {
        register int32_t *buf;