types: remove the [u_]quad type and replace with [u]int64
[deb_libnfs.git] / nlm / libnfs-raw-nlm.c
index 08417d4c813f7c292b80fe618891de8e3f736787..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.
 #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;
+       buf = NULL;
 
         if (!zdr_bytes (zdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_oh (ZDR *zdrs, nlm4_oh *objp)
 {
        register int32_t *buf;
+       buf = NULL;
 
         if (!zdr_string (zdrs, objp, ~0))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm_cookie (ZDR *zdrs, nlm_cookie *objp)
 {
        register int32_t *buf;
+       buf = NULL;
 
         if (!zdr_bytes (zdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlmstat4 (ZDR *zdrs, nlmstat4 *objp)
 {
        register int32_t *buf;
+       buf = NULL;
 
         if (!zdr_enum (zdrs, (enum_t *) objp))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
 {
        register int32_t *buf;
+       buf = NULL;
 
         if (!zdr_bool (zdrs, &objp->exclusive))
                 return FALSE;
@@ -57,17 +91,18 @@ 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;
+       buf = NULL;
 
         if (!zdr_string (zdrs, &objp->caller_name, NLM_MAXNAME))
                 return FALSE;
@@ -77,17 +112,18 @@ 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;
+       buf = NULL;
 
         if (!zdr_string (zdrs, &objp->caller_name, NLM_MAXNAME))
                 return FALSE;
@@ -102,20 +138,22 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm4_holder (zdrs, &objp->holder))
                 return FALSE;
        return TRUE;
 }
 
-bool_t
+uint32_t
 zdr_nlm4_testreply (ZDR *zdrs, nlm4_testreply *objp)
 {
        register int32_t *buf;
+       buf = NULL;
 
         if (!zdr_nlmstat4 (zdrs, &objp->status))
                 return FALSE;
@@ -130,10 +168,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -142,10 +181,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -156,10 +196,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -168,10 +209,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -184,10 +226,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -196,10 +239,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -208,10 +252,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -220,10 +265,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -240,10 +286,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;
@@ -254,10 +301,11 @@ 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;
+       buf = NULL;
 
         if (!zdr_nlm_cookie (zdrs, &objp->cookie))
                 return FALSE;