nfs-stamp : nfs.x
rm -f $(nfs_GENERATED)
rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-nfs.h
- rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-raw-nfs.h\"/" > libnfs-raw-nfs.c
+ rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-raw-nfs.h\"/" -e "s/^xdr_uint64/static xdr_uint64_broken/" > libnfs-raw-nfs.c
+ echo "" >> libnfs-raw-nfs.c
+ echo "xdr_uint64 (XDR *xdrs, uint64 *objp)" >> libnfs-raw-nfs.c
+ echo "{" >> libnfs-raw-nfs.c
+ echo " uint32_t i;" >> libnfs-raw-nfs.c
+ echo "" >> libnfs-raw-nfs.c
+ echo " switch (xdrs->x_op) {" >> libnfs-raw-nfs.c
+ echo " case XDR_DECODE:" >> libnfs-raw-nfs.c
+ echo " if (!xdr_u_int (xdrs, &i))" >> libnfs-raw-nfs.c
+ echo " return FALSE;" >> libnfs-raw-nfs.c
+ echo " *objp = i;" >> libnfs-raw-nfs.c
+ echo " *objp <<= 32;" >> libnfs-raw-nfs.c
+ echo "" >> libnfs-raw-nfs.c
+ echo " if (!xdr_u_int (xdrs, &i))" >> libnfs-raw-nfs.c
+ echo " return FALSE;" >> libnfs-raw-nfs.c
+ echo " *objp |= i;" >> libnfs-raw-nfs.c
+ echo "" >> libnfs-raw-nfs.c
+ echo " return TRUE;" >> libnfs-raw-nfs.c
+ echo " case XDR_ENCODE:" >> libnfs-raw-nfs.c
+ echo " i = ((*objp) >> 32) & 0xffffffff;" >> libnfs-raw-nfs.c
+ echo " if (!xdr_u_int (xdrs, &i))" >> libnfs-raw-nfs.c
+ echo " return FALSE;" >> libnfs-raw-nfs.c
+ echo "" >> libnfs-raw-nfs.c
+ echo " i = ((*objp) ) & 0xffffffff;" >> libnfs-raw-nfs.c
+ echo " if (!xdr_u_int (xdrs, &i))" >> libnfs-raw-nfs.c
+ echo " return FALSE;" >> libnfs-raw-nfs.c
+ echo " return TRUE;" >> libnfs-raw-nfs.c
+ echo " }" >> libnfs-raw-nfs.c
+ echo "}" >> libnfs-raw-nfs.c
touch nfs-stamp
typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE];
-
-/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="foo" - for plattforms
+/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="
where rpcgen doesn't know anything about hyper
default to unsigned hyper as of rfc 1813 */
#ifndef U_INT64_PLATTFORM_TYPE
#endif/*U_INT64_PLATTFORM_TYPE*/
typedef U_INT64_PLATTFORM_TYPE uint64;
+
typedef uint64 cookie3;
struct nfs_fh3 {