original files of m241
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Please do not edit this file.
|
||||
* It was generated using rpcgen.
|
||||
*/
|
||||
|
||||
#ifndef _XDR_MNT_COMMON_H_RPCGEN
|
||||
#define _XDR_MNT_COMMON_H_RPCGEN
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef _WRS_CONFIG_DOSFS_NAME_LENGTH_COMPAT
|
||||
#define MNTPATHLEN 1024
|
||||
#define MNTNAMLEN 255
|
||||
#else
|
||||
#define USE_CHECK_NAMELENGTH
|
||||
#define USE_FILE_PATHLENGTH
|
||||
|
||||
#ifdef USE_FILE_PATHLENGTH
|
||||
#define MNTPATHLEN 1036
|
||||
#else
|
||||
#define MNTPATHLEN 1024
|
||||
#endif
|
||||
|
||||
#ifdef USE_CHECK_NAMELENGTH
|
||||
#define MNTNAMLEN 1020
|
||||
#else
|
||||
#define MNTNAMLEN 255
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MOUNTPROG 100005
|
||||
|
||||
/* Mount procedure numbers */
|
||||
#define MOUNTPROC_NULL 0
|
||||
#define MOUNTPROC_MNT 1
|
||||
#define MOUNTPROC_DUMP 2
|
||||
#define MOUNTPROC_UMNT 3
|
||||
#define MOUNTPROC_UMNTALL 4
|
||||
#define MOUNTPROC_EXPORT 5
|
||||
|
||||
typedef char *dirpath;
|
||||
|
||||
typedef char *name;
|
||||
|
||||
typedef struct mountbody *mountlist;
|
||||
|
||||
struct mountbody {
|
||||
name ml_hostname;
|
||||
dirpath ml_directory;
|
||||
mountlist ml_next;
|
||||
};
|
||||
typedef struct mountbody mountbody;
|
||||
|
||||
typedef struct groupnode *groups;
|
||||
|
||||
struct groupnode {
|
||||
name gr_name;
|
||||
groups gr_next;
|
||||
};
|
||||
typedef struct groupnode groupnode;
|
||||
|
||||
typedef struct exportnode *exports;
|
||||
|
||||
struct exportnode {
|
||||
dirpath ex_dir;
|
||||
groups ex_groups;
|
||||
exports ex_next;
|
||||
};
|
||||
typedef struct exportnode exportnode;
|
||||
|
||||
/* the xdr functions */
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
|
||||
extern bool_t xdr_dirpath (XDR *, dirpath*);
|
||||
extern bool_t xdr_name (XDR *, name*);
|
||||
extern bool_t xdr_mountlist (XDR *, mountlist*);
|
||||
extern bool_t xdr_mountbody (XDR *, mountbody*);
|
||||
extern bool_t xdr_groups (XDR *, groups*);
|
||||
extern bool_t xdr_groupnode (XDR *, groupnode*);
|
||||
extern bool_t xdr_exports (XDR *, exports*);
|
||||
extern bool_t xdr_exportnode (XDR *, exportnode*);
|
||||
|
||||
#else
|
||||
|
||||
extern bool_t xdr_dirpath();
|
||||
extern bool_t xdr_name();
|
||||
extern bool_t xdr_mountlist();
|
||||
extern bool_t xdr_mountbody();
|
||||
extern bool_t xdr_groups();
|
||||
extern bool_t xdr_groupnode();
|
||||
extern bool_t xdr_exports();
|
||||
extern bool_t xdr_exportnode();
|
||||
|
||||
#endif /* __STDC__ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !_XDR_MNT_COMMON_H_RPCGEN */
|
||||
Reference in New Issue
Block a user