compile_rpc:
cat mount.x | head -29 >libnfs-raw-mount.h
- rpcgen -h mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-mount.h
+ rpcgen -h mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-mount.h
cat mount.x | head -29 >libnfs-raw-mount.c
rpcgen -c mount.x | sed -e "s/#include \".*mount.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-mount.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-mount.c
#define MOUNT1_EXPORT 5
extern exports * mount1_export_1(void *, void *);
extern exports * mount1_export_1_svc(void *, struct svc_req *);
-extern int mount_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int mount_program_1_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define MOUNT1_NULL 0
#define MOUNT3_EXPORT 5
extern exports * mount3_export_3(void *, void *);
extern exports * mount3_export_3_svc(void *, struct svc_req *);
-extern int mount_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int mount_program_3_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define MOUNT3_NULL 0
compile_rpc:
cat nfs.x | head -29 >libnfs-raw-nfs.h
- rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>//" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include <nfsc\/libnfs-zdr.h>/g" -e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n#if defined(ANDROID)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif\n#if defined(WIN32)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif/g" -e "s/ CLIENT / void /g" >> libnfs-raw-nfs.h
+ rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>//" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include <nfsc\/libnfs-zdr.h>/g" -e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n#if defined(ANDROID)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif\n#if defined(WIN32)\ntypedef long long int quad_t;\ntypedef long long unsigned u_quad_t;\n#endif/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-nfs.h
cat nfs.x | head -29 >libnfs-raw-nfs.c
rpcgen -c nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nfs.c
#define NFS2_STATFS 17
extern STATFS2res * nfs2_statfs_2(STATFS2args *, void *);
extern STATFS2res * nfs2_statfs_2_svc(STATFS2args *, struct svc_req *);
-extern int nfs_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nfs_program_2_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define NFS2_NULL 0
#define NFS3_COMMIT 21
extern COMMIT3res * nfs3_commit_3(COMMIT3args *, void *);
extern COMMIT3res * nfs3_commit_3_svc(COMMIT3args *, struct svc_req *);
-extern int nfs_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nfs_program_3_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define NFS3_NULL 0
#define NFSACL3_SETACL 2
extern SETACL3res * nfsacl3_setacl_3(SETACL3args *, void *);
extern SETACL3res * nfsacl3_setacl_3_svc(SETACL3args *, struct svc_req *);
-extern int nfsacl_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nfsacl_program_3_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define NFSACL3_NULL 0
compile_rpc:
cat nlm.x | head -29 >libnfs-raw-nlm.h
- rpcgen -h nlm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-nlm.h
+ rpcgen -h nlm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-nlm.h
cat nlm.x | head -29 >libnfs-raw-nlm.c
rpcgen -c nlm.x | sed -e "s/#include \".*nlm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nlm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nlm.c
#define NLM4_GRANT_RES 15
extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, void *);
extern void * nlm4_grant_res_4_svc(NLM4_GRANTEDres *, struct svc_req *);
-extern int nlm_program_4_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nlm_program_4_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define NLM4_NULL 0
compile_rpc:
cat nsm.x | head -29 >libnfs-raw-nsm.h
- rpcgen -h nsm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-nsm.h
+ rpcgen -h nsm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-nsm.h
cat nsm.x | head -29 >libnfs-raw-nsm.c
rpcgen -c nsm.x | sed -e "s/#include \".*nsm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nsm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nsm.c
#define NSM1_NOTIFY 6
extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, void *);
extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *);
-extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int nsm_program_1_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define NSM1_NULL 0
compile_rpc:
cat portmap.x | head -29 >libnfs-raw-portmap.h
- rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-portmap.h
+ rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-portmap.h
cat portmap.x | head -29 >libnfs-raw-portmap.c
rpcgen -c portmap.x | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-zdr.h\"\n#include \"libnfs-raw-portmap.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-portmap.c
#define PMAP2_CALLIT 5
extern pmap2_call_result * pmap2_callit_2(pmap2_call_args *, void *);
extern pmap2_call_result * pmap2_callit_2_svc(pmap2_call_args *, struct svc_req *);
-extern int pmap_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int pmap_program_2_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define PMAP2_NULL 0
#define PMAP3_TADDR2UADDR 8
extern struct pmap3_string_result * pmap3_taddr2uaddr_3(pmap3_netbuf *, void *);
extern struct pmap3_string_result * pmap3_taddr2uaddr_3_svc(pmap3_netbuf *, struct svc_req *);
-extern int pmap_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int pmap_program_3_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define PMAP3_NULL 0
compile_rpc:
cat rquota.x | head -29 >libnfs-raw-rquota.h
- rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" >> libnfs-raw-rquota.h
+ rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-rquota.h
cat rquota.x | head -29 >libnfs-raw-rquota.c
rpcgen -c rquota.x | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-rquota.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-rquota.c
#define RQUOTA1_GETACTIVEQUOTA 2
extern GETQUOTA1res * rquota1_getactivequota_1(GETQUOTA1args *, void *);
extern GETQUOTA1res * rquota1_getactivequota_1_svc(GETQUOTA1args *, struct svc_req *);
-extern int rquota_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int rquota_program_1_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define RQUOTA1_NULL 0
#define RQUOTA2_GETACTIVEQUOTA 2
extern GETQUOTA1res * rquota2_getactivequota_2(GETQUOTA2args *, void *);
extern GETQUOTA1res * rquota2_getactivequota_2_svc(GETQUOTA2args *, struct svc_req *);
-extern int rquota_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
+extern int rquota_program_2_freeresult (void *, zdrproc_t, caddr_t);
#else /* K&R C */
#define RQUOTA2_NULL 0