home *** CD-ROM | disk | FTP | other *** search
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
-
- #ifndef _PCNFSD_H_RPCGEN
- #define _PCNFSD_H_RPCGEN
-
- #include <rpc/rpc.h>
-
- #define IDENTLEN 32
- #define PASSWORDLEN 64
- #define CLIENTLEN 64
- #define PRINTERNAMELEN 64
- #define USERNAMELEN 64
- #define SPOOLNAMELEN 64
- #define OPTIONSLEN 64
- #define SPOOLDIRLEN 255
- #define EXTRAGIDLEN 16
- #define HOMEDIRLEN 255
- #define COMMENTLEN 255
- #define PRINTJOBIDLEN 255
- #define PRLISTMAX 32
- #define PRQUEUEMAX 128
- #define FACILITIESMAX 32
- #define MESSAGELEN 512
-
- typedef char *ident;
- #ifdef __cplusplus
- extern "C" bool_t xdr_ident(XDR *, ident*);
- #elif __STDC__
- extern bool_t xdr_ident(XDR *, ident*);
- #else /* Old Style C */
- bool_t xdr_ident();
- #endif /* Old Style C */
-
-
- typedef char *message;
- #ifdef __cplusplus
- extern "C" bool_t xdr_message(XDR *, message*);
- #elif __STDC__
- extern bool_t xdr_message(XDR *, message*);
- #else /* Old Style C */
- bool_t xdr_message();
- #endif /* Old Style C */
-
-
- typedef char *password;
- #ifdef __cplusplus
- extern "C" bool_t xdr_password(XDR *, password*);
- #elif __STDC__
- extern bool_t xdr_password(XDR *, password*);
- #else /* Old Style C */
- bool_t xdr_password();
- #endif /* Old Style C */
-
-
- typedef char *client;
- #ifdef __cplusplus
- extern "C" bool_t xdr_client(XDR *, client*);
- #elif __STDC__
- extern bool_t xdr_client(XDR *, client*);
- #else /* Old Style C */
- bool_t xdr_client();
- #endif /* Old Style C */
-
-
- typedef char *printername;
- #ifdef __cplusplus
- extern "C" bool_t xdr_printername(XDR *, printername*);
- #elif __STDC__
- extern bool_t xdr_printername(XDR *, printername*);
- #else /* Old Style C */
- bool_t xdr_printername();
- #endif /* Old Style C */
-
-
- typedef char *username;
- #ifdef __cplusplus
- extern "C" bool_t xdr_username(XDR *, username*);
- #elif __STDC__
- extern bool_t xdr_username(XDR *, username*);
- #else /* Old Style C */
- bool_t xdr_username();
- #endif /* Old Style C */
-
-
- typedef char *comment;
- #ifdef __cplusplus
- extern "C" bool_t xdr_comment(XDR *, comment*);
- #elif __STDC__
- extern bool_t xdr_comment(XDR *, comment*);
- #else /* Old Style C */
- bool_t xdr_comment();
- #endif /* Old Style C */
-
-
- typedef char *spoolname;
- #ifdef __cplusplus
- extern "C" bool_t xdr_spoolname(XDR *, spoolname*);
- #elif __STDC__
- extern bool_t xdr_spoolname(XDR *, spoolname*);
- #else /* Old Style C */
- bool_t xdr_spoolname();
- #endif /* Old Style C */
-
-
- typedef char *printjobid;
- #ifdef __cplusplus
- extern "C" bool_t xdr_printjobid(XDR *, printjobid*);
- #elif __STDC__
- extern bool_t xdr_printjobid(XDR *, printjobid*);
- #else /* Old Style C */
- bool_t xdr_printjobid();
- #endif /* Old Style C */
-
-
- typedef char *homedir;
- #ifdef __cplusplus
- extern "C" bool_t xdr_homedir(XDR *, homedir*);
- #elif __STDC__
- extern bool_t xdr_homedir(XDR *, homedir*);
- #else /* Old Style C */
- bool_t xdr_homedir();
- #endif /* Old Style C */
-
-
- typedef char *options;
- #ifdef __cplusplus
- extern "C" bool_t xdr_options(XDR *, options*);
- #elif __STDC__
- extern bool_t xdr_options(XDR *, options*);
- #else /* Old Style C */
- bool_t xdr_options();
- #endif /* Old Style C */
-
-
- enum arstat {
- AUTH_RES_OK = 0,
- AUTH_RES_FAKE = 1,
- AUTH_RES_FAIL = 2,
- };
- typedef enum arstat arstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_arstat(XDR *, arstat*);
- #elif __STDC__
- extern bool_t xdr_arstat(XDR *, arstat*);
- #else /* Old Style C */
- bool_t xdr_arstat();
- #endif /* Old Style C */
-
-
- enum alrstat {
- ALERT_RES_OK = 0,
- ALERT_RES_FAIL = 1,
- };
- typedef enum alrstat alrstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_alrstat(XDR *, alrstat*);
- #elif __STDC__
- extern bool_t xdr_alrstat(XDR *, alrstat*);
- #else /* Old Style C */
- bool_t xdr_alrstat();
- #endif /* Old Style C */
-
-
- enum pirstat {
- PI_RES_OK = 0,
- PI_RES_NO_SUCH_PRINTER = 1,
- PI_RES_FAIL = 2,
- };
- typedef enum pirstat pirstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pirstat(XDR *, pirstat*);
- #elif __STDC__
- extern bool_t xdr_pirstat(XDR *, pirstat*);
- #else /* Old Style C */
- bool_t xdr_pirstat();
- #endif /* Old Style C */
-
-
- enum pcrstat {
- PC_RES_OK = 0,
- PC_RES_NO_SUCH_PRINTER = 1,
- PC_RES_NO_SUCH_JOB = 2,
- PC_RES_NOT_OWNER = 3,
- PC_RES_FAIL = 4,
- };
- typedef enum pcrstat pcrstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pcrstat(XDR *, pcrstat*);
- #elif __STDC__
- extern bool_t xdr_pcrstat(XDR *, pcrstat*);
- #else /* Old Style C */
- bool_t xdr_pcrstat();
- #endif /* Old Style C */
-
-
- enum psrstat {
- PS_RES_OK = 0,
- PS_RES_ALREADY = 1,
- PS_RES_NULL = 2,
- PS_RES_NO_FILE = 3,
- PS_RES_FAIL = 4,
- };
- typedef enum psrstat psrstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_psrstat(XDR *, psrstat*);
- #elif __STDC__
- extern bool_t xdr_psrstat(XDR *, psrstat*);
- #else /* Old Style C */
- bool_t xdr_psrstat();
- #endif /* Old Style C */
-
-
- enum mapreq {
- MAP_REQ_UID = 0,
- MAP_REQ_GID = 1,
- MAP_REQ_UNAME = 2,
- MAP_REQ_GNAME = 3,
- };
- typedef enum mapreq mapreq;
- #ifdef __cplusplus
- extern "C" bool_t xdr_mapreq(XDR *, mapreq*);
- #elif __STDC__
- extern bool_t xdr_mapreq(XDR *, mapreq*);
- #else /* Old Style C */
- bool_t xdr_mapreq();
- #endif /* Old Style C */
-
-
- enum maprstat {
- MAP_RES_OK = 0,
- MAP_RES_UNKNOWN = 1,
- MAP_RES_DENIED = 2,
- };
- typedef enum maprstat maprstat;
- #ifdef __cplusplus
- extern "C" bool_t xdr_maprstat(XDR *, maprstat*);
- #elif __STDC__
- extern bool_t xdr_maprstat(XDR *, maprstat*);
- #else /* Old Style C */
- bool_t xdr_maprstat();
- #endif /* Old Style C */
-
-
- struct auth_args {
- ident id;
- password pw;
- };
- typedef struct auth_args auth_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_auth_args(XDR *, auth_args*);
- #elif __STDC__
- extern bool_t xdr_auth_args(XDR *, auth_args*);
- #else /* Old Style C */
- bool_t xdr_auth_args();
- #endif /* Old Style C */
-
-
- struct auth_results {
- arstat stat;
- u_int uid;
- u_int gid;
- };
- typedef struct auth_results auth_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_auth_results(XDR *, auth_results*);
- #elif __STDC__
- extern bool_t xdr_auth_results(XDR *, auth_results*);
- #else /* Old Style C */
- bool_t xdr_auth_results();
- #endif /* Old Style C */
-
-
- struct pr_init_args {
- client system;
- printername pn;
- };
- typedef struct pr_init_args pr_init_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_init_args(XDR *, pr_init_args*);
- #elif __STDC__
- extern bool_t xdr_pr_init_args(XDR *, pr_init_args*);
- #else /* Old Style C */
- bool_t xdr_pr_init_args();
- #endif /* Old Style C */
-
-
- struct pr_init_results {
- pirstat stat;
- spoolname dir;
- };
- typedef struct pr_init_results pr_init_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_init_results(XDR *, pr_init_results*);
- #elif __STDC__
- extern bool_t xdr_pr_init_results(XDR *, pr_init_results*);
- #else /* Old Style C */
- bool_t xdr_pr_init_results();
- #endif /* Old Style C */
-
-
- struct pr_start_args {
- client system;
- printername pn;
- username user;
- spoolname file;
- options opts;
- };
- typedef struct pr_start_args pr_start_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_start_args(XDR *, pr_start_args*);
- #elif __STDC__
- extern bool_t xdr_pr_start_args(XDR *, pr_start_args*);
- #else /* Old Style C */
- bool_t xdr_pr_start_args();
- #endif /* Old Style C */
-
-
- struct pr_start_results {
- psrstat stat;
- };
- typedef struct pr_start_results pr_start_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_start_results(XDR *, pr_start_results*);
- #elif __STDC__
- extern bool_t xdr_pr_start_results(XDR *, pr_start_results*);
- #else /* Old Style C */
- bool_t xdr_pr_start_results();
- #endif /* Old Style C */
-
-
- struct v2_info_args {
- comment vers;
- comment cm;
- };
- typedef struct v2_info_args v2_info_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_info_args(XDR *, v2_info_args*);
- #elif __STDC__
- extern bool_t xdr_v2_info_args(XDR *, v2_info_args*);
- #else /* Old Style C */
- bool_t xdr_v2_info_args();
- #endif /* Old Style C */
-
-
- struct v2_info_results {
- comment vers;
- comment cm;
- struct {
- u_int facilities_len;
- int *facilities_val;
- } facilities;
- };
- typedef struct v2_info_results v2_info_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_info_results(XDR *, v2_info_results*);
- #elif __STDC__
- extern bool_t xdr_v2_info_results(XDR *, v2_info_results*);
- #else /* Old Style C */
- bool_t xdr_v2_info_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_init_args {
- client system;
- printername pn;
- comment cm;
- };
- typedef struct v2_pr_init_args v2_pr_init_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_init_args(XDR *, v2_pr_init_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_init_args(XDR *, v2_pr_init_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_init_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_init_results {
- pirstat stat;
- spoolname dir;
- comment cm;
- };
- typedef struct v2_pr_init_results v2_pr_init_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_init_results(XDR *, v2_pr_init_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_init_results(XDR *, v2_pr_init_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_init_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_start_args {
- client system;
- printername pn;
- username user;
- spoolname file;
- options opts;
- int copies;
- comment cm;
- };
- typedef struct v2_pr_start_args v2_pr_start_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_start_args(XDR *, v2_pr_start_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_start_args(XDR *, v2_pr_start_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_start_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_start_results {
- psrstat stat;
- printjobid id;
- comment cm;
- };
- typedef struct v2_pr_start_results v2_pr_start_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_start_results(XDR *, v2_pr_start_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_start_results(XDR *, v2_pr_start_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_start_results();
- #endif /* Old Style C */
-
-
- typedef struct pr_list_item *pr_list;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_list(XDR *, pr_list*);
- #elif __STDC__
- extern bool_t xdr_pr_list(XDR *, pr_list*);
- #else /* Old Style C */
- bool_t xdr_pr_list();
- #endif /* Old Style C */
-
-
- struct pr_list_item {
- printername pn;
- printername device;
- client remhost;
- comment cm;
- pr_list pr_next;
- };
- typedef struct pr_list_item pr_list_item;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_list_item(XDR *, pr_list_item*);
- #elif __STDC__
- extern bool_t xdr_pr_list_item(XDR *, pr_list_item*);
- #else /* Old Style C */
- bool_t xdr_pr_list_item();
- #endif /* Old Style C */
-
-
- struct v2_pr_list_results {
- comment cm;
- pr_list printers;
- };
- typedef struct v2_pr_list_results v2_pr_list_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_list_results(XDR *, v2_pr_list_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_list_results(XDR *, v2_pr_list_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_list_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_queue_args {
- printername pn;
- client system;
- username user;
- bool_t just_mine;
- comment cm;
- };
- typedef struct v2_pr_queue_args v2_pr_queue_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_queue_args(XDR *, v2_pr_queue_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_queue_args(XDR *, v2_pr_queue_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_queue_args();
- #endif /* Old Style C */
-
-
- typedef struct pr_queue_item *pr_queue;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_queue(XDR *, pr_queue*);
- #elif __STDC__
- extern bool_t xdr_pr_queue(XDR *, pr_queue*);
- #else /* Old Style C */
- bool_t xdr_pr_queue();
- #endif /* Old Style C */
-
-
- struct pr_queue_item {
- int position;
- printjobid id;
- comment size;
- comment status;
- client system;
- username user;
- spoolname file;
- comment cm;
- pr_queue pr_next;
- };
- typedef struct pr_queue_item pr_queue_item;
- #ifdef __cplusplus
- extern "C" bool_t xdr_pr_queue_item(XDR *, pr_queue_item*);
- #elif __STDC__
- extern bool_t xdr_pr_queue_item(XDR *, pr_queue_item*);
- #else /* Old Style C */
- bool_t xdr_pr_queue_item();
- #endif /* Old Style C */
-
-
- struct v2_pr_queue_results {
- pirstat stat;
- comment cm;
- bool_t just_yours;
- int qlen;
- int qshown;
- pr_queue jobs;
- };
- typedef struct v2_pr_queue_results v2_pr_queue_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_queue_results(XDR *, v2_pr_queue_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_queue_results(XDR *, v2_pr_queue_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_queue_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_cancel_args {
- printername pn;
- client system;
- username user;
- printjobid id;
- comment cm;
- };
- typedef struct v2_pr_cancel_args v2_pr_cancel_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_cancel_args(XDR *, v2_pr_cancel_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_cancel_args(XDR *, v2_pr_cancel_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_cancel_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_cancel_results {
- pcrstat stat;
- comment cm;
- };
- typedef struct v2_pr_cancel_results v2_pr_cancel_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_cancel_results(XDR *, v2_pr_cancel_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_cancel_results(XDR *, v2_pr_cancel_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_cancel_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_status_args {
- printername pn;
- comment cm;
- };
- typedef struct v2_pr_status_args v2_pr_status_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_status_args(XDR *, v2_pr_status_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_status_args(XDR *, v2_pr_status_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_status_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_status_results {
- pirstat stat;
- bool_t avail;
- bool_t printing;
- int qlen;
- bool_t needs_operator;
- comment status;
- comment cm;
- };
- typedef struct v2_pr_status_results v2_pr_status_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_status_results(XDR *, v2_pr_status_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_status_results(XDR *, v2_pr_status_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_status_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_admin_args {
- client system;
- username user;
- printername pn;
- comment cm;
- };
- typedef struct v2_pr_admin_args v2_pr_admin_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_admin_args(XDR *, v2_pr_admin_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_admin_args(XDR *, v2_pr_admin_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_admin_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_admin_results {
- pirstat stat;
- comment cm;
- };
- typedef struct v2_pr_admin_results v2_pr_admin_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_admin_results(XDR *, v2_pr_admin_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_admin_results(XDR *, v2_pr_admin_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_admin_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_requeue_args {
- printername pn;
- client system;
- username user;
- printjobid id;
- int qpos;
- comment cm;
- };
- typedef struct v2_pr_requeue_args v2_pr_requeue_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_requeue_args(XDR *, v2_pr_requeue_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_requeue_args(XDR *, v2_pr_requeue_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_requeue_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_requeue_results {
- pcrstat stat;
- comment cm;
- };
- typedef struct v2_pr_requeue_results v2_pr_requeue_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_requeue_results(XDR *, v2_pr_requeue_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_requeue_results(XDR *, v2_pr_requeue_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_requeue_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_hold_args {
- printername pn;
- client system;
- username user;
- printjobid id;
- comment cm;
- };
- typedef struct v2_pr_hold_args v2_pr_hold_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_hold_args(XDR *, v2_pr_hold_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_hold_args(XDR *, v2_pr_hold_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_hold_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_hold_results {
- pcrstat stat;
- comment cm;
- };
- typedef struct v2_pr_hold_results v2_pr_hold_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_hold_results(XDR *, v2_pr_hold_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_hold_results(XDR *, v2_pr_hold_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_hold_results();
- #endif /* Old Style C */
-
-
- struct v2_pr_release_args {
- printername pn;
- client system;
- username user;
- printjobid id;
- comment cm;
- };
- typedef struct v2_pr_release_args v2_pr_release_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_release_args(XDR *, v2_pr_release_args*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_release_args(XDR *, v2_pr_release_args*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_release_args();
- #endif /* Old Style C */
-
-
- struct v2_pr_release_results {
- pcrstat stat;
- comment cm;
- };
- typedef struct v2_pr_release_results v2_pr_release_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_pr_release_results(XDR *, v2_pr_release_results*);
- #elif __STDC__
- extern bool_t xdr_v2_pr_release_results(XDR *, v2_pr_release_results*);
- #else /* Old Style C */
- bool_t xdr_v2_pr_release_results();
- #endif /* Old Style C */
-
-
- typedef struct mapreq_arg_item *mapreq_arg;
- #ifdef __cplusplus
- extern "C" bool_t xdr_mapreq_arg(XDR *, mapreq_arg*);
- #elif __STDC__
- extern bool_t xdr_mapreq_arg(XDR *, mapreq_arg*);
- #else /* Old Style C */
- bool_t xdr_mapreq_arg();
- #endif /* Old Style C */
-
-
- struct mapreq_arg_item {
- mapreq req;
- int id;
- username name;
- mapreq_arg mapreq_next;
- };
- typedef struct mapreq_arg_item mapreq_arg_item;
- #ifdef __cplusplus
- extern "C" bool_t xdr_mapreq_arg_item(XDR *, mapreq_arg_item*);
- #elif __STDC__
- extern bool_t xdr_mapreq_arg_item(XDR *, mapreq_arg_item*);
- #else /* Old Style C */
- bool_t xdr_mapreq_arg_item();
- #endif /* Old Style C */
-
-
- typedef struct mapreq_res_item *mapreq_res;
- #ifdef __cplusplus
- extern "C" bool_t xdr_mapreq_res(XDR *, mapreq_res*);
- #elif __STDC__
- extern bool_t xdr_mapreq_res(XDR *, mapreq_res*);
- #else /* Old Style C */
- bool_t xdr_mapreq_res();
- #endif /* Old Style C */
-
-
- struct mapreq_res_item {
- mapreq req;
- maprstat stat;
- int id;
- username name;
- mapreq_res mapreq_next;
- };
- typedef struct mapreq_res_item mapreq_res_item;
- #ifdef __cplusplus
- extern "C" bool_t xdr_mapreq_res_item(XDR *, mapreq_res_item*);
- #elif __STDC__
- extern bool_t xdr_mapreq_res_item(XDR *, mapreq_res_item*);
- #else /* Old Style C */
- bool_t xdr_mapreq_res_item();
- #endif /* Old Style C */
-
-
- struct v2_mapid_args {
- comment cm;
- mapreq_arg req_list;
- };
- typedef struct v2_mapid_args v2_mapid_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_mapid_args(XDR *, v2_mapid_args*);
- #elif __STDC__
- extern bool_t xdr_v2_mapid_args(XDR *, v2_mapid_args*);
- #else /* Old Style C */
- bool_t xdr_v2_mapid_args();
- #endif /* Old Style C */
-
-
- struct v2_mapid_results {
- comment cm;
- mapreq_res res_list;
- };
- typedef struct v2_mapid_results v2_mapid_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_mapid_results(XDR *, v2_mapid_results*);
- #elif __STDC__
- extern bool_t xdr_v2_mapid_results(XDR *, v2_mapid_results*);
- #else /* Old Style C */
- bool_t xdr_v2_mapid_results();
- #endif /* Old Style C */
-
-
- struct v2_auth_args {
- client system;
- ident id;
- password pw;
- comment cm;
- };
- typedef struct v2_auth_args v2_auth_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_auth_args(XDR *, v2_auth_args*);
- #elif __STDC__
- extern bool_t xdr_v2_auth_args(XDR *, v2_auth_args*);
- #else /* Old Style C */
- bool_t xdr_v2_auth_args();
- #endif /* Old Style C */
-
-
- struct v2_auth_results {
- arstat stat;
- u_int uid;
- u_int gid;
- struct {
- u_int gids_len;
- u_int *gids_val;
- } gids;
- homedir home;
- int def_umask;
- comment cm;
- };
- typedef struct v2_auth_results v2_auth_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_auth_results(XDR *, v2_auth_results*);
- #elif __STDC__
- extern bool_t xdr_v2_auth_results(XDR *, v2_auth_results*);
- #else /* Old Style C */
- bool_t xdr_v2_auth_results();
- #endif /* Old Style C */
-
-
- struct v2_alert_args {
- client system;
- printername pn;
- username user;
- message msg;
- };
- typedef struct v2_alert_args v2_alert_args;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_alert_args(XDR *, v2_alert_args*);
- #elif __STDC__
- extern bool_t xdr_v2_alert_args(XDR *, v2_alert_args*);
- #else /* Old Style C */
- bool_t xdr_v2_alert_args();
- #endif /* Old Style C */
-
-
- struct v2_alert_results {
- alrstat stat;
- comment cm;
- };
- typedef struct v2_alert_results v2_alert_results;
- #ifdef __cplusplus
- extern "C" bool_t xdr_v2_alert_results(XDR *, v2_alert_results*);
- #elif __STDC__
- extern bool_t xdr_v2_alert_results(XDR *, v2_alert_results*);
- #else /* Old Style C */
- bool_t xdr_v2_alert_results();
- #endif /* Old Style C */
-
- #if RPC_SVC
- static void _msgout();
- void msg_out(msg) char *msg; {_msgout(msg);}
- #endif
- #if 1
- extern void msg_out();
- #endif
-
- #define PCNFSDPROG ((u_long)150001)
- #define PCNFSDVERS ((u_long)1)
-
- #ifdef __cplusplus
- #define PCNFSD_NULL ((u_long)0)
- extern "C" void * pcnfsd_null_1(void *, CLIENT *);
- extern "C" void * pcnfsd_null_1_svc(void *, struct svc_req *);
- #define PCNFSD_AUTH ((u_long)1)
- extern "C" auth_results * pcnfsd_auth_1(auth_args *, CLIENT *);
- extern "C" auth_results * pcnfsd_auth_1_svc(auth_args *, struct svc_req *);
- #define PCNFSD_PR_INIT ((u_long)2)
- extern "C" pr_init_results * pcnfsd_pr_init_1(pr_init_args *, CLIENT *);
- extern "C" pr_init_results * pcnfsd_pr_init_1_svc(pr_init_args *, struct svc_req *);
- #define PCNFSD_PR_START ((u_long)3)
- extern "C" pr_start_results * pcnfsd_pr_start_1(pr_start_args *, CLIENT *);
- extern "C" pr_start_results * pcnfsd_pr_start_1_svc(pr_start_args *, struct svc_req *);
-
- #elif __STDC__
- #define PCNFSD_NULL ((u_long)0)
- extern void * pcnfsd_null_1(void *, CLIENT *);
- extern void * pcnfsd_null_1_svc(void *, struct svc_req *);
- #define PCNFSD_AUTH ((u_long)1)
- extern auth_results * pcnfsd_auth_1(auth_args *, CLIENT *);
- extern auth_results * pcnfsd_auth_1_svc(auth_args *, struct svc_req *);
- #define PCNFSD_PR_INIT ((u_long)2)
- extern pr_init_results * pcnfsd_pr_init_1(pr_init_args *, CLIENT *);
- extern pr_init_results * pcnfsd_pr_init_1_svc(pr_init_args *, struct svc_req *);
- #define PCNFSD_PR_START ((u_long)3)
- extern pr_start_results * pcnfsd_pr_start_1(pr_start_args *, CLIENT *);
- extern pr_start_results * pcnfsd_pr_start_1_svc(pr_start_args *, struct svc_req *);
-
- #else /* Old Style C */
- #define PCNFSD_NULL ((u_long)0)
- extern void * pcnfsd_null_1();
- extern void * pcnfsd_null_1_svc();
- #define PCNFSD_AUTH ((u_long)1)
- extern auth_results * pcnfsd_auth_1();
- extern auth_results * pcnfsd_auth_1_svc();
- #define PCNFSD_PR_INIT ((u_long)2)
- extern pr_init_results * pcnfsd_pr_init_1();
- extern pr_init_results * pcnfsd_pr_init_1_svc();
- #define PCNFSD_PR_START ((u_long)3)
- extern pr_start_results * pcnfsd_pr_start_1();
- extern pr_start_results * pcnfsd_pr_start_1_svc();
- #endif /* Old Style C */
- #define PCNFSDV2 ((u_long)2)
-
- #ifdef __cplusplus
- #define PCNFSD2_NULL ((u_long)0)
- extern "C" void * pcnfsd2_null_2(void *, CLIENT *);
- extern "C" void * pcnfsd2_null_2_svc(void *, struct svc_req *);
- #define PCNFSD2_INFO ((u_long)1)
- extern "C" v2_info_results * pcnfsd2_info_2(v2_info_args *, CLIENT *);
- extern "C" v2_info_results * pcnfsd2_info_2_svc(v2_info_args *, struct svc_req *);
- #define PCNFSD2_PR_INIT ((u_long)2)
- extern "C" v2_pr_init_results * pcnfsd2_pr_init_2(v2_pr_init_args *, CLIENT *);
- extern "C" v2_pr_init_results * pcnfsd2_pr_init_2_svc(v2_pr_init_args *, struct svc_req *);
- #define PCNFSD2_PR_START ((u_long)3)
- extern "C" v2_pr_start_results * pcnfsd2_pr_start_2(v2_pr_start_args *, CLIENT *);
- extern "C" v2_pr_start_results * pcnfsd2_pr_start_2_svc(v2_pr_start_args *, struct svc_req *);
- #define PCNFSD2_PR_LIST ((u_long)4)
- extern "C" v2_pr_list_results * pcnfsd2_pr_list_2(void *, CLIENT *);
- extern "C" v2_pr_list_results * pcnfsd2_pr_list_2_svc(void *, struct svc_req *);
- #define PCNFSD2_PR_QUEUE ((u_long)5)
- extern "C" v2_pr_queue_results * pcnfsd2_pr_queue_2(v2_pr_queue_args *, CLIENT *);
- extern "C" v2_pr_queue_results * pcnfsd2_pr_queue_2_svc(v2_pr_queue_args *, struct svc_req *);
- #define PCNFSD2_PR_STATUS ((u_long)6)
- extern "C" v2_pr_status_results * pcnfsd2_pr_status_2(v2_pr_status_args *, CLIENT *);
- extern "C" v2_pr_status_results * pcnfsd2_pr_status_2_svc(v2_pr_status_args *, struct svc_req *);
- #define PCNFSD2_PR_CANCEL ((u_long)7)
- extern "C" v2_pr_cancel_results * pcnfsd2_pr_cancel_2(v2_pr_cancel_args *, CLIENT *);
- extern "C" v2_pr_cancel_results * pcnfsd2_pr_cancel_2_svc(v2_pr_cancel_args *, struct svc_req *);
- #define PCNFSD2_PR_ADMIN ((u_long)8)
- extern "C" v2_pr_admin_results * pcnfsd2_pr_admin_2(v2_pr_admin_args *, CLIENT *);
- extern "C" v2_pr_admin_results * pcnfsd2_pr_admin_2_svc(v2_pr_admin_args *, struct svc_req *);
- #define PCNFSD2_PR_REQUEUE ((u_long)9)
- extern "C" v2_pr_requeue_results * pcnfsd2_pr_requeue_2(v2_pr_requeue_args *, CLIENT *);
- extern "C" v2_pr_requeue_results * pcnfsd2_pr_requeue_2_svc(v2_pr_requeue_args *, struct svc_req *);
- #define PCNFSD2_PR_HOLD ((u_long)10)
- extern "C" v2_pr_hold_results * pcnfsd2_pr_hold_2(v2_pr_hold_args *, CLIENT *);
- extern "C" v2_pr_hold_results * pcnfsd2_pr_hold_2_svc(v2_pr_hold_args *, struct svc_req *);
- #define PCNFSD2_PR_RELEASE ((u_long)11)
- extern "C" v2_pr_release_results * pcnfsd2_pr_release_2(v2_pr_release_args *, CLIENT *);
- extern "C" v2_pr_release_results * pcnfsd2_pr_release_2_svc(v2_pr_release_args *, struct svc_req *);
- #define PCNFSD2_MAPID ((u_long)12)
- extern "C" v2_mapid_results * pcnfsd2_mapid_2(v2_mapid_args *, CLIENT *);
- extern "C" v2_mapid_results * pcnfsd2_mapid_2_svc(v2_mapid_args *, struct svc_req *);
- #define PCNFSD2_AUTH ((u_long)13)
- extern "C" v2_auth_results * pcnfsd2_auth_2(v2_auth_args *, CLIENT *);
- extern "C" v2_auth_results * pcnfsd2_auth_2_svc(v2_auth_args *, struct svc_req *);
- #define PCNFSD2_ALERT ((u_long)14)
- extern "C" v2_alert_results * pcnfsd2_alert_2(v2_alert_args *, CLIENT *);
- extern "C" v2_alert_results * pcnfsd2_alert_2_svc(v2_alert_args *, struct svc_req *);
-
- #elif __STDC__
- #define PCNFSD2_NULL ((u_long)0)
- extern void * pcnfsd2_null_2(void *, CLIENT *);
- extern void * pcnfsd2_null_2_svc(void *, struct svc_req *);
- #define PCNFSD2_INFO ((u_long)1)
- extern v2_info_results * pcnfsd2_info_2(v2_info_args *, CLIENT *);
- extern v2_info_results * pcnfsd2_info_2_svc(v2_info_args *, struct svc_req *);
- #define PCNFSD2_PR_INIT ((u_long)2)
- extern v2_pr_init_results * pcnfsd2_pr_init_2(v2_pr_init_args *, CLIENT *);
- extern v2_pr_init_results * pcnfsd2_pr_init_2_svc(v2_pr_init_args *, struct svc_req *);
- #define PCNFSD2_PR_START ((u_long)3)
- extern v2_pr_start_results * pcnfsd2_pr_start_2(v2_pr_start_args *, CLIENT *);
- extern v2_pr_start_results * pcnfsd2_pr_start_2_svc(v2_pr_start_args *, struct svc_req *);
- #define PCNFSD2_PR_LIST ((u_long)4)
- extern v2_pr_list_results * pcnfsd2_pr_list_2(void *, CLIENT *);
- extern v2_pr_list_results * pcnfsd2_pr_list_2_svc(void *, struct svc_req *);
- #define PCNFSD2_PR_QUEUE ((u_long)5)
- extern v2_pr_queue_results * pcnfsd2_pr_queue_2(v2_pr_queue_args *, CLIENT *);
- extern v2_pr_queue_results * pcnfsd2_pr_queue_2_svc(v2_pr_queue_args *, struct svc_req *);
- #define PCNFSD2_PR_STATUS ((u_long)6)
- extern v2_pr_status_results * pcnfsd2_pr_status_2(v2_pr_status_args *, CLIENT *);
- extern v2_pr_status_results * pcnfsd2_pr_status_2_svc(v2_pr_status_args *, struct svc_req *);
- #define PCNFSD2_PR_CANCEL ((u_long)7)
- extern v2_pr_cancel_results * pcnfsd2_pr_cancel_2(v2_pr_cancel_args *, CLIENT *);
- extern v2_pr_cancel_results * pcnfsd2_pr_cancel_2_svc(v2_pr_cancel_args *, struct svc_req *);
- #define PCNFSD2_PR_ADMIN ((u_long)8)
- extern v2_pr_admin_results * pcnfsd2_pr_admin_2(v2_pr_admin_args *, CLIENT *);
- extern v2_pr_admin_results * pcnfsd2_pr_admin_2_svc(v2_pr_admin_args *, struct svc_req *);
- #define PCNFSD2_PR_REQUEUE ((u_long)9)
- extern v2_pr_requeue_results * pcnfsd2_pr_requeue_2(v2_pr_requeue_args *, CLIENT *);
- extern v2_pr_requeue_results * pcnfsd2_pr_requeue_2_svc(v2_pr_requeue_args *, struct svc_req *);
- #define PCNFSD2_PR_HOLD ((u_long)10)
- extern v2_pr_hold_results * pcnfsd2_pr_hold_2(v2_pr_hold_args *, CLIENT *);
- extern v2_pr_hold_results * pcnfsd2_pr_hold_2_svc(v2_pr_hold_args *, struct svc_req *);
- #define PCNFSD2_PR_RELEASE ((u_long)11)
- extern v2_pr_release_results * pcnfsd2_pr_release_2(v2_pr_release_args *, CLIENT *);
- extern v2_pr_release_results * pcnfsd2_pr_release_2_svc(v2_pr_release_args *, struct svc_req *);
- #define PCNFSD2_MAPID ((u_long)12)
- extern v2_mapid_results * pcnfsd2_mapid_2(v2_mapid_args *, CLIENT *);
- extern v2_mapid_results * pcnfsd2_mapid_2_svc(v2_mapid_args *, struct svc_req *);
- #define PCNFSD2_AUTH ((u_long)13)
- extern v2_auth_results * pcnfsd2_auth_2(v2_auth_args *, CLIENT *);
- extern v2_auth_results * pcnfsd2_auth_2_svc(v2_auth_args *, struct svc_req *);
- #define PCNFSD2_ALERT ((u_long)14)
- extern v2_alert_results * pcnfsd2_alert_2(v2_alert_args *, CLIENT *);
- extern v2_alert_results * pcnfsd2_alert_2_svc(v2_alert_args *, struct svc_req *);
-
- #else /* Old Style C */
- #define PCNFSD2_NULL ((u_long)0)
- extern void * pcnfsd2_null_2();
- extern void * pcnfsd2_null_2_svc();
- #define PCNFSD2_INFO ((u_long)1)
- extern v2_info_results * pcnfsd2_info_2();
- extern v2_info_results * pcnfsd2_info_2_svc();
- #define PCNFSD2_PR_INIT ((u_long)2)
- extern v2_pr_init_results * pcnfsd2_pr_init_2();
- extern v2_pr_init_results * pcnfsd2_pr_init_2_svc();
- #define PCNFSD2_PR_START ((u_long)3)
- extern v2_pr_start_results * pcnfsd2_pr_start_2();
- extern v2_pr_start_results * pcnfsd2_pr_start_2_svc();
- #define PCNFSD2_PR_LIST ((u_long)4)
- extern v2_pr_list_results * pcnfsd2_pr_list_2();
- extern v2_pr_list_results * pcnfsd2_pr_list_2_svc();
- #define PCNFSD2_PR_QUEUE ((u_long)5)
- extern v2_pr_queue_results * pcnfsd2_pr_queue_2();
- extern v2_pr_queue_results * pcnfsd2_pr_queue_2_svc();
- #define PCNFSD2_PR_STATUS ((u_long)6)
- extern v2_pr_status_results * pcnfsd2_pr_status_2();
- extern v2_pr_status_results * pcnfsd2_pr_status_2_svc();
- #define PCNFSD2_PR_CANCEL ((u_long)7)
- extern v2_pr_cancel_results * pcnfsd2_pr_cancel_2();
- extern v2_pr_cancel_results * pcnfsd2_pr_cancel_2_svc();
- #define PCNFSD2_PR_ADMIN ((u_long)8)
- extern v2_pr_admin_results * pcnfsd2_pr_admin_2();
- extern v2_pr_admin_results * pcnfsd2_pr_admin_2_svc();
- #define PCNFSD2_PR_REQUEUE ((u_long)9)
- extern v2_pr_requeue_results * pcnfsd2_pr_requeue_2();
- extern v2_pr_requeue_results * pcnfsd2_pr_requeue_2_svc();
- #define PCNFSD2_PR_HOLD ((u_long)10)
- extern v2_pr_hold_results * pcnfsd2_pr_hold_2();
- extern v2_pr_hold_results * pcnfsd2_pr_hold_2_svc();
- #define PCNFSD2_PR_RELEASE ((u_long)11)
- extern v2_pr_release_results * pcnfsd2_pr_release_2();
- extern v2_pr_release_results * pcnfsd2_pr_release_2_svc();
- #define PCNFSD2_MAPID ((u_long)12)
- extern v2_mapid_results * pcnfsd2_mapid_2();
- extern v2_mapid_results * pcnfsd2_mapid_2_svc();
- #define PCNFSD2_AUTH ((u_long)13)
- extern v2_auth_results * pcnfsd2_auth_2();
- extern v2_auth_results * pcnfsd2_auth_2_svc();
- #define PCNFSD2_ALERT ((u_long)14)
- extern v2_alert_results * pcnfsd2_alert_2();
- extern v2_alert_results * pcnfsd2_alert_2_svc();
- #endif /* Old Style C */
-
- #endif /* !_PCNFSD_H_RPCGEN */
-