Merge pull request #85 from rsahlberg/remove-zhr.h-dependency

Remove zhr.h dependency
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2014-07-13 15:20:09 -07:00
commit 3429037ab7
27 changed files with 909 additions and 918 deletions

View File

@ -49,7 +49,6 @@ WSADATA wsaData;
#include <stdint.h>
#include <sys/types.h>
#include <fcntl.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -51,7 +51,6 @@ WSADATA wsaData;
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -45,7 +45,6 @@
#include <stdint.h>
#include <sys/types.h>
#include <fcntl.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -58,7 +58,6 @@
#include <sys/socket.h>
#endif
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-private.h"

View File

@ -27,7 +27,6 @@
#include <stdio.h>
#include <stdlib.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
int main(int argc _U_, char *argv[] _U_)

View File

@ -39,7 +39,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -52,7 +52,6 @@ WSADATA wsaData;
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -40,7 +40,6 @@
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"

View File

@ -19,6 +19,6 @@ mount-stamp : mount.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-mount.c

View File

@ -35,7 +35,7 @@ either expressed or implied, of the FreeBSD Project.
#include "libnfs-zdr.h"
#include "libnfs-raw-mount.h"
bool_t
uint32_t
zdr_fhandle3 (ZDR *zdrs, fhandle3 *objp)
{
register int32_t *buf;
@ -46,7 +46,7 @@ zdr_fhandle3 (ZDR *zdrs, fhandle3 *objp)
return TRUE;
}
bool_t
uint32_t
zdr_dirpath (ZDR *zdrs, dirpath *objp)
{
register int32_t *buf;
@ -57,7 +57,7 @@ zdr_dirpath (ZDR *zdrs, dirpath *objp)
return TRUE;
}
bool_t
uint32_t
zdr_name (ZDR *zdrs, name *objp)
{
register int32_t *buf;
@ -68,7 +68,7 @@ zdr_name (ZDR *zdrs, name *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountstat3 (ZDR *zdrs, mountstat3 *objp)
{
register int32_t *buf;
@ -79,7 +79,7 @@ zdr_mountstat3 (ZDR *zdrs, mountstat3 *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountlist (ZDR *zdrs, mountlist *objp)
{
register int32_t *buf;
@ -90,7 +90,7 @@ zdr_mountlist (ZDR *zdrs, mountlist *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountbody (ZDR *zdrs, mountbody *objp)
{
register int32_t *buf;
@ -105,7 +105,7 @@ zdr_mountbody (ZDR *zdrs, mountbody *objp)
return TRUE;
}
bool_t
uint32_t
zdr_groups (ZDR *zdrs, groups *objp)
{
register int32_t *buf;
@ -116,7 +116,7 @@ zdr_groups (ZDR *zdrs, groups *objp)
return TRUE;
}
bool_t
uint32_t
zdr_groupnode (ZDR *zdrs, groupnode *objp)
{
register int32_t *buf;
@ -129,7 +129,7 @@ zdr_groupnode (ZDR *zdrs, groupnode *objp)
return TRUE;
}
bool_t
uint32_t
zdr_exports (ZDR *zdrs, exports *objp)
{
register int32_t *buf;
@ -140,7 +140,7 @@ zdr_exports (ZDR *zdrs, exports *objp)
return TRUE;
}
bool_t
uint32_t
zdr_exportnode (ZDR *zdrs, exportnode *objp)
{
register int32_t *buf;
@ -155,7 +155,7 @@ zdr_exportnode (ZDR *zdrs, exportnode *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountres3_ok (ZDR *zdrs, mountres3_ok *objp)
{
register int32_t *buf;
@ -169,7 +169,7 @@ zdr_mountres3_ok (ZDR *zdrs, mountres3_ok *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountres3 (ZDR *zdrs, mountres3 *objp)
{
register int32_t *buf;
@ -188,7 +188,7 @@ zdr_mountres3 (ZDR *zdrs, mountres3 *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountstat1 (ZDR *zdrs, mountstat1 *objp)
{
register int32_t *buf;
@ -199,7 +199,7 @@ zdr_mountstat1 (ZDR *zdrs, mountstat1 *objp)
return TRUE;
}
bool_t
uint32_t
zdr_fhandle1 (ZDR *zdrs, fhandle1 objp)
{
register int32_t *buf;
@ -210,7 +210,7 @@ zdr_fhandle1 (ZDR *zdrs, fhandle1 objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountres1_ok (ZDR *zdrs, mountres1_ok *objp)
{
register int32_t *buf;
@ -221,7 +221,7 @@ zdr_mountres1_ok (ZDR *zdrs, mountres1_ok *objp)
return TRUE;
}
bool_t
uint32_t
zdr_mountres1 (ZDR *zdrs, mountres1 *objp)
{
register int32_t *buf;

View File

@ -147,24 +147,24 @@ typedef struct mountres1 mountres1;
#if defined(__STDC__) || defined(__cplusplus)
#define MOUNT1_NULL 0
extern void * mount1_null_1(void *, CLIENT *);
extern void * mount1_null_1(void *, void *);
extern void * mount1_null_1_svc(void *, struct svc_req *);
#define MOUNT1_MNT 1
extern mountres1 * mount1_mnt_1(dirpath *, CLIENT *);
extern mountres1 * mount1_mnt_1(dirpath *, void *);
extern mountres1 * mount1_mnt_1_svc(dirpath *, struct svc_req *);
#define MOUNT1_DUMP 2
extern mountlist * mount1_dump_1(void *, CLIENT *);
extern mountlist * mount1_dump_1(void *, void *);
extern mountlist * mount1_dump_1_svc(void *, struct svc_req *);
#define MOUNT1_UMNT 3
extern void * mount1_umnt_1(dirpath *, CLIENT *);
extern void * mount1_umnt_1(dirpath *, void *);
extern void * mount1_umnt_1_svc(dirpath *, struct svc_req *);
#define MOUNT1_UMNTALL 4
extern void * mount1_umntall_1(void *, CLIENT *);
extern void * mount1_umntall_1(void *, void *);
extern void * mount1_umntall_1_svc(void *, struct svc_req *);
#define MOUNT1_EXPORT 5
extern exports * mount1_export_1(void *, CLIENT *);
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
@ -191,24 +191,24 @@ extern int mount_program_1_freeresult ();
#if defined(__STDC__) || defined(__cplusplus)
#define MOUNT3_NULL 0
extern void * mount3_null_3(void *, CLIENT *);
extern void * mount3_null_3(void *, void *);
extern void * mount3_null_3_svc(void *, struct svc_req *);
#define MOUNT3_MNT 1
extern mountres3 * mount3_mnt_3(dirpath *, CLIENT *);
extern mountres3 * mount3_mnt_3(dirpath *, void *);
extern mountres3 * mount3_mnt_3_svc(dirpath *, struct svc_req *);
#define MOUNT3_DUMP 2
extern mountlist * mount3_dump_3(void *, CLIENT *);
extern mountlist * mount3_dump_3(void *, void *);
extern mountlist * mount3_dump_3_svc(void *, struct svc_req *);
#define MOUNT3_UMNT 3
extern void * mount3_umnt_3(dirpath *, CLIENT *);
extern void * mount3_umnt_3(dirpath *, void *);
extern void * mount3_umnt_3_svc(dirpath *, struct svc_req *);
#define MOUNT3_UMNTALL 4
extern void * mount3_umntall_3(void *, CLIENT *);
extern void * mount3_umntall_3(void *, void *);
extern void * mount3_umntall_3_svc(void *, struct svc_req *);
#define MOUNT3_EXPORT 5
extern exports * mount3_export_3(void *, CLIENT *);
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
@ -235,40 +235,40 @@ extern int mount_program_3_freeresult ();
/* the zdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t zdr_fhandle3 (ZDR *, fhandle3*);
extern bool_t zdr_dirpath (ZDR *, dirpath*);
extern bool_t zdr_name (ZDR *, name*);
extern bool_t zdr_mountstat3 (ZDR *, mountstat3*);
extern bool_t zdr_mountlist (ZDR *, mountlist*);
extern bool_t zdr_mountbody (ZDR *, mountbody*);
extern bool_t zdr_groups (ZDR *, groups*);
extern bool_t zdr_groupnode (ZDR *, groupnode*);
extern bool_t zdr_exports (ZDR *, exports*);
extern bool_t zdr_exportnode (ZDR *, exportnode*);
extern bool_t zdr_mountres3_ok (ZDR *, mountres3_ok*);
extern bool_t zdr_mountres3 (ZDR *, mountres3*);
extern bool_t zdr_mountstat1 (ZDR *, mountstat1*);
extern bool_t zdr_fhandle1 (ZDR *, fhandle1);
extern bool_t zdr_mountres1_ok (ZDR *, mountres1_ok*);
extern bool_t zdr_mountres1 (ZDR *, mountres1*);
extern uint32_t zdr_fhandle3 (ZDR *, fhandle3*);
extern uint32_t zdr_dirpath (ZDR *, dirpath*);
extern uint32_t zdr_name (ZDR *, name*);
extern uint32_t zdr_mountstat3 (ZDR *, mountstat3*);
extern uint32_t zdr_mountlist (ZDR *, mountlist*);
extern uint32_t zdr_mountbody (ZDR *, mountbody*);
extern uint32_t zdr_groups (ZDR *, groups*);
extern uint32_t zdr_groupnode (ZDR *, groupnode*);
extern uint32_t zdr_exports (ZDR *, exports*);
extern uint32_t zdr_exportnode (ZDR *, exportnode*);
extern uint32_t zdr_mountres3_ok (ZDR *, mountres3_ok*);
extern uint32_t zdr_mountres3 (ZDR *, mountres3*);
extern uint32_t zdr_mountstat1 (ZDR *, mountstat1*);
extern uint32_t zdr_fhandle1 (ZDR *, fhandle1);
extern uint32_t zdr_mountres1_ok (ZDR *, mountres1_ok*);
extern uint32_t zdr_mountres1 (ZDR *, mountres1*);
#else /* K&R C */
extern bool_t zdr_fhandle3 ();
extern bool_t zdr_dirpath ();
extern bool_t zdr_name ();
extern bool_t zdr_mountstat3 ();
extern bool_t zdr_mountlist ();
extern bool_t zdr_mountbody ();
extern bool_t zdr_groups ();
extern bool_t zdr_groupnode ();
extern bool_t zdr_exports ();
extern bool_t zdr_exportnode ();
extern bool_t zdr_mountres3_ok ();
extern bool_t zdr_mountres3 ();
extern bool_t zdr_mountstat1 ();
extern bool_t zdr_fhandle1 ();
extern bool_t zdr_mountres1_ok ();
extern bool_t zdr_mountres1 ();
extern uint32_t zdr_fhandle3 ();
extern uint32_t zdr_dirpath ();
extern uint32_t zdr_name ();
extern uint32_t zdr_mountstat3 ();
extern uint32_t zdr_mountlist ();
extern uint32_t zdr_mountbody ();
extern uint32_t zdr_groups ();
extern uint32_t zdr_groupnode ();
extern uint32_t zdr_exports ();
extern uint32_t zdr_exportnode ();
extern uint32_t zdr_mountres3_ok ();
extern uint32_t zdr_mountres3 ();
extern uint32_t zdr_mountstat1 ();
extern uint32_t zdr_fhandle1 ();
extern uint32_t zdr_mountres1_ok ();
extern uint32_t zdr_mountres1 ();
#endif /* K&R C */

View File

@ -19,6 +19,6 @@ nfs-stamp : nfs.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-nfs.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,6 @@ nlm-stamp : nlm.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-nlm.c

View File

@ -35,7 +35,7 @@ either expressed or implied, of the FreeBSD Project.
#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;
@ -46,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;
@ -57,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;
@ -68,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;
@ -79,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;
@ -98,7 +98,7 @@ zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
return TRUE;
}
bool_t
uint32_t
zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
{
register int32_t *buf;
@ -119,7 +119,7 @@ zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
return TRUE;
}
bool_t
uint32_t
zdr_nlm4_share (ZDR *zdrs, nlm4_share *objp)
{
register int32_t *buf;
@ -138,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;
@ -149,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;
@ -168,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;
@ -181,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;
@ -196,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;
@ -209,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;
@ -226,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;
@ -239,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;
@ -252,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;
@ -265,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;
@ -286,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;
@ -301,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;

View File

@ -76,7 +76,7 @@ enum nlmstat4 {
typedef enum nlmstat4 nlmstat4;
struct nlm4_holder {
bool_t exclusive;
uint32_t exclusive;
u_int svid;
nlm4_oh oh;
u_quad_t l_offset;
@ -125,7 +125,7 @@ typedef struct NLM4_TESTres NLM4_TESTres;
struct NLM4_TESTargs {
nlm_cookie cookie;
bool_t exclusive;
uint32_t exclusive;
nlm4_lock lock;
};
typedef struct NLM4_TESTargs NLM4_TESTargs;
@ -138,8 +138,8 @@ typedef struct NLM4_CANCres NLM4_CANCres;
struct NLM4_CANCargs {
nlm_cookie cookie;
bool_t block;
bool_t exclusive;
uint32_t block;
uint32_t exclusive;
nlm4_lock lock;
};
typedef struct NLM4_CANCargs NLM4_CANCargs;
@ -164,17 +164,17 @@ typedef struct NLM4_LOCKres NLM4_LOCKres;
struct NLM4_LOCKargs {
nlm_cookie cookie;
bool_t block;
bool_t exclusive;
uint32_t block;
uint32_t exclusive;
nlm4_lock lock;
bool_t reclaim;
uint32_t reclaim;
int state;
};
typedef struct NLM4_LOCKargs NLM4_LOCKargs;
struct NLM4_GRANTEDargs {
nlm_cookie cookie;
bool_t exclusive;
uint32_t exclusive;
nlm4_lock lock;
};
typedef struct NLM4_GRANTEDargs NLM4_GRANTEDargs;
@ -190,54 +190,54 @@ typedef struct NLM4_GRANTEDres NLM4_GRANTEDres;
#if defined(__STDC__) || defined(__cplusplus)
#define NLM4_NULL 0
extern void * nlm4_null_4(void *, CLIENT *);
extern void * nlm4_null_4(void *, void *);
extern void * nlm4_null_4_svc(void *, struct svc_req *);
#define NLM4_TEST 1
extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, CLIENT *);
extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, void *);
extern NLM4_TESTres * nlm4_test_4_svc(NLM4_TESTargs *, struct svc_req *);
#define NLM4_LOCK 2
extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, CLIENT *);
extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, void *);
extern NLM4_LOCKres * nlm4_lock_4_svc(NLM4_LOCKargs *, struct svc_req *);
#define NLM4_CANCEL 3
extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, CLIENT *);
extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, void *);
extern NLM4_CANCres * nlm4_cancel_4_svc(NLM4_CANCargs *, struct svc_req *);
#define NLM4_UNLOCK 4
extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, CLIENT *);
extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, void *);
extern NLM4_UNLOCKres * nlm4_unlock_4_svc(NLM4_UNLOCKargs *, struct svc_req *);
#define NLM4_GRANT 5
extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, CLIENT *);
extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, void *);
extern NLM4_GRANTEDres * nlm4_grant_4_svc(NLM4_GRANTEDargs *, struct svc_req *);
#define NLM4_TEST_MSG 6
extern void * nlm4_test_msg_4(NLM4_TESTargs *, CLIENT *);
extern void * nlm4_test_msg_4(NLM4_TESTargs *, void *);
extern void * nlm4_test_msg_4_svc(NLM4_TESTargs *, struct svc_req *);
#define NLM4_LOCK_MSG 7
extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, CLIENT *);
extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, void *);
extern void * nlm4_lock_msg_4_svc(NLM4_LOCKargs *, struct svc_req *);
#define NLM4_CANCEL_MSG 8
extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, CLIENT *);
extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, void *);
extern void * nlm4_cancel_msg_4_svc(NLM4_CANCargs *, struct svc_req *);
#define NLM4_UNLOCK_MSG 9
extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, CLIENT *);
extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, void *);
extern void * nlm4_unlock_msg_4_svc(NLM4_UNLOCKargs *, struct svc_req *);
#define NLM4_GRANT_MSG 10
extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, CLIENT *);
extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, void *);
extern void * nlm4_grant_msg_4_svc(NLM4_GRANTEDargs *, struct svc_req *);
#define NLM4_TEST_RES 11
extern void * nlm4_test_res_4(NLM4_TESTres *, CLIENT *);
extern void * nlm4_test_res_4(NLM4_TESTres *, void *);
extern void * nlm4_test_res_4_svc(NLM4_TESTres *, struct svc_req *);
#define NLM4_LOCK_RES 12
extern void * nlm4_lock_res_4(NLM4_LOCKres *, CLIENT *);
extern void * nlm4_lock_res_4(NLM4_LOCKres *, void *);
extern void * nlm4_lock_res_4_svc(NLM4_LOCKres *, struct svc_req *);
#define NLM4_CANCEL_RES 13
extern void * nlm4_cancel_res_4(NLM4_CANCres *, CLIENT *);
extern void * nlm4_cancel_res_4(NLM4_CANCres *, void *);
extern void * nlm4_cancel_res_4_svc(NLM4_CANCres *, struct svc_req *);
#define NLM4_UNLOCK_RES 14
extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, CLIENT *);
extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, void *);
extern void * nlm4_unlock_res_4_svc(NLM4_UNLOCKres *, struct svc_req *);
#define NLM4_GRANT_RES 15
extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, CLIENT *);
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
@ -294,46 +294,46 @@ extern int nlm_program_4_freeresult ();
/* the zdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t zdr_nlm_fh4 (ZDR *, nlm_fh4*);
extern bool_t zdr_nlm4_oh (ZDR *, nlm4_oh*);
extern bool_t zdr_nlm_cookie (ZDR *, nlm_cookie*);
extern bool_t zdr_nlmstat4 (ZDR *, nlmstat4*);
extern bool_t zdr_nlm4_holder (ZDR *, nlm4_holder*);
extern bool_t zdr_nlm4_lock (ZDR *, nlm4_lock*);
extern bool_t zdr_nlm4_share (ZDR *, nlm4_share*);
extern bool_t zdr_nlm4_testres_denied (ZDR *, nlm4_testres_denied*);
extern bool_t zdr_nlm4_testreply (ZDR *, nlm4_testreply*);
extern bool_t zdr_NLM4_TESTres (ZDR *, NLM4_TESTres*);
extern bool_t zdr_NLM4_TESTargs (ZDR *, NLM4_TESTargs*);
extern bool_t zdr_NLM4_CANCres (ZDR *, NLM4_CANCres*);
extern bool_t zdr_NLM4_CANCargs (ZDR *, NLM4_CANCargs*);
extern bool_t zdr_NLM4_UNLOCKres (ZDR *, NLM4_UNLOCKres*);
extern bool_t zdr_NLM4_UNLOCKargs (ZDR *, NLM4_UNLOCKargs*);
extern bool_t zdr_NLM4_LOCKres (ZDR *, NLM4_LOCKres*);
extern bool_t zdr_NLM4_LOCKargs (ZDR *, NLM4_LOCKargs*);
extern bool_t zdr_NLM4_GRANTEDargs (ZDR *, NLM4_GRANTEDargs*);
extern bool_t zdr_NLM4_GRANTEDres (ZDR *, NLM4_GRANTEDres*);
extern uint32_t zdr_nlm_fh4 (ZDR *, nlm_fh4*);
extern uint32_t zdr_nlm4_oh (ZDR *, nlm4_oh*);
extern uint32_t zdr_nlm_cookie (ZDR *, nlm_cookie*);
extern uint32_t zdr_nlmstat4 (ZDR *, nlmstat4*);
extern uint32_t zdr_nlm4_holder (ZDR *, nlm4_holder*);
extern uint32_t zdr_nlm4_lock (ZDR *, nlm4_lock*);
extern uint32_t zdr_nlm4_share (ZDR *, nlm4_share*);
extern uint32_t zdr_nlm4_testres_denied (ZDR *, nlm4_testres_denied*);
extern uint32_t zdr_nlm4_testreply (ZDR *, nlm4_testreply*);
extern uint32_t zdr_NLM4_TESTres (ZDR *, NLM4_TESTres*);
extern uint32_t zdr_NLM4_TESTargs (ZDR *, NLM4_TESTargs*);
extern uint32_t zdr_NLM4_CANCres (ZDR *, NLM4_CANCres*);
extern uint32_t zdr_NLM4_CANCargs (ZDR *, NLM4_CANCargs*);
extern uint32_t zdr_NLM4_UNLOCKres (ZDR *, NLM4_UNLOCKres*);
extern uint32_t zdr_NLM4_UNLOCKargs (ZDR *, NLM4_UNLOCKargs*);
extern uint32_t zdr_NLM4_LOCKres (ZDR *, NLM4_LOCKres*);
extern uint32_t zdr_NLM4_LOCKargs (ZDR *, NLM4_LOCKargs*);
extern uint32_t zdr_NLM4_GRANTEDargs (ZDR *, NLM4_GRANTEDargs*);
extern uint32_t zdr_NLM4_GRANTEDres (ZDR *, NLM4_GRANTEDres*);
#else /* K&R C */
extern bool_t zdr_nlm_fh4 ();
extern bool_t zdr_nlm4_oh ();
extern bool_t zdr_nlm_cookie ();
extern bool_t zdr_nlmstat4 ();
extern bool_t zdr_nlm4_holder ();
extern bool_t zdr_nlm4_lock ();
extern bool_t zdr_nlm4_share ();
extern bool_t zdr_nlm4_testres_denied ();
extern bool_t zdr_nlm4_testreply ();
extern bool_t zdr_NLM4_TESTres ();
extern bool_t zdr_NLM4_TESTargs ();
extern bool_t zdr_NLM4_CANCres ();
extern bool_t zdr_NLM4_CANCargs ();
extern bool_t zdr_NLM4_UNLOCKres ();
extern bool_t zdr_NLM4_UNLOCKargs ();
extern bool_t zdr_NLM4_LOCKres ();
extern bool_t zdr_NLM4_LOCKargs ();
extern bool_t zdr_NLM4_GRANTEDargs ();
extern bool_t zdr_NLM4_GRANTEDres ();
extern uint32_t zdr_nlm_fh4 ();
extern uint32_t zdr_nlm4_oh ();
extern uint32_t zdr_nlm_cookie ();
extern uint32_t zdr_nlmstat4 ();
extern uint32_t zdr_nlm4_holder ();
extern uint32_t zdr_nlm4_lock ();
extern uint32_t zdr_nlm4_share ();
extern uint32_t zdr_nlm4_testres_denied ();
extern uint32_t zdr_nlm4_testreply ();
extern uint32_t zdr_NLM4_TESTres ();
extern uint32_t zdr_NLM4_TESTargs ();
extern uint32_t zdr_NLM4_CANCres ();
extern uint32_t zdr_NLM4_CANCargs ();
extern uint32_t zdr_NLM4_UNLOCKres ();
extern uint32_t zdr_NLM4_UNLOCKargs ();
extern uint32_t zdr_NLM4_LOCKres ();
extern uint32_t zdr_NLM4_LOCKargs ();
extern uint32_t zdr_NLM4_GRANTEDargs ();
extern uint32_t zdr_NLM4_GRANTEDres ();
#endif /* K&R C */

View File

@ -19,6 +19,6 @@ nsm-stamp : nsm.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-nsm.c

View File

@ -35,7 +35,7 @@ either expressed or implied, of the FreeBSD Project.
#include "libnfs-zdr.h"
#include "libnfs-raw-nsm.h"
bool_t
uint32_t
zdr_nsmstat1 (ZDR *zdrs, nsmstat1 *objp)
{
register int32_t *buf;
@ -46,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;
@ -63,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;
@ -76,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;
@ -89,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;
@ -100,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;
@ -113,7 +113,7 @@ 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;
@ -127,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;
@ -138,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;
@ -149,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;
@ -160,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;
@ -171,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;

View File

@ -118,27 +118,27 @@ typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs;
#if defined(__STDC__) || defined(__cplusplus)
#define NSM1_NULL 0
extern void * nsm1_null_1(void *, CLIENT *);
extern void * nsm1_null_1(void *, void *);
extern void * nsm1_null_1_svc(void *, struct svc_req *);
#define NSM1_STAT 1
extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *);
extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, void *);
extern struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *);
#define NSM1_MON 2
extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *);
extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, void *);
extern struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *);
#define NSM1_UNMON 3
extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *);
extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, void *);
extern struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *);
#define NSM1_UNMON_ALL 4
extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *);
extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, void *);
extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *);
#define NSM1_SIMU_CRASH 5
extern void * nsm1_simu_crash_1(void *, CLIENT *);
extern void * nsm1_simu_crash_1(void *, void *);
extern void * nsm1_simu_crash_1_svc(void *, struct svc_req *);
#define NSM1_NOTIFY 6
extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *);
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
@ -168,32 +168,32 @@ extern int nsm_program_1_freeresult ();
/* the zdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t zdr_nsmstat1 (ZDR *, nsmstat1*);
extern bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
extern bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
extern bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
extern bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
extern bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
extern bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
extern bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
extern bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
extern bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
extern bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
extern bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
extern uint32_t zdr_nsmstat1 (ZDR *, nsmstat1*);
extern uint32_t zdr_nsm_my_id (ZDR *, nsm_my_id*);
extern uint32_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*);
extern uint32_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*);
extern uint32_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*);
extern uint32_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*);
extern uint32_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*);
extern uint32_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*);
extern uint32_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*);
extern uint32_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*);
extern uint32_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*);
extern uint32_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*);
#else /* K&R C */
extern bool_t zdr_nsmstat1 ();
extern bool_t zdr_nsm_my_id ();
extern bool_t zdr_nsm_mon_id ();
extern bool_t zdr_NSM1_STATres ();
extern bool_t zdr_NSM1_STATargs ();
extern bool_t zdr_NSM1_MONres ();
extern bool_t zdr_NSM1_MONargs ();
extern bool_t zdr_NSM1_UNMONres ();
extern bool_t zdr_NSM1_UNMONargs ();
extern bool_t zdr_NSM1_UNMONALLres ();
extern bool_t zdr_NSM1_UNMONALLargs ();
extern bool_t zdr_NSM1_NOTIFYargs ();
extern uint32_t zdr_nsmstat1 ();
extern uint32_t zdr_nsm_my_id ();
extern uint32_t zdr_nsm_mon_id ();
extern uint32_t zdr_NSM1_STATres ();
extern uint32_t zdr_NSM1_STATargs ();
extern uint32_t zdr_NSM1_MONres ();
extern uint32_t zdr_NSM1_MONargs ();
extern uint32_t zdr_NSM1_UNMONres ();
extern uint32_t zdr_NSM1_UNMONargs ();
extern uint32_t zdr_NSM1_UNMONALLres ();
extern uint32_t zdr_NSM1_UNMONALLargs ();
extern uint32_t zdr_NSM1_NOTIFYargs ();
#endif /* K&R C */

View File

@ -19,6 +19,6 @@ portmap-stamp : portmap.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-portmap.c

View File

@ -35,7 +35,7 @@ either expressed or implied, of the FreeBSD Project.
#include "libnfs-zdr.h"
#include "libnfs-raw-portmap.h"
bool_t
uint32_t
zdr_pmap2_mapping (ZDR *zdrs, pmap2_mapping *objp)
{
register int32_t *buf;
@ -91,7 +91,7 @@ zdr_pmap2_mapping (ZDR *zdrs, pmap2_mapping *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap2_call_args (ZDR *zdrs, pmap2_call_args *objp)
{
register int32_t *buf;
@ -147,7 +147,7 @@ zdr_pmap2_call_args (ZDR *zdrs, pmap2_call_args *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap2_call_result (ZDR *zdrs, pmap2_call_result *objp)
{
register int32_t *buf;
@ -160,7 +160,7 @@ zdr_pmap2_call_result (ZDR *zdrs, pmap2_call_result *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap2_mapping_list (ZDR *zdrs, pmap2_mapping_list *objp)
{
register int32_t *buf;
@ -173,7 +173,7 @@ zdr_pmap2_mapping_list (ZDR *zdrs, pmap2_mapping_list *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap2_dump_result (ZDR *zdrs, pmap2_dump_result *objp)
{
register int32_t *buf;
@ -184,7 +184,7 @@ zdr_pmap2_dump_result (ZDR *zdrs, pmap2_dump_result *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_string_result (ZDR *zdrs, pmap3_string_result *objp)
{
register int32_t *buf;
@ -195,7 +195,7 @@ zdr_pmap3_string_result (ZDR *zdrs, pmap3_string_result *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_mapping (ZDR *zdrs, pmap3_mapping *objp)
{
register int32_t *buf;
@ -214,7 +214,7 @@ zdr_pmap3_mapping (ZDR *zdrs, pmap3_mapping *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_mapping_list (ZDR *zdrs, pmap3_mapping_list *objp)
{
register int32_t *buf;
@ -227,7 +227,7 @@ zdr_pmap3_mapping_list (ZDR *zdrs, pmap3_mapping_list *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_dump_result (ZDR *zdrs, pmap3_dump_result *objp)
{
register int32_t *buf;
@ -238,7 +238,7 @@ zdr_pmap3_dump_result (ZDR *zdrs, pmap3_dump_result *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_call_args (ZDR *zdrs, pmap3_call_args *objp)
{
register int32_t *buf;
@ -294,7 +294,7 @@ zdr_pmap3_call_args (ZDR *zdrs, pmap3_call_args *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_call_result (ZDR *zdrs, pmap3_call_result *objp)
{
register int32_t *buf;
@ -307,7 +307,7 @@ zdr_pmap3_call_result (ZDR *zdrs, pmap3_call_result *objp)
return TRUE;
}
bool_t
uint32_t
zdr_pmap3_netbuf (ZDR *zdrs, pmap3_netbuf *objp)
{
register int32_t *buf;

View File

@ -142,35 +142,35 @@ typedef struct pmap3_netbuf pmap3_netbuf;
#if defined(__STDC__) || defined(__cplusplus)
#define PMAP2_NULL 0
extern void * pmap2_null_2(void *, CLIENT *);
extern void * pmap2_null_2(void *, void *);
extern void * pmap2_null_2_svc(void *, struct svc_req *);
#define PMAP2_SET 1
extern bool_t * pmap2_set_2(pmap2_mapping *, CLIENT *);
extern bool_t * pmap2_set_2_svc(pmap2_mapping *, struct svc_req *);
extern uint32_t * pmap2_set_2(pmap2_mapping *, void *);
extern uint32_t * pmap2_set_2_svc(pmap2_mapping *, struct svc_req *);
#define PMAP2_UNSET 2
extern bool_t * pmap2_unset_2(pmap2_mapping *, CLIENT *);
extern bool_t * pmap2_unset_2_svc(pmap2_mapping *, struct svc_req *);
extern uint32_t * pmap2_unset_2(pmap2_mapping *, void *);
extern uint32_t * pmap2_unset_2_svc(pmap2_mapping *, struct svc_req *);
#define PMAP2_GETPORT 3
extern u_int * pmap2_getport_2(pmap2_mapping *, CLIENT *);
extern u_int * pmap2_getport_2(pmap2_mapping *, void *);
extern u_int * pmap2_getport_2_svc(pmap2_mapping *, struct svc_req *);
#define PMAP2_DUMP 4
extern pmap2_dump_result * pmap2_dump_2(void *, CLIENT *);
extern pmap2_dump_result * pmap2_dump_2(void *, void *);
extern pmap2_dump_result * pmap2_dump_2_svc(void *, struct svc_req *);
#define PMAP2_CALLIT 5
extern pmap2_call_result * pmap2_callit_2(pmap2_call_args *, CLIENT *);
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
extern void * pmap2_null_2();
extern void * pmap2_null_2_svc();
#define PMAP2_SET 1
extern bool_t * pmap2_set_2();
extern bool_t * pmap2_set_2_svc();
extern uint32_t * pmap2_set_2();
extern uint32_t * pmap2_set_2_svc();
#define PMAP2_UNSET 2
extern bool_t * pmap2_unset_2();
extern bool_t * pmap2_unset_2_svc();
extern uint32_t * pmap2_unset_2();
extern uint32_t * pmap2_unset_2_svc();
#define PMAP2_GETPORT 3
extern u_int * pmap2_getport_2();
extern u_int * pmap2_getport_2_svc();
@ -186,44 +186,44 @@ extern int pmap_program_2_freeresult ();
#if defined(__STDC__) || defined(__cplusplus)
#define PMAP3_NULL 0
extern void * pmap3_null_3(void *, CLIENT *);
extern void * pmap3_null_3(void *, void *);
extern void * pmap3_null_3_svc(void *, struct svc_req *);
#define PMAP3_SET 1
extern bool_t * pmap3_set_3(pmap3_mapping *, CLIENT *);
extern bool_t * pmap3_set_3_svc(pmap3_mapping *, struct svc_req *);
extern uint32_t * pmap3_set_3(pmap3_mapping *, void *);
extern uint32_t * pmap3_set_3_svc(pmap3_mapping *, struct svc_req *);
#define PMAP3_UNSET 2
extern bool_t * pmap3_unset_3(pmap3_mapping *, CLIENT *);
extern bool_t * pmap3_unset_3_svc(pmap3_mapping *, struct svc_req *);
extern uint32_t * pmap3_unset_3(pmap3_mapping *, void *);
extern uint32_t * pmap3_unset_3_svc(pmap3_mapping *, struct svc_req *);
#define PMAP3_GETADDR 3
extern pmap3_string_result * pmap3_getaddr_3(pmap3_mapping *, CLIENT *);
extern pmap3_string_result * pmap3_getaddr_3(pmap3_mapping *, void *);
extern pmap3_string_result * pmap3_getaddr_3_svc(pmap3_mapping *, struct svc_req *);
#define PMAP3_DUMP 4
extern pmap3_dump_result * pmap3_dump_3(void *, CLIENT *);
extern pmap3_dump_result * pmap3_dump_3(void *, void *);
extern pmap3_dump_result * pmap3_dump_3_svc(void *, struct svc_req *);
#define PMAP3_CALLIT 5
extern pmap3_call_result * pmap3_callit_3(pmap3_call_args *, CLIENT *);
extern pmap3_call_result * pmap3_callit_3(pmap3_call_args *, void *);
extern pmap3_call_result * pmap3_callit_3_svc(pmap3_call_args *, struct svc_req *);
#define PMAP3_GETTIME 6
extern u_int * pmap3_gettime_3(void *, CLIENT *);
extern u_int * pmap3_gettime_3(void *, void *);
extern u_int * pmap3_gettime_3_svc(void *, struct svc_req *);
#define PMAP3_UADDR2TADDR 7
extern pmap3_netbuf * pmap3_uaddr2taddr_3(char **, CLIENT *);
extern pmap3_netbuf * pmap3_uaddr2taddr_3(char **, void *);
extern pmap3_netbuf * pmap3_uaddr2taddr_3_svc(char **, struct svc_req *);
#define PMAP3_TADDR2UADDR 8
extern struct pmap3_string_result * pmap3_taddr2uaddr_3(pmap3_netbuf *, CLIENT *);
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
extern void * pmap3_null_3();
extern void * pmap3_null_3_svc();
#define PMAP3_SET 1
extern bool_t * pmap3_set_3();
extern bool_t * pmap3_set_3_svc();
extern uint32_t * pmap3_set_3();
extern uint32_t * pmap3_set_3_svc();
#define PMAP3_UNSET 2
extern bool_t * pmap3_unset_3();
extern bool_t * pmap3_unset_3_svc();
extern uint32_t * pmap3_unset_3();
extern uint32_t * pmap3_unset_3_svc();
#define PMAP3_GETADDR 3
extern pmap3_string_result * pmap3_getaddr_3();
extern pmap3_string_result * pmap3_getaddr_3_svc();
@ -248,32 +248,32 @@ extern int pmap_program_3_freeresult ();
/* the zdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t zdr_pmap2_mapping (ZDR *, pmap2_mapping*);
extern bool_t zdr_pmap2_call_args (ZDR *, pmap2_call_args*);
extern bool_t zdr_pmap2_call_result (ZDR *, pmap2_call_result*);
extern bool_t zdr_pmap2_mapping_list (ZDR *, pmap2_mapping_list*);
extern bool_t zdr_pmap2_dump_result (ZDR *, pmap2_dump_result*);
extern bool_t zdr_pmap3_string_result (ZDR *, pmap3_string_result*);
extern bool_t zdr_pmap3_mapping (ZDR *, pmap3_mapping*);
extern bool_t zdr_pmap3_mapping_list (ZDR *, pmap3_mapping_list*);
extern bool_t zdr_pmap3_dump_result (ZDR *, pmap3_dump_result*);
extern bool_t zdr_pmap3_call_args (ZDR *, pmap3_call_args*);
extern bool_t zdr_pmap3_call_result (ZDR *, pmap3_call_result*);
extern bool_t zdr_pmap3_netbuf (ZDR *, pmap3_netbuf*);
extern uint32_t zdr_pmap2_mapping (ZDR *, pmap2_mapping*);
extern uint32_t zdr_pmap2_call_args (ZDR *, pmap2_call_args*);
extern uint32_t zdr_pmap2_call_result (ZDR *, pmap2_call_result*);
extern uint32_t zdr_pmap2_mapping_list (ZDR *, pmap2_mapping_list*);
extern uint32_t zdr_pmap2_dump_result (ZDR *, pmap2_dump_result*);
extern uint32_t zdr_pmap3_string_result (ZDR *, pmap3_string_result*);
extern uint32_t zdr_pmap3_mapping (ZDR *, pmap3_mapping*);
extern uint32_t zdr_pmap3_mapping_list (ZDR *, pmap3_mapping_list*);
extern uint32_t zdr_pmap3_dump_result (ZDR *, pmap3_dump_result*);
extern uint32_t zdr_pmap3_call_args (ZDR *, pmap3_call_args*);
extern uint32_t zdr_pmap3_call_result (ZDR *, pmap3_call_result*);
extern uint32_t zdr_pmap3_netbuf (ZDR *, pmap3_netbuf*);
#else /* K&R C */
extern bool_t zdr_pmap2_mapping ();
extern bool_t zdr_pmap2_call_args ();
extern bool_t zdr_pmap2_call_result ();
extern bool_t zdr_pmap2_mapping_list ();
extern bool_t zdr_pmap2_dump_result ();
extern bool_t zdr_pmap3_string_result ();
extern bool_t zdr_pmap3_mapping ();
extern bool_t zdr_pmap3_mapping_list ();
extern bool_t zdr_pmap3_dump_result ();
extern bool_t zdr_pmap3_call_args ();
extern bool_t zdr_pmap3_call_result ();
extern bool_t zdr_pmap3_netbuf ();
extern uint32_t zdr_pmap2_mapping ();
extern uint32_t zdr_pmap2_call_args ();
extern uint32_t zdr_pmap2_call_result ();
extern uint32_t zdr_pmap2_mapping_list ();
extern uint32_t zdr_pmap2_dump_result ();
extern uint32_t zdr_pmap3_string_result ();
extern uint32_t zdr_pmap3_mapping ();
extern uint32_t zdr_pmap3_mapping_list ();
extern uint32_t zdr_pmap3_dump_result ();
extern uint32_t zdr_pmap3_call_args ();
extern uint32_t zdr_pmap3_call_result ();
extern uint32_t zdr_pmap3_netbuf ();
#endif /* K&R C */

View File

@ -19,6 +19,6 @@ rquota-stamp : rquota.x
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" >> 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" -e "s/bool_t/uint32_t/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
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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-rquota.c

View File

@ -35,7 +35,7 @@ either expressed or implied, of the FreeBSD Project.
#include "libnfs-zdr.h"
#include "libnfs-raw-rquota.h"
bool_t
uint32_t
zdr_rquotastat (ZDR *zdrs, rquotastat *objp)
{
register int32_t *buf;
@ -46,7 +46,7 @@ zdr_rquotastat (ZDR *zdrs, rquotastat *objp)
return TRUE;
}
bool_t
uint32_t
zdr_exportpath (ZDR *zdrs, exportpath *objp)
{
register int32_t *buf;
@ -57,7 +57,7 @@ zdr_exportpath (ZDR *zdrs, exportpath *objp)
return TRUE;
}
bool_t
uint32_t
zdr_GETQUOTA1args (ZDR *zdrs, GETQUOTA1args *objp)
{
register int32_t *buf;
@ -70,7 +70,7 @@ zdr_GETQUOTA1args (ZDR *zdrs, GETQUOTA1args *objp)
return TRUE;
}
bool_t
uint32_t
zdr_quotatype (ZDR *zdrs, quotatype *objp)
{
register int32_t *buf;
@ -81,7 +81,7 @@ zdr_quotatype (ZDR *zdrs, quotatype *objp)
return TRUE;
}
bool_t
uint32_t
zdr_GETQUOTA2args (ZDR *zdrs, GETQUOTA2args *objp)
{
register int32_t *buf;
@ -96,7 +96,7 @@ zdr_GETQUOTA2args (ZDR *zdrs, GETQUOTA2args *objp)
return TRUE;
}
bool_t
uint32_t
zdr_GETQUOTA1res_ok (ZDR *zdrs, GETQUOTA1res_ok *objp)
{
register int32_t *buf;
@ -200,7 +200,7 @@ zdr_GETQUOTA1res_ok (ZDR *zdrs, GETQUOTA1res_ok *objp)
return TRUE;
}
bool_t
uint32_t
zdr_GETQUOTA1res (ZDR *zdrs, GETQUOTA1res *objp)
{
register int32_t *buf;

View File

@ -99,15 +99,15 @@ typedef struct GETQUOTA1res GETQUOTA1res;
#if defined(__STDC__) || defined(__cplusplus)
#define RQUOTA1_NULL 0
extern void * rquota1_null_1(void *, CLIENT *);
extern void * rquota1_null_1(void *, void *);
extern void * rquota1_null_1_svc(void *, struct svc_req *);
#define RQUOTA1_GETQUOTA 1
extern GETQUOTA1res * rquota1_getquota_1(GETQUOTA1args *, CLIENT *);
extern GETQUOTA1res * rquota1_getquota_1(GETQUOTA1args *, void *);
extern GETQUOTA1res * rquota1_getquota_1_svc(GETQUOTA1args *, struct svc_req *);
#define RQUOTA1_GETACTIVEQUOTA 2
extern GETQUOTA1res * rquota1_getactivequota_1(GETQUOTA1args *, CLIENT *);
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
@ -125,15 +125,15 @@ extern int rquota_program_1_freeresult ();
#if defined(__STDC__) || defined(__cplusplus)
#define RQUOTA2_NULL 0
extern void * rquota2_null_2(void *, CLIENT *);
extern void * rquota2_null_2(void *, void *);
extern void * rquota2_null_2_svc(void *, struct svc_req *);
#define RQUOTA2_GETQUOTA 1
extern GETQUOTA1res * rquota2_getquota_2(GETQUOTA2args *, CLIENT *);
extern GETQUOTA1res * rquota2_getquota_2(GETQUOTA2args *, void *);
extern GETQUOTA1res * rquota2_getquota_2_svc(GETQUOTA2args *, struct svc_req *);
#define RQUOTA2_GETACTIVEQUOTA 2
extern GETQUOTA1res * rquota2_getactivequota_2(GETQUOTA2args *, CLIENT *);
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
@ -151,22 +151,22 @@ extern int rquota_program_2_freeresult ();
/* the zdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t zdr_rquotastat (ZDR *, rquotastat*);
extern bool_t zdr_exportpath (ZDR *, exportpath*);
extern bool_t zdr_GETQUOTA1args (ZDR *, GETQUOTA1args*);
extern bool_t zdr_quotatype (ZDR *, quotatype*);
extern bool_t zdr_GETQUOTA2args (ZDR *, GETQUOTA2args*);
extern bool_t zdr_GETQUOTA1res_ok (ZDR *, GETQUOTA1res_ok*);
extern bool_t zdr_GETQUOTA1res (ZDR *, GETQUOTA1res*);
extern uint32_t zdr_rquotastat (ZDR *, rquotastat*);
extern uint32_t zdr_exportpath (ZDR *, exportpath*);
extern uint32_t zdr_GETQUOTA1args (ZDR *, GETQUOTA1args*);
extern uint32_t zdr_quotatype (ZDR *, quotatype*);
extern uint32_t zdr_GETQUOTA2args (ZDR *, GETQUOTA2args*);
extern uint32_t zdr_GETQUOTA1res_ok (ZDR *, GETQUOTA1res_ok*);
extern uint32_t zdr_GETQUOTA1res (ZDR *, GETQUOTA1res*);
#else /* K&R C */
extern bool_t zdr_rquotastat ();
extern bool_t zdr_exportpath ();
extern bool_t zdr_GETQUOTA1args ();
extern bool_t zdr_quotatype ();
extern bool_t zdr_GETQUOTA2args ();
extern bool_t zdr_GETQUOTA1res_ok ();
extern bool_t zdr_GETQUOTA1res ();
extern uint32_t zdr_rquotastat ();
extern uint32_t zdr_exportpath ();
extern uint32_t zdr_GETQUOTA1args ();
extern uint32_t zdr_quotatype ();
extern uint32_t zdr_GETQUOTA2args ();
extern uint32_t zdr_GETQUOTA1res_ok ();
extern uint32_t zdr_GETQUOTA1res ();
#endif /* K&R C */

View File

@ -51,7 +51,6 @@ WSADATA wsaData;
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"