From 1d928a25082a52e7b0f6520f19ce611053cdabd2 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 7 Dec 2009 03:09:43 +0100 Subject: [PATCH] Clean up BIND upgrade. Remove some auto-generated files which were accidentally added. --- include/osreldate.h | 16 - include/rpc/rpcb_prot.h | 577 ------------ include/rpcsvc/bootparam_prot.h | 99 --- include/rpcsvc/crypt.h | 69 -- include/rpcsvc/key_prot.h | 199 ----- include/rpcsvc/klm_prot.h | 105 --- include/rpcsvc/mount.h | 159 ---- include/rpcsvc/nfs_prot.h | 1456 ------------------------------- include/rpcsvc/nis.h | 693 --------------- include/rpcsvc/nis_cache.h | 93 -- include/rpcsvc/nis_callback.h | 83 -- include/rpcsvc/nlm_prot.h | 451 ---------- include/rpcsvc/rex.h | 193 ---- include/rpcsvc/rnusers.h | 107 --- include/rpcsvc/rquota.h | 74 -- include/rpcsvc/rstat.h | 129 --- include/rpcsvc/rwall.h | 71 -- include/rpcsvc/sm_inter.h | 111 --- include/rpcsvc/spray.h | 58 -- include/rpcsvc/yp.h | 380 -------- include/rpcsvc/yppasswd.h | 53 -- include/rpcsvc/ypupdate_prot.h | 112 --- include/rpcsvc/ypxfrd.h | 108 --- include/vers.c | 11 - include/version | 1 - 25 files changed, 5408 deletions(-) delete mode 100644 include/osreldate.h delete mode 100644 include/rpc/rpcb_prot.h delete mode 100644 include/rpcsvc/bootparam_prot.h delete mode 100644 include/rpcsvc/crypt.h delete mode 100644 include/rpcsvc/key_prot.h delete mode 100644 include/rpcsvc/klm_prot.h delete mode 100644 include/rpcsvc/mount.h delete mode 100644 include/rpcsvc/nfs_prot.h delete mode 100644 include/rpcsvc/nis.h delete mode 100644 include/rpcsvc/nis_cache.h delete mode 100644 include/rpcsvc/nis_callback.h delete mode 100644 include/rpcsvc/nlm_prot.h delete mode 100644 include/rpcsvc/rex.h delete mode 100644 include/rpcsvc/rnusers.h delete mode 100644 include/rpcsvc/rquota.h delete mode 100644 include/rpcsvc/rstat.h delete mode 100644 include/rpcsvc/rwall.h delete mode 100644 include/rpcsvc/sm_inter.h delete mode 100644 include/rpcsvc/spray.h delete mode 100644 include/rpcsvc/yp.h delete mode 100644 include/rpcsvc/yppasswd.h delete mode 100644 include/rpcsvc/ypupdate_prot.h delete mode 100644 include/rpcsvc/ypxfrd.h delete mode 100644 include/vers.c delete mode 100644 include/version diff --git a/include/osreldate.h b/include/osreldate.h deleted file mode 100644 index 8a215f73c5..0000000000 --- a/include/osreldate.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) 2009 The DragonFly Project - * All rights reserved. - * - */ - -#ifdef _KERNEL -#error "osreldate.h must not be used in the kernel, use sys/param.h" -#else -#undef __DragonFly_version -#define __DragonFly_version 200500 -#ifdef __FreeBSD__ -#undef __FreeBSD_version -#define __FreeBSD_version 480101 -#endif -#endif diff --git a/include/rpc/rpcb_prot.h b/include/rpc/rpcb_prot.h deleted file mode 100644 index 9c318188fa..0000000000 --- a/include/rpc/rpcb_prot.h +++ /dev/null @@ -1,577 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _RPCB_PROT_H_RPCGEN -#define _RPCB_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $ - * - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* - * Copyright (c) 1988 by Sun Microsystems, Inc. - */ -/* from rpcb_prot.x */ - -/* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */ - -#ifndef _KERNEL - - -/* - * The following procedures are supported by the protocol in version 3: - * - * RPCBPROC_NULL() returns () - * takes nothing, returns nothing - * - * RPCBPROC_SET(rpcb) returns (bool_t) - * TRUE is success, FALSE is failure. Registers the tuple - * [prog, vers, address, owner, netid]. - * Finds out owner and netid information on its own. - * - * RPCBPROC_UNSET(rpcb) returns (bool_t) - * TRUE is success, FALSE is failure. Un-registers tuple - * [prog, vers, netid]. addresses is ignored. - * If netid is NULL, unregister all. - * - * RPCBPROC_GETADDR(rpcb) returns (string). - * 0 is failure. Otherwise returns the universal address where the - * triple [prog, vers, netid] is registered. Ignore address and owner. - * - * RPCBPROC_DUMP() RETURNS (rpcblist_ptr) - * used to dump the entire rpcbind maps - * - * RPCBPROC_CALLIT(rpcb_rmtcallargs) - * RETURNS (rpcb_rmtcallres); - * Calls the procedure on the remote machine. If it is not registered, - * this procedure is quiet; i.e. it does not return error information!!! - * This routine only passes null authentication parameters. - * It has no interface to xdr routines for RPCBPROC_CALLIT. - * - * RPCBPROC_GETTIME() returns (int). - * Gets the remote machines time - * - * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf) - * Returns the netbuf address from universal address. - * - * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string) - * Returns the universal address from netbuf address. - * - * END OF RPCBIND VERSION 3 PROCEDURES - */ -/* - * Except for RPCBPROC_CALLIT, the procedures above are carried over to - * rpcbind version 4. Those below are added or modified for version 4. - * NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER - * AS RPCBPROC_CALLIT. - * - * RPCBPROC_BCAST(rpcb_rmtcallargs) - * RETURNS (rpcb_rmtcallres); - * Calls the procedure on the remote machine. If it is not registered, - * this procedure IS quiet; i.e. it DOES NOT return error information!!! - * This routine should be used for broadcasting and nothing else. - * - * RPCBPROC_GETVERSADDR(rpcb) returns (string). - * 0 is failure. Otherwise returns the universal address where the - * triple [prog, vers, netid] is registered. Ignore address and owner. - * Same as RPCBPROC_GETADDR except that if the given version number - * is not available, the address is not returned. - * - * RPCBPROC_INDIRECT(rpcb_rmtcallargs) - * RETURNS (rpcb_rmtcallres); - * Calls the procedure on the remote machine. If it is not registered, - * this procedure is NOT quiet; i.e. it DOES return error information!!! - * as any normal application would expect. - * - * RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr). - * Same as RPCBPROC_GETADDR except that it returns a list of all the - * addresses registered for the combination (prog, vers) (for all - * transports). - * - * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers) - * Returns the statistics about the kind of requests received by rpcbind. - */ - -/* - * A mapping of (program, version, network ID) to address - */ - -struct rpcb { - rpcprog_t r_prog; - rpcvers_t r_vers; - char *r_netid; - char *r_addr; - char *r_owner; -}; -typedef struct rpcb rpcb; - -typedef rpcb RPCB; - - -/* - * A list of mappings - * - * Below are two definitions for the rpcblist structure. This is done because - * xdr_rpcblist() is specified to take a struct rpcblist **, rather than a - * struct rpcblist * that rpcgen would produce. One version of the rpcblist - * structure (actually called rp__list) is used with rpcgen, and the other is - * defined only in the header file for compatibility with the specified - * interface. - */ - -struct rp__list { - rpcb rpcb_map; - struct rp__list *rpcb_next; -}; -typedef struct rp__list rp__list; - -typedef rp__list *rpcblist_ptr; - -typedef struct rp__list rpcblist; -typedef struct rp__list RPCBLIST; - -#ifndef __cplusplus -struct rpcblist { - RPCB rpcb_map; - struct rpcblist *rpcb_next; -}; -#endif - -#ifdef __cplusplus -extern "C" { -#endif -extern bool_t xdr_rpcblist(XDR *, rpcblist**); -#ifdef __cplusplus -} -#endif - - -/* - * Arguments of remote calls - */ - -struct rpcb_rmtcallargs { - rpcprog_t prog; - rpcvers_t vers; - rpcproc_t proc; - struct { - u_int args_len; - char *args_val; - } args; -}; -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs; - -/* - * Client-side only representation of rpcb_rmtcallargs structure. - * - * The routine that XDRs the rpcb_rmtcallargs structure must deal with the - * opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to - * be passed the XDR routine that knows the args' structure. This routine - * doesn't need to go over-the-wire (and it wouldn't make sense anyway) since - * the application being called already knows the args structure. So we use a - * different "XDR" structure on the client side, r_rpcb_rmtcallargs, which - * includes the args' XDR routine. - */ -struct r_rpcb_rmtcallargs { - rpcprog_t prog; - rpcvers_t vers; - rpcproc_t proc; - struct { - u_int args_len; - char *args_val; - } args; - xdrproc_t xdr_args; /* encodes args */ -}; - - -/* - * Results of the remote call - */ - -struct rpcb_rmtcallres { - char *addr; - struct { - u_int results_len; - char *results_val; - } results; -}; -typedef struct rpcb_rmtcallres rpcb_rmtcallres; - -/* - * Client-side only representation of rpcb_rmtcallres structure. - */ -struct r_rpcb_rmtcallres { - char *addr; - struct { - u_int32_t results_len; - char *results_val; - } results; - xdrproc_t xdr_res; /* decodes results */ -}; - -/* - * rpcb_entry contains a merged address of a service on a particular - * transport, plus associated netconfig information. A list of rpcb_entrys - * is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used - * in r_nc_* fields. - */ - -struct rpcb_entry { - char *r_maddr; - char *r_nc_netid; - u_int r_nc_semantics; - char *r_nc_protofmly; - char *r_nc_proto; -}; -typedef struct rpcb_entry rpcb_entry; - -/* - * A list of addresses supported by a service. - */ - -struct rpcb_entry_list { - rpcb_entry rpcb_entry_map; - struct rpcb_entry_list *rpcb_entry_next; -}; -typedef struct rpcb_entry_list rpcb_entry_list; - -typedef rpcb_entry_list *rpcb_entry_list_ptr; - -/* - * rpcbind statistics - */ - -#define rpcb_highproc_2 RPCBPROC_CALLIT -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR -#define rpcb_highproc_4 RPCBPROC_GETSTAT -#define RPCBSTAT_HIGHPROC 13 -#define RPCBVERS_STAT 3 -#define RPCBVERS_4_STAT 2 -#define RPCBVERS_3_STAT 1 -#define RPCBVERS_2_STAT 0 - -/* Link list of all the stats about getport and getaddr */ - -struct rpcbs_addrlist { - rpcprog_t prog; - rpcvers_t vers; - int success; - int failure; - char *netid; - struct rpcbs_addrlist *next; -}; -typedef struct rpcbs_addrlist rpcbs_addrlist; - -/* Link list of all the stats about rmtcall */ - -struct rpcbs_rmtcalllist { - rpcprog_t prog; - rpcvers_t vers; - rpcproc_t proc; - int success; - int failure; - int indirect; - char *netid; - struct rpcbs_rmtcalllist *next; -}; -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist; - -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC]; - -typedef rpcbs_addrlist *rpcbs_addrlist_ptr; - -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr; - -struct rpcb_stat { - rpcbs_proc info; - int setinfo; - int unsetinfo; - rpcbs_addrlist_ptr addrinfo; - rpcbs_rmtcalllist_ptr rmtinfo; -}; -typedef struct rpcb_stat rpcb_stat; - -/* - * One rpcb_stat structure is returned for each version of rpcbind - * being monitored. - */ - -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT]; - -/* - * We don't define netbuf in RPCL, since it would contain structure member - * names that would conflict with the definition of struct netbuf in - * . Instead we merely declare the XDR routine xdr_netbuf() here, - * and implement it ourselves in rpc/rpcb_prot.c. - */ -#ifdef __cplusplus -extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *); - -#else /* __STDC__ */ -extern bool_t xdr_netbuf(XDR *, struct netbuf *); - -#endif - -#define RPCBVERS_3 RPCBVERS -#define RPCBVERS_4 RPCBVERS4 - -#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock" - -#else /* ndef _KERNEL */ -#ifdef __cplusplus -extern "C" { -#endif - -/* - * A mapping of (program, version, network ID) to address - */ -struct rpcb { - rpcprog_t r_prog; /* program number */ - rpcvers_t r_vers; /* version number */ - char *r_netid; /* network id */ - char *r_addr; /* universal address */ - char *r_owner; /* owner of the mapping */ -}; -typedef struct rpcb RPCB; - -/* - * A list of mappings - */ -struct rpcblist { - RPCB rpcb_map; - struct rpcblist *rpcb_next; -}; -typedef struct rpcblist RPCBLIST; -typedef struct rpcblist *rpcblist_ptr; - -/* - * Remote calls arguments - */ -struct rpcb_rmtcallargs { - rpcprog_t prog; /* program number */ - rpcvers_t vers; /* version number */ - rpcproc_t proc; /* procedure number */ - u_int32_t arglen; /* arg len */ - caddr_t args_ptr; /* argument */ - xdrproc_t xdr_args; /* XDR routine for argument */ -}; -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs; - -/* - * Remote calls results - */ -struct rpcb_rmtcallres { - char *addr_ptr; /* remote universal address */ - u_int32_t resultslen; /* results length */ - caddr_t results_ptr; /* results */ - xdrproc_t xdr_results; /* XDR routine for result */ -}; -typedef struct rpcb_rmtcallres rpcb_rmtcallres; - -struct rpcb_entry { - char *r_maddr; - char *r_nc_netid; - unsigned int r_nc_semantics; - char *r_nc_protofmly; - char *r_nc_proto; -}; -typedef struct rpcb_entry rpcb_entry; - -/* - * A list of addresses supported by a service. - */ - -struct rpcb_entry_list { - rpcb_entry rpcb_entry_map; - struct rpcb_entry_list *rpcb_entry_next; -}; -typedef struct rpcb_entry_list rpcb_entry_list; - -typedef rpcb_entry_list *rpcb_entry_list_ptr; - -/* - * rpcbind statistics - */ - -#define rpcb_highproc_2 RPCBPROC_CALLIT -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR -#define rpcb_highproc_4 RPCBPROC_GETSTAT -#define RPCBSTAT_HIGHPROC 13 -#define RPCBVERS_STAT 3 -#define RPCBVERS_4_STAT 2 -#define RPCBVERS_3_STAT 1 -#define RPCBVERS_2_STAT 0 - -/* Link list of all the stats about getport and getaddr */ - -struct rpcbs_addrlist { - rpcprog_t prog; - rpcvers_t vers; - int success; - int failure; - char *netid; - struct rpcbs_addrlist *next; -}; -typedef struct rpcbs_addrlist rpcbs_addrlist; - -/* Link list of all the stats about rmtcall */ - -struct rpcbs_rmtcalllist { - rpcprog_t prog; - rpcvers_t vers; - rpcproc_t proc; - int success; - int failure; - int indirect; - char *netid; - struct rpcbs_rmtcalllist *next; -}; -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist; - -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC]; - -typedef rpcbs_addrlist *rpcbs_addrlist_ptr; - -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr; - -struct rpcb_stat { - rpcbs_proc info; - int setinfo; - int unsetinfo; - rpcbs_addrlist_ptr addrinfo; - rpcbs_rmtcalllist_ptr rmtinfo; -}; -typedef struct rpcb_stat rpcb_stat; - -/* - * One rpcb_stat structure is returned for each version of rpcbind - * being monitored. - */ - -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT]; - -#ifdef __cplusplus -} -#endif - -#endif /* ndef _KERNEL */ - -#define RPCBPROG ((unsigned long)(100000)) -#define RPCBVERS ((unsigned long)(3)) - -extern void rpcbprog_3(struct svc_req *rqstp, SVCXPRT *transp); -#define RPCBPROC_SET ((unsigned long)(1)) -extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *); -extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *); -#define RPCBPROC_UNSET ((unsigned long)(2)) -extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *); -extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *); -#define RPCBPROC_GETADDR ((unsigned long)(3)) -extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *); -extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *); -#define RPCBPROC_DUMP ((unsigned long)(4)) -extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *); -extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *); -#define RPCBPROC_CALLIT ((unsigned long)(5)) -extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *); -extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *); -#define RPCBPROC_GETTIME ((unsigned long)(6)) -extern u_int * rpcbproc_gettime_3(void *, CLIENT *); -extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *); -#define RPCBPROC_UADDR2TADDR ((unsigned long)(7)) -extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *); -extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *); -#define RPCBPROC_TADDR2UADDR ((unsigned long)(8)) -extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *); -extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *); -extern int rpcbprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define RPCBVERS4 ((unsigned long)(4)) - -extern void rpcbprog_4(struct svc_req *rqstp, SVCXPRT *transp); -extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *); -extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *); -extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *); -extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *); -extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *); -extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *); -extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *); -extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *); -#define RPCBPROC_BCAST ((unsigned long)(RPCBPROC_CALLIT)) -extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *); -extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *); -extern u_int * rpcbproc_gettime_4(void *, CLIENT *); -extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *); -extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *); -extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *); -extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *); -extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *); -#define RPCBPROC_GETVERSADDR ((unsigned long)(9)) -extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *); -extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *); -#define RPCBPROC_INDIRECT ((unsigned long)(10)) -extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *); -extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *); -#define RPCBPROC_GETADDRLIST ((unsigned long)(11)) -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *); -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *); -#define RPCBPROC_GETSTAT ((unsigned long)(12)) -extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *); -extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *); -extern int rpcbprog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_rpcb(XDR *, rpcb*); -extern bool_t xdr_rp__list(XDR *, rp__list*); -extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*); -extern bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*); -extern bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*); -extern bool_t xdr_rpcb_entry(XDR *, rpcb_entry*); -extern bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*); -extern bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*); -extern bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*); -extern bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*); -extern bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc); -extern bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*); -extern bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*); -extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*); -extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers); - -#ifdef __cplusplus -} -#endif - -#endif /* !_RPCB_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/bootparam_prot.h b/include/rpcsvc/bootparam_prot.h deleted file mode 100644 index 7ddad2cbcc..0000000000 --- a/include/rpcsvc/bootparam_prot.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _BOOTPARAM_PROT_H_RPCGEN -#define _BOOTPARAM_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include -#include -#include -#define MAX_MACHINE_NAME 255 -#define MAX_PATH_LEN 1024 -#define MAX_FILEID 32 -#define IP_ADDR_TYPE 1 - -typedef char *bp_machine_name_t; - -typedef char *bp_path_t; - -typedef char *bp_fileid_t; - -struct ip_addr_t { - char net; - char host; - char lh; - char impno; -}; -typedef struct ip_addr_t ip_addr_t; - -struct bp_address { - int address_type; - union { - ip_addr_t ip_addr; - } bp_address_u; -}; -typedef struct bp_address bp_address; - -struct bp_whoami_arg { - bp_address client_address; -}; -typedef struct bp_whoami_arg bp_whoami_arg; - -struct bp_whoami_res { - bp_machine_name_t client_name; - bp_machine_name_t domain_name; - bp_address router_address; -}; -typedef struct bp_whoami_res bp_whoami_res; - -struct bp_getfile_arg { - bp_machine_name_t client_name; - bp_fileid_t file_id; -}; -typedef struct bp_getfile_arg bp_getfile_arg; - -struct bp_getfile_res { - bp_machine_name_t server_name; - bp_address server_address; - bp_path_t server_path; -}; -typedef struct bp_getfile_res bp_getfile_res; - -#define BOOTPARAMPROG ((unsigned long)(100026)) -#define BOOTPARAMVERS ((unsigned long)(1)) - -extern void bootparamprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define BOOTPARAMPROC_WHOAMI ((unsigned long)(1)) -extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *); -extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *); -#define BOOTPARAMPROC_GETFILE ((unsigned long)(2)) -extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *); -extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *); -extern int bootparamprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_bp_machine_name_t(XDR *, bp_machine_name_t*); -extern bool_t xdr_bp_path_t(XDR *, bp_path_t*); -extern bool_t xdr_bp_fileid_t(XDR *, bp_fileid_t*); -extern bool_t xdr_ip_addr_t(XDR *, ip_addr_t*); -extern bool_t xdr_bp_address(XDR *, bp_address*); -extern bool_t xdr_bp_whoami_arg(XDR *, bp_whoami_arg*); -extern bool_t xdr_bp_whoami_res(XDR *, bp_whoami_res*); -extern bool_t xdr_bp_getfile_arg(XDR *, bp_getfile_arg*); -extern bool_t xdr_bp_getfile_res(XDR *, bp_getfile_res*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_BOOTPARAM_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/crypt.h b/include/rpcsvc/crypt.h deleted file mode 100644 index 6ab0078edf..0000000000 --- a/include/rpcsvc/crypt.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _CRYPT_H_RPCGEN -#define _CRYPT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -enum des_dir { - ENCRYPT_DES = 0, - DECRYPT_DES = 1 -}; -typedef enum des_dir des_dir; - -enum des_mode { - CBC_DES = 0, - ECB_DES = 1 -}; -typedef enum des_mode des_mode; - -struct desargs { - u_char des_key[8]; - des_dir des_dir; - des_mode des_mode; - u_char des_ivec[8]; - struct { - u_int desbuf_len; - char *desbuf_val; - } desbuf; -}; -typedef struct desargs desargs; - -struct desresp { - struct { - u_int desbuf_len; - char *desbuf_val; - } desbuf; - u_char des_ivec[8]; - int stat; -}; -typedef struct desresp desresp; - -#define CRYPT_PROG ((unsigned long)(600100029)) -#define CRYPT_VERS ((unsigned long)(1)) - -extern void crypt_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define DES_CRYPT ((unsigned long)(1)) -extern desresp * des_crypt_1(desargs *, CLIENT *); -extern desresp * des_crypt_1_svc(desargs *, struct svc_req *); -extern int crypt_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_des_dir(XDR *, des_dir*); -extern bool_t xdr_des_mode(XDR *, des_mode*); -extern bool_t xdr_desargs(XDR *, desargs*); -extern bool_t xdr_desresp(XDR *, desresp*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_CRYPT_H_RPCGEN */ diff --git a/include/rpcsvc/key_prot.h b/include/rpcsvc/key_prot.h deleted file mode 100644 index 5711eb96ea..0000000000 --- a/include/rpcsvc/key_prot.h +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _KEY_PROT_H_RPCGEN -#define _KEY_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * @(#)key_prot.x 1.7 94/04/29 SMI - * $DragonFly: src/include/rpcsvc/key_prot.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ - -/* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */ - -/* - * Compiled from key_prot.x using rpcgen. - * DO NOT EDIT THIS FILE! - * This is NOT source code! - */ -#define PROOT 3 -#define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b" -#define HEXKEYBYTES 48 -#define KEYSIZE 192 -#define KEYBYTES 24 -#define KEYCHECKSUMSIZE 16 - -enum keystatus { - KEY_SUCCESS = 0, - KEY_NOSECRET = 1, - KEY_UNKNOWN = 2, - KEY_SYSTEMERR = 3 -}; -typedef enum keystatus keystatus; - -typedef char keybuf[HEXKEYBYTES]; - -typedef char *netnamestr; - -struct cryptkeyarg { - netnamestr remotename; - des_block deskey; -}; -typedef struct cryptkeyarg cryptkeyarg; - -struct cryptkeyarg2 { - netnamestr remotename; - netobj remotekey; - des_block deskey; -}; -typedef struct cryptkeyarg2 cryptkeyarg2; - -struct cryptkeyres { - keystatus status; - union { - des_block deskey; - } cryptkeyres_u; -}; -typedef struct cryptkeyres cryptkeyres; -#define MAXGIDS 16 - -struct unixcred { - u_int uid; - u_int gid; - struct { - u_int gids_len; - u_int *gids_val; - } gids; -}; -typedef struct unixcred unixcred; - -struct getcredres { - keystatus status; - union { - unixcred cred; - } getcredres_u; -}; -typedef struct getcredres getcredres; - -struct key_netstarg { - keybuf st_priv_key; - keybuf st_pub_key; - netnamestr st_netname; -}; -typedef struct key_netstarg key_netstarg; - -struct key_netstres { - keystatus status; - union { - key_netstarg knet; - } key_netstres_u; -}; -typedef struct key_netstres key_netstres; - -#ifndef opaque -#define opaque char -#endif - - -#define KEY_PROG ((unsigned long)(100029)) -#define KEY_VERS ((unsigned long)(1)) - -extern void key_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define KEY_SET ((unsigned long)(1)) -extern keystatus * key_set_1(char *, CLIENT *); -extern keystatus * key_set_1_svc(char *, struct svc_req *); -#define KEY_ENCRYPT ((unsigned long)(2)) -extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *); -extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *); -#define KEY_DECRYPT ((unsigned long)(3)) -extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *); -extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *); -#define KEY_GEN ((unsigned long)(4)) -extern des_block * key_gen_1(void *, CLIENT *); -extern des_block * key_gen_1_svc(void *, struct svc_req *); -#define KEY_GETCRED ((unsigned long)(5)) -extern getcredres * key_getcred_1(netnamestr *, CLIENT *); -extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *); -extern int key_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define KEY_VERS2 ((unsigned long)(2)) - -extern void key_prog_2(struct svc_req *rqstp, SVCXPRT *transp); -extern keystatus * key_set_2(char *, CLIENT *); -extern keystatus * key_set_2_svc(char *, struct svc_req *); -extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *); -extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *); -extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *); -extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *); -extern des_block * key_gen_2(void *, CLIENT *); -extern des_block * key_gen_2_svc(void *, struct svc_req *); -extern getcredres * key_getcred_2(netnamestr *, CLIENT *); -extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *); -#define KEY_ENCRYPT_PK ((unsigned long)(6)) -extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *); -extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); -#define KEY_DECRYPT_PK ((unsigned long)(7)) -extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *); -extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *); -#define KEY_NET_PUT ((unsigned long)(8)) -extern keystatus * key_net_put_2(key_netstarg *, CLIENT *); -extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *); -#define KEY_NET_GET ((unsigned long)(9)) -extern key_netstres * key_net_get_2(void *, CLIENT *); -extern key_netstres * key_net_get_2_svc(void *, struct svc_req *); -#define KEY_GET_CONV ((unsigned long)(10)) -extern cryptkeyres * key_get_conv_2(char *, CLIENT *); -extern cryptkeyres * key_get_conv_2_svc(char *, struct svc_req *); -extern int key_prog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_keystatus(XDR *, keystatus*); -extern bool_t xdr_keybuf(XDR *, keybuf); -extern bool_t xdr_netnamestr(XDR *, netnamestr*); -extern bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*); -extern bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*); -extern bool_t xdr_cryptkeyres(XDR *, cryptkeyres*); -extern bool_t xdr_unixcred(XDR *, unixcred*); -extern bool_t xdr_getcredres(XDR *, getcredres*); -extern bool_t xdr_key_netstarg(XDR *, key_netstarg*); -extern bool_t xdr_key_netstres(XDR *, key_netstres*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_KEY_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/klm_prot.h b/include/rpcsvc/klm_prot.h deleted file mode 100644 index 0d60bb2033..0000000000 --- a/include/rpcsvc/klm_prot.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _KLM_PROT_H_RPCGEN -#define _KLM_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define LM_MAXSTRLEN 1024 - -enum klm_stats { - klm_granted = 0, - klm_denied = 1, - klm_denied_nolocks = 2, - klm_working = 3 -}; -typedef enum klm_stats klm_stats; - -struct klm_lock { - char *server_name; - netobj fh; - int pid; - u_int l_offset; - u_int l_len; -}; -typedef struct klm_lock klm_lock; - -struct klm_holder { - bool_t exclusive; - int svid; - u_int l_offset; - u_int l_len; -}; -typedef struct klm_holder klm_holder; - -struct klm_stat { - klm_stats stat; -}; -typedef struct klm_stat klm_stat; - -struct klm_testrply { - klm_stats stat; - union { - struct klm_holder holder; - } klm_testrply_u; -}; -typedef struct klm_testrply klm_testrply; - -struct klm_lockargs { - bool_t block; - bool_t exclusive; - struct klm_lock alock; -}; -typedef struct klm_lockargs klm_lockargs; - -struct klm_testargs { - bool_t exclusive; - struct klm_lock alock; -}; -typedef struct klm_testargs klm_testargs; - -struct klm_unlockargs { - struct klm_lock alock; -}; -typedef struct klm_unlockargs klm_unlockargs; - -#define KLM_PROG ((unsigned long)(100020)) -#define KLM_VERS ((unsigned long)(1)) - -extern void klm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define KLM_TEST ((unsigned long)(1)) -extern klm_testrply * klm_test_1(struct klm_testargs *, CLIENT *); -extern klm_testrply * klm_test_1_svc(struct klm_testargs *, struct svc_req *); -#define KLM_LOCK ((unsigned long)(2)) -extern klm_stat * klm_lock_1(struct klm_lockargs *, CLIENT *); -extern klm_stat * klm_lock_1_svc(struct klm_lockargs *, struct svc_req *); -#define KLM_CANCEL ((unsigned long)(3)) -extern klm_stat * klm_cancel_1(struct klm_lockargs *, CLIENT *); -extern klm_stat * klm_cancel_1_svc(struct klm_lockargs *, struct svc_req *); -#define KLM_UNLOCK ((unsigned long)(4)) -extern klm_stat * klm_unlock_1(struct klm_unlockargs *, CLIENT *); -extern klm_stat * klm_unlock_1_svc(struct klm_unlockargs *, struct svc_req *); -extern int klm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_klm_stats(XDR *, klm_stats*); -extern bool_t xdr_klm_lock(XDR *, klm_lock*); -extern bool_t xdr_klm_holder(XDR *, klm_holder*); -extern bool_t xdr_klm_stat(XDR *, klm_stat*); -extern bool_t xdr_klm_testrply(XDR *, klm_testrply*); -extern bool_t xdr_klm_lockargs(XDR *, klm_lockargs*); -extern bool_t xdr_klm_testargs(XDR *, klm_testargs*); -extern bool_t xdr_klm_unlockargs(XDR *, klm_unlockargs*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_KLM_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/mount.h b/include/rpcsvc/mount.h deleted file mode 100644 index 153a892471..0000000000 --- a/include/rpcsvc/mount.h +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _MOUNT_H_RPCGEN -#define _MOUNT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define MNTPATHLEN 1024 -#define MNTNAMLEN 255 -#define FHSIZE 32 -#define FHSIZE3 64 - -typedef char fhandle[FHSIZE]; - -typedef struct { - u_int fhandle3_len; - char *fhandle3_val; -} fhandle3; - -struct fhstatus { - u_int fhs_status; - union { - fhandle fhs_fhandle; - } fhstatus_u; -}; -typedef struct fhstatus fhstatus; - -enum mountstat3 { - MNT3_OK = 0, - MNT3ERR_PERM = 1, - MNT3ERR_NOENT = 2, - MNT3ERR_IO = 5, - MNT3ERR_ACCES = 13, - MNT3ERR_NOTDIR = 20, - MNT3ERR_INVAL = 22, - MNT3ERR_NAMETOOLONG = 63, - MNT3ERR_NOTSUPP = 10004, - MNT3ERR_SERVERFAULT = 10006 -}; -typedef enum mountstat3 mountstat3; - -struct mountres3_ok { - fhandle3 fhandle; - struct { - u_int auth_flavors_len; - int *auth_flavors_val; - } auth_flavors; -}; -typedef struct mountres3_ok mountres3_ok; - -struct mountres3 { - mountstat3 fhs_status; - union { - mountres3_ok mountinfo; - } mountres3_u; -}; -typedef struct mountres3 mountres3; - -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; - -#define MOUNTPROG ((unsigned long)(100005)) -#define MOUNTVERS ((unsigned long)(1)) - -extern void mountprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define MOUNTPROC_NULL ((unsigned long)(0)) -extern void * mountproc_null_1(void *, CLIENT *); -extern void * mountproc_null_1_svc(void *, struct svc_req *); -#define MOUNTPROC_MNT ((unsigned long)(1)) -extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); -extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); -#define MOUNTPROC_DUMP ((unsigned long)(2)) -extern mountlist * mountproc_dump_1(void *, CLIENT *); -extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); -#define MOUNTPROC_UMNT ((unsigned long)(3)) -extern void * mountproc_umnt_1(dirpath *, CLIENT *); -extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); -#define MOUNTPROC_UMNTALL ((unsigned long)(4)) -extern void * mountproc_umntall_1(void *, CLIENT *); -extern void * mountproc_umntall_1_svc(void *, struct svc_req *); -#define MOUNTPROC_EXPORT ((unsigned long)(5)) -extern exports * mountproc_export_1(void *, CLIENT *); -extern exports * mountproc_export_1_svc(void *, struct svc_req *); -#define MOUNTPROC_EXPORTALL ((unsigned long)(6)) -extern exports * mountproc_exportall_1(void *, CLIENT *); -extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); -extern int mountprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define MOUNTVERS3 ((unsigned long)(3)) - -extern void mountprog_3(struct svc_req *rqstp, SVCXPRT *transp); -extern void * mountproc_null_3(void *, CLIENT *); -extern void * mountproc_null_3_svc(void *, struct svc_req *); -extern mountres3 * mountproc_mnt_3(dirpath *, CLIENT *); -extern mountres3 * mountproc_mnt_3_svc(dirpath *, struct svc_req *); -extern mountlist * mountproc_dump_3(void *, CLIENT *); -extern mountlist * mountproc_dump_3_svc(void *, struct svc_req *); -extern void * mountproc_umnt_3(dirpath *, CLIENT *); -extern void * mountproc_umnt_3_svc(dirpath *, struct svc_req *); -extern void * mountproc_umntall_3(void *, CLIENT *); -extern void * mountproc_umntall_3_svc(void *, struct svc_req *); -extern exports * mountproc_export_3(void *, CLIENT *); -extern exports * mountproc_export_3_svc(void *, struct svc_req *); -extern int mountprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_fhandle(XDR *, fhandle); -extern bool_t xdr_fhandle3(XDR *, fhandle3*); -extern bool_t xdr_fhstatus(XDR *, fhstatus*); -extern bool_t xdr_mountstat3(XDR *, mountstat3*); -extern bool_t xdr_mountres3_ok(XDR *, mountres3_ok*); -extern bool_t xdr_mountres3(XDR *, mountres3*); -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*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_MOUNT_H_RPCGEN */ diff --git a/include/rpcsvc/nfs_prot.h b/include/rpcsvc/nfs_prot.h deleted file mode 100644 index 18da79a579..0000000000 --- a/include/rpcsvc/nfs_prot.h +++ /dev/null @@ -1,1456 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _NFS_PROT_H_RPCGEN -#define _NFS_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define NFS_PORT 2049 -#define NFS_MAXDATA 8192 -#define NFS_MAXPATHLEN 1024 -#define NFS_MAXNAMLEN 255 -#define NFS_FHSIZE 32 -#define NFS_COOKIESIZE 4 -#define NFS_FIFO_DEV -1 -#define NFSMODE_FMT 0170000 -#define NFSMODE_DIR 0040000 -#define NFSMODE_CHR 0020000 -#define NFSMODE_BLK 0060000 -#define NFSMODE_REG 0100000 -#define NFSMODE_LNK 0120000 -#define NFSMODE_SOCK 0140000 -#define NFSMODE_FIFO 0010000 - -enum nfsstat { - NFS_OK = 0, - NFSERR_PERM = 1, - NFSERR_NOENT = 2, - NFSERR_IO = 5, - NFSERR_NXIO = 6, - NFSERR_ACCES = 13, - NFSERR_EXIST = 17, - NFSERR_NODEV = 19, - NFSERR_NOTDIR = 20, - NFSERR_ISDIR = 21, - NFSERR_FBIG = 27, - NFSERR_NOSPC = 28, - NFSERR_ROFS = 30, - NFSERR_NAMETOOLONG = 63, - NFSERR_NOTEMPTY = 66, - NFSERR_DQUOT = 69, - NFSERR_STALE = 70, - NFSERR_WFLUSH = 99 -}; -typedef enum nfsstat nfsstat; - -enum ftype { - NFNON = 0, - NFREG = 1, - NFDIR = 2, - NFBLK = 3, - NFCHR = 4, - NFLNK = 5, - NFSOCK = 6, - NFBAD = 7, - NFFIFO = 8 -}; -typedef enum ftype ftype; - -struct nfs_fh { - char data[NFS_FHSIZE]; -}; -typedef struct nfs_fh nfs_fh; - -struct nfstime { - u_int seconds; - u_int useconds; -}; -typedef struct nfstime nfstime; - -struct fattr { - ftype type; - u_int mode; - u_int nlink; - u_int uid; - u_int gid; - u_int size; - u_int blocksize; - u_int rdev; - u_int blocks; - u_int fsid; - u_int fileid; - nfstime atime; - nfstime mtime; - nfstime ctime; -}; -typedef struct fattr fattr; - -struct sattr { - u_int mode; - u_int uid; - u_int gid; - u_int size; - nfstime atime; - nfstime mtime; -}; -typedef struct sattr sattr; - -typedef char *filename; - -typedef char *nfspath; - -struct attrstat { - nfsstat status; - union { - fattr attributes; - } attrstat_u; -}; -typedef struct attrstat attrstat; - -struct sattrargs { - nfs_fh file; - sattr attributes; -}; -typedef struct sattrargs sattrargs; - -struct diropargs { - nfs_fh dir; - filename name; -}; -typedef struct diropargs diropargs; - -struct diropokres { - nfs_fh file; - fattr attributes; -}; -typedef struct diropokres diropokres; - -struct diropres { - nfsstat status; - union { - diropokres diropres; - } diropres_u; -}; -typedef struct diropres diropres; - -struct readlinkres { - nfsstat status; - union { - nfspath data; - } readlinkres_u; -}; -typedef struct readlinkres readlinkres; - -struct readargs { - nfs_fh file; - u_int offset; - u_int count; - u_int totalcount; -}; -typedef struct readargs readargs; - -struct readokres { - fattr attributes; - struct { - u_int data_len; - char *data_val; - } data; -}; -typedef struct readokres readokres; - -struct readres { - nfsstat status; - union { - readokres reply; - } readres_u; -}; -typedef struct readres readres; - -struct writeargs { - nfs_fh file; - u_int beginoffset; - u_int offset; - u_int totalcount; - struct { - u_int data_len; - char *data_val; - } data; -}; -typedef struct writeargs writeargs; - -struct createargs { - diropargs where; - sattr attributes; -}; -typedef struct createargs createargs; - -struct renameargs { - diropargs from; - diropargs to; -}; -typedef struct renameargs renameargs; - -struct linkargs { - nfs_fh from; - diropargs to; -}; -typedef struct linkargs linkargs; - -struct symlinkargs { - diropargs from; - nfspath to; - sattr attributes; -}; -typedef struct symlinkargs symlinkargs; - -typedef char nfscookie[NFS_COOKIESIZE]; - -struct readdirargs { - nfs_fh dir; - nfscookie cookie; - u_int count; -}; -typedef struct readdirargs readdirargs; - -struct entry { - u_int fileid; - filename name; - nfscookie cookie; - struct entry *nextentry; -}; -typedef struct entry entry; - -struct dirlist { - entry *entries; - bool_t eof; -}; -typedef struct dirlist dirlist; - -struct readdirres { - nfsstat status; - union { - dirlist reply; - } readdirres_u; -}; -typedef struct readdirres readdirres; - -struct statfsokres { - u_int tsize; - u_int bsize; - u_int blocks; - u_int bfree; - u_int bavail; -}; -typedef struct statfsokres statfsokres; - -struct statfsres { - nfsstat status; - union { - statfsokres reply; - } statfsres_u; -}; -typedef struct statfsres statfsres; -#define NFS3_FHSIZE 64 -#define NFS3_COOKIEVERFSIZE 8 -#define NFS3_CREATEVERFSIZE 8 -#define NFS3_WRITEVERFSIZE 8 - -typedef u_int64_t uint64; - -typedef int64_t int64; - -typedef u_long uint32; - -typedef long int32; - -typedef char *filename3; - -typedef char *nfspath3; - -typedef uint64 fileid3; - -typedef uint64 cookie3; - -typedef char cookieverf3[NFS3_COOKIEVERFSIZE]; - -typedef char createverf3[NFS3_CREATEVERFSIZE]; - -typedef char writeverf3[NFS3_WRITEVERFSIZE]; - -typedef uint32 uid3; - -typedef uint32 gid3; - -typedef uint64 size3; - -typedef uint64 offset3; - -typedef uint32 mode3; - -typedef uint32 count3; - -enum nfsstat3 { - NFS3_OK = 0, - NFS3ERR_PERM = 1, - NFS3ERR_NOENT = 2, - NFS3ERR_IO = 5, - NFS3ERR_NXIO = 6, - NFS3ERR_ACCES = 13, - NFS3ERR_EXIST = 17, - NFS3ERR_XDEV = 18, - NFS3ERR_NODEV = 19, - NFS3ERR_NOTDIR = 20, - NFS3ERR_ISDIR = 21, - NFS3ERR_INVAL = 22, - NFS3ERR_FBIG = 27, - NFS3ERR_NOSPC = 28, - NFS3ERR_ROFS = 30, - NFS3ERR_MLINK = 31, - NFS3ERR_NAMETOOLONG = 63, - NFS3ERR_NOTEMPTY = 66, - NFS3ERR_DQUOT = 69, - NFS3ERR_STALE = 70, - NFS3ERR_REMOTE = 71, - NFS3ERR_BADHANDLE = 10001, - NFS3ERR_NOT_SYNC = 10002, - NFS3ERR_BAD_COOKIE = 10003, - NFS3ERR_NOTSUPP = 10004, - NFS3ERR_TOOSMALL = 10005, - NFS3ERR_SERVERFAULT = 10006, - NFS3ERR_BADTYPE = 10007, - NFS3ERR_JUKEBOX = 10008 -}; -typedef enum nfsstat3 nfsstat3; - -enum ftype3 { - NF3REG = 1, - NF3DIR = 2, - NF3BLK = 3, - NF3CHR = 4, - NF3LNK = 5, - NF3SOCK = 6, - NF3FIFO = 7 -}; -typedef enum ftype3 ftype3; - -struct specdata3 { - uint32 specdata1; - uint32 specdata2; -}; -typedef struct specdata3 specdata3; - -struct nfs_fh3 { - struct { - u_int data_len; - char *data_val; - } data; -}; -typedef struct nfs_fh3 nfs_fh3; - -struct nfstime3 { - uint32 seconds; - uint32 nseconds; -}; -typedef struct nfstime3 nfstime3; - -struct fattr3 { - ftype3 type; - mode3 mode; - uint32 nlink; - uid3 uid; - gid3 gid; - size3 size; - size3 used; - specdata3 rdev; - uint64 fsid; - fileid3 fileid; - nfstime3 atime; - nfstime3 mtime; - nfstime3 ctime; -}; -typedef struct fattr3 fattr3; - -struct post_op_attr { - bool_t attributes_follow; - union { - fattr3 attributes; - } post_op_attr_u; -}; -typedef struct post_op_attr post_op_attr; - -struct wcc_attr { - size3 size; - nfstime3 mtime; - nfstime3 ctime; -}; -typedef struct wcc_attr wcc_attr; - -struct pre_op_attr { - bool_t attributes_follow; - union { - wcc_attr attributes; - } pre_op_attr_u; -}; -typedef struct pre_op_attr pre_op_attr; - -struct wcc_data { - pre_op_attr before; - post_op_attr after; -}; -typedef struct wcc_data wcc_data; - -struct post_op_fh3 { - bool_t handle_follows; - union { - nfs_fh3 handle; - } post_op_fh3_u; -}; -typedef struct post_op_fh3 post_op_fh3; - -enum time_how { - DONT_CHANGE = 0, - SET_TO_SERVER_TIME = 1, - SET_TO_CLIENT_TIME = 2 -}; -typedef enum time_how time_how; - -struct set_mode3 { - bool_t set_it; - union { - mode3 mode; - } set_mode3_u; -}; -typedef struct set_mode3 set_mode3; - -struct set_uid3 { - bool_t set_it; - union { - uid3 uid; - } set_uid3_u; -}; -typedef struct set_uid3 set_uid3; - -struct set_gid3 { - bool_t set_it; - union { - gid3 gid; - } set_gid3_u; -}; -typedef struct set_gid3 set_gid3; - -struct set_size3 { - bool_t set_it; - union { - size3 size; - } set_size3_u; -}; -typedef struct set_size3 set_size3; - -struct set_atime { - time_how set_it; - union { - nfstime3 atime; - } set_atime_u; -}; -typedef struct set_atime set_atime; - -struct set_mtime { - time_how set_it; - union { - nfstime3 mtime; - } set_mtime_u; -}; -typedef struct set_mtime set_mtime; - -struct sattr3 { - set_mode3 mode; - set_uid3 uid; - set_gid3 gid; - set_size3 size; - set_atime atime; - set_mtime mtime; -}; -typedef struct sattr3 sattr3; - -struct diropargs3 { - nfs_fh3 dir; - filename3 name; -}; -typedef struct diropargs3 diropargs3; - -struct GETATTR3args { - nfs_fh3 object; -}; -typedef struct GETATTR3args GETATTR3args; - -struct GETATTR3resok { - fattr3 obj_attributes; -}; -typedef struct GETATTR3resok GETATTR3resok; - -struct GETATTR3res { - nfsstat3 status; - union { - GETATTR3resok resok; - } GETATTR3res_u; -}; -typedef struct GETATTR3res GETATTR3res; - -struct sattrguard3 { - bool_t check; - union { - nfstime3 obj_ctime; - } sattrguard3_u; -}; -typedef struct sattrguard3 sattrguard3; - -struct SETATTR3args { - nfs_fh3 object; - sattr3 new_attributes; - sattrguard3 guard; -}; -typedef struct SETATTR3args SETATTR3args; - -struct SETATTR3resok { - wcc_data obj_wcc; -}; -typedef struct SETATTR3resok SETATTR3resok; - -struct SETATTR3resfail { - wcc_data obj_wcc; -}; -typedef struct SETATTR3resfail SETATTR3resfail; - -struct SETATTR3res { - nfsstat3 status; - union { - SETATTR3resok resok; - SETATTR3resfail resfail; - } SETATTR3res_u; -}; -typedef struct SETATTR3res SETATTR3res; - -struct LOOKUP3args { - diropargs3 what; -}; -typedef struct LOOKUP3args LOOKUP3args; - -struct LOOKUP3resok { - nfs_fh3 object; - post_op_attr obj_attributes; - post_op_attr dir_attributes; -}; -typedef struct LOOKUP3resok LOOKUP3resok; - -struct LOOKUP3resfail { - post_op_attr dir_attributes; -}; -typedef struct LOOKUP3resfail LOOKUP3resfail; - -struct LOOKUP3res { - nfsstat3 status; - union { - LOOKUP3resok resok; - LOOKUP3resfail resfail; - } LOOKUP3res_u; -}; -typedef struct LOOKUP3res LOOKUP3res; -#define ACCESS3_READ 0x0001 -#define ACCESS3_LOOKUP 0x0002 -#define ACCESS3_MODIFY 0x0004 -#define ACCESS3_EXTEND 0x0008 -#define ACCESS3_DELETE 0x0010 -#define ACCESS3_EXECUTE 0x0020 - -struct ACCESS3args { - nfs_fh3 object; - uint32 access; -}; -typedef struct ACCESS3args ACCESS3args; - -struct ACCESS3resok { - post_op_attr obj_attributes; - uint32 access; -}; -typedef struct ACCESS3resok ACCESS3resok; - -struct ACCESS3resfail { - post_op_attr obj_attributes; -}; -typedef struct ACCESS3resfail ACCESS3resfail; - -struct ACCESS3res { - nfsstat3 status; - union { - ACCESS3resok resok; - ACCESS3resfail resfail; - } ACCESS3res_u; -}; -typedef struct ACCESS3res ACCESS3res; - -struct READLINK3args { - nfs_fh3 symlink; -}; -typedef struct READLINK3args READLINK3args; - -struct READLINK3resok { - post_op_attr symlink_attributes; - nfspath3 data; -}; -typedef struct READLINK3resok READLINK3resok; - -struct READLINK3resfail { - post_op_attr symlink_attributes; -}; -typedef struct READLINK3resfail READLINK3resfail; - -struct READLINK3res { - nfsstat3 status; - union { - READLINK3resok resok; - READLINK3resfail resfail; - } READLINK3res_u; -}; -typedef struct READLINK3res READLINK3res; - -struct READ3args { - nfs_fh3 file; - offset3 offset; - count3 count; -}; -typedef struct READ3args READ3args; - -struct READ3resok { - post_op_attr file_attributes; - count3 count; - bool_t eof; - struct { - u_int data_len; - char *data_val; - } data; -}; -typedef struct READ3resok READ3resok; - -struct READ3resfail { - post_op_attr file_attributes; -}; -typedef struct READ3resfail READ3resfail; - -struct READ3res { - nfsstat3 status; - union { - READ3resok resok; - READ3resfail resfail; - } READ3res_u; -}; -typedef struct READ3res READ3res; - -enum stable_how { - UNSTABLE = 0, - DATA_SYNC = 1, - FILE_SYNC = 2 -}; -typedef enum stable_how stable_how; - -struct WRITE3args { - nfs_fh3 file; - offset3 offset; - count3 count; - stable_how stable; - struct { - u_int data_len; - char *data_val; - } data; -}; -typedef struct WRITE3args WRITE3args; - -struct WRITE3resok { - wcc_data file_wcc; - count3 count; - stable_how committed; - writeverf3 verf; -}; -typedef struct WRITE3resok WRITE3resok; - -struct WRITE3resfail { - wcc_data file_wcc; -}; -typedef struct WRITE3resfail WRITE3resfail; - -struct WRITE3res { - nfsstat3 status; - union { - WRITE3resok resok; - WRITE3resfail resfail; - } WRITE3res_u; -}; -typedef struct WRITE3res WRITE3res; - -enum createmode3 { - UNCHECKED = 0, - GUARDED = 1, - EXCLUSIVE = 2 -}; -typedef enum createmode3 createmode3; - -struct createhow3 { - createmode3 mode; - union { - sattr3 obj_attributes; - createverf3 verf; - } createhow3_u; -}; -typedef struct createhow3 createhow3; - -struct CREATE3args { - diropargs3 where; - createhow3 how; -}; -typedef struct CREATE3args CREATE3args; - -struct CREATE3resok { - post_op_fh3 obj; - post_op_attr obj_attributes; - wcc_data dir_wcc; -}; -typedef struct CREATE3resok CREATE3resok; - -struct CREATE3resfail { - wcc_data dir_wcc; -}; -typedef struct CREATE3resfail CREATE3resfail; - -struct CREATE3res { - nfsstat3 status; - union { - CREATE3resok resok; - CREATE3resfail resfail; - } CREATE3res_u; -}; -typedef struct CREATE3res CREATE3res; - -struct MKDIR3args { - diropargs3 where; - sattr3 attributes; -}; -typedef struct MKDIR3args MKDIR3args; - -struct MKDIR3resok { - post_op_fh3 obj; - post_op_attr obj_attributes; - wcc_data dir_wcc; -}; -typedef struct MKDIR3resok MKDIR3resok; - -struct MKDIR3resfail { - wcc_data dir_wcc; -}; -typedef struct MKDIR3resfail MKDIR3resfail; - -struct MKDIR3res { - nfsstat3 status; - union { - MKDIR3resok resok; - MKDIR3resfail resfail; - } MKDIR3res_u; -}; -typedef struct MKDIR3res MKDIR3res; - -struct symlinkdata3 { - sattr3 symlink_attributes; - nfspath3 symlink_data; -}; -typedef struct symlinkdata3 symlinkdata3; - -struct SYMLINK3args { - diropargs3 where; - symlinkdata3 symlink; -}; -typedef struct SYMLINK3args SYMLINK3args; - -struct SYMLINK3resok { - post_op_fh3 obj; - post_op_attr obj_attributes; - wcc_data dir_wcc; -}; -typedef struct SYMLINK3resok SYMLINK3resok; - -struct SYMLINK3resfail { - wcc_data dir_wcc; -}; -typedef struct SYMLINK3resfail SYMLINK3resfail; - -struct SYMLINK3res { - nfsstat3 status; - union { - SYMLINK3resok resok; - SYMLINK3resfail resfail; - } SYMLINK3res_u; -}; -typedef struct SYMLINK3res SYMLINK3res; - -struct devicedata3 { - sattr3 dev_attributes; - specdata3 spec; -}; -typedef struct devicedata3 devicedata3; - -struct mknoddata3 { - ftype3 type; - union { - devicedata3 device; - sattr3 pipe_attributes; - } mknoddata3_u; -}; -typedef struct mknoddata3 mknoddata3; - -struct MKNOD3args { - diropargs3 where; - mknoddata3 what; -}; -typedef struct MKNOD3args MKNOD3args; - -struct MKNOD3resok { - post_op_fh3 obj; - post_op_attr obj_attributes; - wcc_data dir_wcc; -}; -typedef struct MKNOD3resok MKNOD3resok; - -struct MKNOD3resfail { - wcc_data dir_wcc; -}; -typedef struct MKNOD3resfail MKNOD3resfail; - -struct MKNOD3res { - nfsstat3 status; - union { - MKNOD3resok resok; - MKNOD3resfail resfail; - } MKNOD3res_u; -}; -typedef struct MKNOD3res MKNOD3res; - -struct REMOVE3args { - diropargs3 object; -}; -typedef struct REMOVE3args REMOVE3args; - -struct REMOVE3resok { - wcc_data dir_wcc; -}; -typedef struct REMOVE3resok REMOVE3resok; - -struct REMOVE3resfail { - wcc_data dir_wcc; -}; -typedef struct REMOVE3resfail REMOVE3resfail; - -struct REMOVE3res { - nfsstat3 status; - union { - REMOVE3resok resok; - REMOVE3resfail resfail; - } REMOVE3res_u; -}; -typedef struct REMOVE3res REMOVE3res; - -struct RMDIR3args { - diropargs3 object; -}; -typedef struct RMDIR3args RMDIR3args; - -struct RMDIR3resok { - wcc_data dir_wcc; -}; -typedef struct RMDIR3resok RMDIR3resok; - -struct RMDIR3resfail { - wcc_data dir_wcc; -}; -typedef struct RMDIR3resfail RMDIR3resfail; - -struct RMDIR3res { - nfsstat3 status; - union { - RMDIR3resok resok; - RMDIR3resfail resfail; - } RMDIR3res_u; -}; -typedef struct RMDIR3res RMDIR3res; - -struct RENAME3args { - diropargs3 from; - diropargs3 to; -}; -typedef struct RENAME3args RENAME3args; - -struct RENAME3resok { - wcc_data fromdir_wcc; - wcc_data todir_wcc; -}; -typedef struct RENAME3resok RENAME3resok; - -struct RENAME3resfail { - wcc_data fromdir_wcc; - wcc_data todir_wcc; -}; -typedef struct RENAME3resfail RENAME3resfail; - -struct RENAME3res { - nfsstat3 status; - union { - RENAME3resok resok; - RENAME3resfail resfail; - } RENAME3res_u; -}; -typedef struct RENAME3res RENAME3res; - -struct LINK3args { - nfs_fh3 file; - diropargs3 link; -}; -typedef struct LINK3args LINK3args; - -struct LINK3resok { - post_op_attr file_attributes; - wcc_data linkdir_wcc; -}; -typedef struct LINK3resok LINK3resok; - -struct LINK3resfail { - post_op_attr file_attributes; - wcc_data linkdir_wcc; -}; -typedef struct LINK3resfail LINK3resfail; - -struct LINK3res { - nfsstat3 status; - union { - LINK3resok resok; - LINK3resfail resfail; - } LINK3res_u; -}; -typedef struct LINK3res LINK3res; - -struct READDIR3args { - nfs_fh3 dir; - cookie3 cookie; - cookieverf3 cookieverf; - count3 count; -}; -typedef struct READDIR3args READDIR3args; - -struct entry3 { - fileid3 fileid; - filename3 name; - cookie3 cookie; - struct entry3 *nextentry; -}; -typedef struct entry3 entry3; - -struct dirlist3 { - entry3 *entries; - bool_t eof; -}; -typedef struct dirlist3 dirlist3; - -struct READDIR3resok { - post_op_attr dir_attributes; - cookieverf3 cookieverf; - dirlist3 reply; -}; -typedef struct READDIR3resok READDIR3resok; - -struct READDIR3resfail { - post_op_attr dir_attributes; -}; -typedef struct READDIR3resfail READDIR3resfail; - -struct READDIR3res { - nfsstat3 status; - union { - READDIR3resok resok; - READDIR3resfail resfail; - } READDIR3res_u; -}; -typedef struct READDIR3res READDIR3res; - -struct READDIRPLUS3args { - nfs_fh3 dir; - cookie3 cookie; - cookieverf3 cookieverf; - count3 dircount; - count3 maxcount; -}; -typedef struct READDIRPLUS3args READDIRPLUS3args; - -struct entryplus3 { - fileid3 fileid; - filename3 name; - cookie3 cookie; - post_op_attr name_attributes; - post_op_fh3 name_handle; - struct entryplus3 *nextentry; -}; -typedef struct entryplus3 entryplus3; - -struct dirlistplus3 { - entryplus3 *entries; - bool_t eof; -}; -typedef struct dirlistplus3 dirlistplus3; - -struct READDIRPLUS3resok { - post_op_attr dir_attributes; - cookieverf3 cookieverf; - dirlistplus3 reply; -}; -typedef struct READDIRPLUS3resok READDIRPLUS3resok; - -struct READDIRPLUS3resfail { - post_op_attr dir_attributes; -}; -typedef struct READDIRPLUS3resfail READDIRPLUS3resfail; - -struct READDIRPLUS3res { - nfsstat3 status; - union { - READDIRPLUS3resok resok; - READDIRPLUS3resfail resfail; - } READDIRPLUS3res_u; -}; -typedef struct READDIRPLUS3res READDIRPLUS3res; - -struct FSSTAT3args { - nfs_fh3 fsroot; -}; -typedef struct FSSTAT3args FSSTAT3args; - -struct FSSTAT3resok { - post_op_attr obj_attributes; - size3 tbytes; - size3 fbytes; - size3 abytes; - size3 tfiles; - size3 ffiles; - size3 afiles; - uint32 invarsec; -}; -typedef struct FSSTAT3resok FSSTAT3resok; - -struct FSSTAT3resfail { - post_op_attr obj_attributes; -}; -typedef struct FSSTAT3resfail FSSTAT3resfail; - -struct FSSTAT3res { - nfsstat3 status; - union { - FSSTAT3resok resok; - FSSTAT3resfail resfail; - } FSSTAT3res_u; -}; -typedef struct FSSTAT3res FSSTAT3res; -#define FSF3_LINK 0x0001 -#define FSF3_SYMLINK 0x0002 -#define FSF3_HOMOGENEOUS 0x0008 -#define FSF3_CANSETTIME 0x0010 - -struct FSINFO3args { - nfs_fh3 fsroot; -}; -typedef struct FSINFO3args FSINFO3args; - -struct FSINFO3resok { - post_op_attr obj_attributes; - uint32 rtmax; - uint32 rtpref; - uint32 rtmult; - uint32 wtmax; - uint32 wtpref; - uint32 wtmult; - uint32 dtpref; - size3 maxfilesize; - nfstime3 time_delta; - uint32 properties; -}; -typedef struct FSINFO3resok FSINFO3resok; - -struct FSINFO3resfail { - post_op_attr obj_attributes; -}; -typedef struct FSINFO3resfail FSINFO3resfail; - -struct FSINFO3res { - nfsstat3 status; - union { - FSINFO3resok resok; - FSINFO3resfail resfail; - } FSINFO3res_u; -}; -typedef struct FSINFO3res FSINFO3res; - -struct PATHCONF3args { - nfs_fh3 object; -}; -typedef struct PATHCONF3args PATHCONF3args; - -struct PATHCONF3resok { - post_op_attr obj_attributes; - uint32 linkmax; - uint32 name_max; - bool_t no_trunc; - bool_t chown_restricted; - bool_t case_insensitive; - bool_t case_preserving; -}; -typedef struct PATHCONF3resok PATHCONF3resok; - -struct PATHCONF3resfail { - post_op_attr obj_attributes; -}; -typedef struct PATHCONF3resfail PATHCONF3resfail; - -struct PATHCONF3res { - nfsstat3 status; - union { - PATHCONF3resok resok; - PATHCONF3resfail resfail; - } PATHCONF3res_u; -}; -typedef struct PATHCONF3res PATHCONF3res; - -struct COMMIT3args { - nfs_fh3 file; - offset3 offset; - count3 count; -}; -typedef struct COMMIT3args COMMIT3args; - -struct COMMIT3resok { - wcc_data file_wcc; - writeverf3 verf; -}; -typedef struct COMMIT3resok COMMIT3resok; - -struct COMMIT3resfail { - wcc_data file_wcc; -}; -typedef struct COMMIT3resfail COMMIT3resfail; - -struct COMMIT3res { - nfsstat3 status; - union { - COMMIT3resok resok; - COMMIT3resfail resfail; - } COMMIT3res_u; -}; -typedef struct COMMIT3res COMMIT3res; - -#define NFS_PROGRAM ((unsigned long)(100003)) -#define NFS_VERSION ((unsigned long)(2)) - -extern void nfs_program_2(struct svc_req *rqstp, SVCXPRT *transp); -#define NFSPROC_NULL ((unsigned long)(0)) -extern void * nfsproc_null_2(void *, CLIENT *); -extern void * nfsproc_null_2_svc(void *, struct svc_req *); -#define NFSPROC_GETATTR ((unsigned long)(1)) -extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *); -extern attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *); -#define NFSPROC_SETATTR ((unsigned long)(2)) -extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *); -extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *); -#define NFSPROC_ROOT ((unsigned long)(3)) -extern void * nfsproc_root_2(void *, CLIENT *); -extern void * nfsproc_root_2_svc(void *, struct svc_req *); -#define NFSPROC_LOOKUP ((unsigned long)(4)) -extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *); -extern diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *); -#define NFSPROC_READLINK ((unsigned long)(5)) -extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *); -extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *); -#define NFSPROC_READ ((unsigned long)(6)) -extern readres * nfsproc_read_2(readargs *, CLIENT *); -extern readres * nfsproc_read_2_svc(readargs *, struct svc_req *); -#define NFSPROC_WRITECACHE ((unsigned long)(7)) -extern void * nfsproc_writecache_2(void *, CLIENT *); -extern void * nfsproc_writecache_2_svc(void *, struct svc_req *); -#define NFSPROC_WRITE ((unsigned long)(8)) -extern attrstat * nfsproc_write_2(writeargs *, CLIENT *); -extern attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *); -#define NFSPROC_CREATE ((unsigned long)(9)) -extern diropres * nfsproc_create_2(createargs *, CLIENT *); -extern diropres * nfsproc_create_2_svc(createargs *, struct svc_req *); -#define NFSPROC_REMOVE ((unsigned long)(10)) -extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *); -extern nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *); -#define NFSPROC_RENAME ((unsigned long)(11)) -extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *); -extern nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *); -#define NFSPROC_LINK ((unsigned long)(12)) -extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *); -extern nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *); -#define NFSPROC_SYMLINK ((unsigned long)(13)) -extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *); -extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *); -#define NFSPROC_MKDIR ((unsigned long)(14)) -extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *); -extern diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *); -#define NFSPROC_RMDIR ((unsigned long)(15)) -extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *); -extern nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *); -#define NFSPROC_READDIR ((unsigned long)(16)) -extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *); -extern readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *); -#define NFSPROC_STATFS ((unsigned long)(17)) -extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *); -extern statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *); -extern int nfs_program_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -#define NFS3_PROGRAM ((unsigned long)(100003)) -#define NFS_V3 ((unsigned long)(3)) - -extern void nfs3_program_3(struct svc_req *rqstp, SVCXPRT *transp); -#define NFSPROC3_NULL ((unsigned long)(0)) -extern void * nfsproc3_null_3(void *, CLIENT *); -extern void * nfsproc3_null_3_svc(void *, struct svc_req *); -#define NFSPROC3_GETATTR ((unsigned long)(1)) -extern GETATTR3res * nfsproc3_getattr_3(GETATTR3args *, CLIENT *); -extern GETATTR3res * nfsproc3_getattr_3_svc(GETATTR3args *, struct svc_req *); -#define NFSPROC3_SETATTR ((unsigned long)(2)) -extern SETATTR3res * nfsproc3_setattr_3(SETATTR3args *, CLIENT *); -extern SETATTR3res * nfsproc3_setattr_3_svc(SETATTR3args *, struct svc_req *); -#define NFSPROC3_LOOKUP ((unsigned long)(3)) -extern LOOKUP3res * nfsproc3_lookup_3(LOOKUP3args *, CLIENT *); -extern LOOKUP3res * nfsproc3_lookup_3_svc(LOOKUP3args *, struct svc_req *); -#define NFSPROC3_ACCESS ((unsigned long)(4)) -extern ACCESS3res * nfsproc3_access_3(ACCESS3args *, CLIENT *); -extern ACCESS3res * nfsproc3_access_3_svc(ACCESS3args *, struct svc_req *); -#define NFSPROC3_READLINK ((unsigned long)(5)) -extern READLINK3res * nfsproc3_readlink_3(READLINK3args *, CLIENT *); -extern READLINK3res * nfsproc3_readlink_3_svc(READLINK3args *, struct svc_req *); -#define NFSPROC3_READ ((unsigned long)(6)) -extern READ3res * nfsproc3_read_3(READ3args *, CLIENT *); -extern READ3res * nfsproc3_read_3_svc(READ3args *, struct svc_req *); -#define NFSPROC3_WRITE ((unsigned long)(7)) -extern WRITE3res * nfsproc3_write_3(WRITE3args *, CLIENT *); -extern WRITE3res * nfsproc3_write_3_svc(WRITE3args *, struct svc_req *); -#define NFSPROC3_CREATE ((unsigned long)(8)) -extern CREATE3res * nfsproc3_create_3(CREATE3args *, CLIENT *); -extern CREATE3res * nfsproc3_create_3_svc(CREATE3args *, struct svc_req *); -#define NFSPROC3_MKDIR ((unsigned long)(9)) -extern MKDIR3res * nfsproc3_mkdir_3(MKDIR3args *, CLIENT *); -extern MKDIR3res * nfsproc3_mkdir_3_svc(MKDIR3args *, struct svc_req *); -#define NFSPROC3_SYMLINK ((unsigned long)(10)) -extern SYMLINK3res * nfsproc3_symlink_3(SYMLINK3args *, CLIENT *); -extern SYMLINK3res * nfsproc3_symlink_3_svc(SYMLINK3args *, struct svc_req *); -#define NFSPROC3_MKNOD ((unsigned long)(11)) -extern MKNOD3res * nfsproc3_mknod_3(MKNOD3args *, CLIENT *); -extern MKNOD3res * nfsproc3_mknod_3_svc(MKNOD3args *, struct svc_req *); -#define NFSPROC3_REMOVE ((unsigned long)(12)) -extern REMOVE3res * nfsproc3_remove_3(REMOVE3args *, CLIENT *); -extern REMOVE3res * nfsproc3_remove_3_svc(REMOVE3args *, struct svc_req *); -#define NFSPROC3_RMDIR ((unsigned long)(13)) -extern RMDIR3res * nfsproc3_rmdir_3(RMDIR3args *, CLIENT *); -extern RMDIR3res * nfsproc3_rmdir_3_svc(RMDIR3args *, struct svc_req *); -#define NFSPROC3_RENAME ((unsigned long)(14)) -extern RENAME3res * nfsproc3_rename_3(RENAME3args *, CLIENT *); -extern RENAME3res * nfsproc3_rename_3_svc(RENAME3args *, struct svc_req *); -#define NFSPROC3_LINK ((unsigned long)(15)) -extern LINK3res * nfsproc3_link_3(LINK3args *, CLIENT *); -extern LINK3res * nfsproc3_link_3_svc(LINK3args *, struct svc_req *); -#define NFSPROC3_READDIR ((unsigned long)(16)) -extern READDIR3res * nfsproc3_readdir_3(READDIR3args *, CLIENT *); -extern READDIR3res * nfsproc3_readdir_3_svc(READDIR3args *, struct svc_req *); -#define NFSPROC3_READDIRPLUS ((unsigned long)(17)) -extern READDIRPLUS3res * nfsproc3_readdirplus_3(READDIRPLUS3args *, CLIENT *); -extern READDIRPLUS3res * nfsproc3_readdirplus_3_svc(READDIRPLUS3args *, struct svc_req *); -#define NFSPROC3_FSSTAT ((unsigned long)(18)) -extern FSSTAT3res * nfsproc3_fsstat_3(FSSTAT3args *, CLIENT *); -extern FSSTAT3res * nfsproc3_fsstat_3_svc(FSSTAT3args *, struct svc_req *); -#define NFSPROC3_FSINFO ((unsigned long)(19)) -extern FSINFO3res * nfsproc3_fsinfo_3(FSINFO3args *, CLIENT *); -extern FSINFO3res * nfsproc3_fsinfo_3_svc(FSINFO3args *, struct svc_req *); -#define NFSPROC3_PATHCONF ((unsigned long)(20)) -extern PATHCONF3res * nfsproc3_pathconf_3(PATHCONF3args *, CLIENT *); -extern PATHCONF3res * nfsproc3_pathconf_3_svc(PATHCONF3args *, struct svc_req *); -#define NFSPROC3_COMMIT ((unsigned long)(21)) -extern COMMIT3res * nfsproc3_commit_3(COMMIT3args *, CLIENT *); -extern COMMIT3res * nfsproc3_commit_3_svc(COMMIT3args *, struct svc_req *); -extern int nfs3_program_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_nfsstat(XDR *, nfsstat*); -extern bool_t xdr_ftype(XDR *, ftype*); -extern bool_t xdr_nfs_fh(XDR *, nfs_fh*); -extern bool_t xdr_nfstime(XDR *, nfstime*); -extern bool_t xdr_fattr(XDR *, fattr*); -extern bool_t xdr_sattr(XDR *, sattr*); -extern bool_t xdr_filename(XDR *, filename*); -extern bool_t xdr_nfspath(XDR *, nfspath*); -extern bool_t xdr_attrstat(XDR *, attrstat*); -extern bool_t xdr_sattrargs(XDR *, sattrargs*); -extern bool_t xdr_diropargs(XDR *, diropargs*); -extern bool_t xdr_diropokres(XDR *, diropokres*); -extern bool_t xdr_diropres(XDR *, diropres*); -extern bool_t xdr_readlinkres(XDR *, readlinkres*); -extern bool_t xdr_readargs(XDR *, readargs*); -extern bool_t xdr_readokres(XDR *, readokres*); -extern bool_t xdr_readres(XDR *, readres*); -extern bool_t xdr_writeargs(XDR *, writeargs*); -extern bool_t xdr_createargs(XDR *, createargs*); -extern bool_t xdr_renameargs(XDR *, renameargs*); -extern bool_t xdr_linkargs(XDR *, linkargs*); -extern bool_t xdr_symlinkargs(XDR *, symlinkargs*); -extern bool_t xdr_nfscookie(XDR *, nfscookie); -extern bool_t xdr_readdirargs(XDR *, readdirargs*); -extern bool_t xdr_entry(XDR *, entry*); -extern bool_t xdr_dirlist(XDR *, dirlist*); -extern bool_t xdr_readdirres(XDR *, readdirres*); -extern bool_t xdr_statfsokres(XDR *, statfsokres*); -extern bool_t xdr_statfsres(XDR *, statfsres*); -extern bool_t xdr_uint64(XDR *, uint64*); -extern bool_t xdr_int64(XDR *, int64*); -extern bool_t xdr_uint32(XDR *, uint32*); -extern bool_t xdr_int32(XDR *, int32*); -extern bool_t xdr_filename3(XDR *, filename3*); -extern bool_t xdr_nfspath3(XDR *, nfspath3*); -extern bool_t xdr_fileid3(XDR *, fileid3*); -extern bool_t xdr_cookie3(XDR *, cookie3*); -extern bool_t xdr_cookieverf3(XDR *, cookieverf3); -extern bool_t xdr_createverf3(XDR *, createverf3); -extern bool_t xdr_writeverf3(XDR *, writeverf3); -extern bool_t xdr_uid3(XDR *, uid3*); -extern bool_t xdr_gid3(XDR *, gid3*); -extern bool_t xdr_size3(XDR *, size3*); -extern bool_t xdr_offset3(XDR *, offset3*); -extern bool_t xdr_mode3(XDR *, mode3*); -extern bool_t xdr_count3(XDR *, count3*); -extern bool_t xdr_nfsstat3(XDR *, nfsstat3*); -extern bool_t xdr_ftype3(XDR *, ftype3*); -extern bool_t xdr_specdata3(XDR *, specdata3*); -extern bool_t xdr_nfs_fh3(XDR *, nfs_fh3*); -extern bool_t xdr_nfstime3(XDR *, nfstime3*); -extern bool_t xdr_fattr3(XDR *, fattr3*); -extern bool_t xdr_post_op_attr(XDR *, post_op_attr*); -extern bool_t xdr_wcc_attr(XDR *, wcc_attr*); -extern bool_t xdr_pre_op_attr(XDR *, pre_op_attr*); -extern bool_t xdr_wcc_data(XDR *, wcc_data*); -extern bool_t xdr_post_op_fh3(XDR *, post_op_fh3*); -extern bool_t xdr_time_how(XDR *, time_how*); -extern bool_t xdr_set_mode3(XDR *, set_mode3*); -extern bool_t xdr_set_uid3(XDR *, set_uid3*); -extern bool_t xdr_set_gid3(XDR *, set_gid3*); -extern bool_t xdr_set_size3(XDR *, set_size3*); -extern bool_t xdr_set_atime(XDR *, set_atime*); -extern bool_t xdr_set_mtime(XDR *, set_mtime*); -extern bool_t xdr_sattr3(XDR *, sattr3*); -extern bool_t xdr_diropargs3(XDR *, diropargs3*); -extern bool_t xdr_GETATTR3args(XDR *, GETATTR3args*); -extern bool_t xdr_GETATTR3resok(XDR *, GETATTR3resok*); -extern bool_t xdr_GETATTR3res(XDR *, GETATTR3res*); -extern bool_t xdr_sattrguard3(XDR *, sattrguard3*); -extern bool_t xdr_SETATTR3args(XDR *, SETATTR3args*); -extern bool_t xdr_SETATTR3resok(XDR *, SETATTR3resok*); -extern bool_t xdr_SETATTR3resfail(XDR *, SETATTR3resfail*); -extern bool_t xdr_SETATTR3res(XDR *, SETATTR3res*); -extern bool_t xdr_LOOKUP3args(XDR *, LOOKUP3args*); -extern bool_t xdr_LOOKUP3resok(XDR *, LOOKUP3resok*); -extern bool_t xdr_LOOKUP3resfail(XDR *, LOOKUP3resfail*); -extern bool_t xdr_LOOKUP3res(XDR *, LOOKUP3res*); -extern bool_t xdr_ACCESS3args(XDR *, ACCESS3args*); -extern bool_t xdr_ACCESS3resok(XDR *, ACCESS3resok*); -extern bool_t xdr_ACCESS3resfail(XDR *, ACCESS3resfail*); -extern bool_t xdr_ACCESS3res(XDR *, ACCESS3res*); -extern bool_t xdr_READLINK3args(XDR *, READLINK3args*); -extern bool_t xdr_READLINK3resok(XDR *, READLINK3resok*); -extern bool_t xdr_READLINK3resfail(XDR *, READLINK3resfail*); -extern bool_t xdr_READLINK3res(XDR *, READLINK3res*); -extern bool_t xdr_READ3args(XDR *, READ3args*); -extern bool_t xdr_READ3resok(XDR *, READ3resok*); -extern bool_t xdr_READ3resfail(XDR *, READ3resfail*); -extern bool_t xdr_READ3res(XDR *, READ3res*); -extern bool_t xdr_stable_how(XDR *, stable_how*); -extern bool_t xdr_WRITE3args(XDR *, WRITE3args*); -extern bool_t xdr_WRITE3resok(XDR *, WRITE3resok*); -extern bool_t xdr_WRITE3resfail(XDR *, WRITE3resfail*); -extern bool_t xdr_WRITE3res(XDR *, WRITE3res*); -extern bool_t xdr_createmode3(XDR *, createmode3*); -extern bool_t xdr_createhow3(XDR *, createhow3*); -extern bool_t xdr_CREATE3args(XDR *, CREATE3args*); -extern bool_t xdr_CREATE3resok(XDR *, CREATE3resok*); -extern bool_t xdr_CREATE3resfail(XDR *, CREATE3resfail*); -extern bool_t xdr_CREATE3res(XDR *, CREATE3res*); -extern bool_t xdr_MKDIR3args(XDR *, MKDIR3args*); -extern bool_t xdr_MKDIR3resok(XDR *, MKDIR3resok*); -extern bool_t xdr_MKDIR3resfail(XDR *, MKDIR3resfail*); -extern bool_t xdr_MKDIR3res(XDR *, MKDIR3res*); -extern bool_t xdr_symlinkdata3(XDR *, symlinkdata3*); -extern bool_t xdr_SYMLINK3args(XDR *, SYMLINK3args*); -extern bool_t xdr_SYMLINK3resok(XDR *, SYMLINK3resok*); -extern bool_t xdr_SYMLINK3resfail(XDR *, SYMLINK3resfail*); -extern bool_t xdr_SYMLINK3res(XDR *, SYMLINK3res*); -extern bool_t xdr_devicedata3(XDR *, devicedata3*); -extern bool_t xdr_mknoddata3(XDR *, mknoddata3*); -extern bool_t xdr_MKNOD3args(XDR *, MKNOD3args*); -extern bool_t xdr_MKNOD3resok(XDR *, MKNOD3resok*); -extern bool_t xdr_MKNOD3resfail(XDR *, MKNOD3resfail*); -extern bool_t xdr_MKNOD3res(XDR *, MKNOD3res*); -extern bool_t xdr_REMOVE3args(XDR *, REMOVE3args*); -extern bool_t xdr_REMOVE3resok(XDR *, REMOVE3resok*); -extern bool_t xdr_REMOVE3resfail(XDR *, REMOVE3resfail*); -extern bool_t xdr_REMOVE3res(XDR *, REMOVE3res*); -extern bool_t xdr_RMDIR3args(XDR *, RMDIR3args*); -extern bool_t xdr_RMDIR3resok(XDR *, RMDIR3resok*); -extern bool_t xdr_RMDIR3resfail(XDR *, RMDIR3resfail*); -extern bool_t xdr_RMDIR3res(XDR *, RMDIR3res*); -extern bool_t xdr_RENAME3args(XDR *, RENAME3args*); -extern bool_t xdr_RENAME3resok(XDR *, RENAME3resok*); -extern bool_t xdr_RENAME3resfail(XDR *, RENAME3resfail*); -extern bool_t xdr_RENAME3res(XDR *, RENAME3res*); -extern bool_t xdr_LINK3args(XDR *, LINK3args*); -extern bool_t xdr_LINK3resok(XDR *, LINK3resok*); -extern bool_t xdr_LINK3resfail(XDR *, LINK3resfail*); -extern bool_t xdr_LINK3res(XDR *, LINK3res*); -extern bool_t xdr_READDIR3args(XDR *, READDIR3args*); -extern bool_t xdr_entry3(XDR *, entry3*); -extern bool_t xdr_dirlist3(XDR *, dirlist3*); -extern bool_t xdr_READDIR3resok(XDR *, READDIR3resok*); -extern bool_t xdr_READDIR3resfail(XDR *, READDIR3resfail*); -extern bool_t xdr_READDIR3res(XDR *, READDIR3res*); -extern bool_t xdr_READDIRPLUS3args(XDR *, READDIRPLUS3args*); -extern bool_t xdr_entryplus3(XDR *, entryplus3*); -extern bool_t xdr_dirlistplus3(XDR *, dirlistplus3*); -extern bool_t xdr_READDIRPLUS3resok(XDR *, READDIRPLUS3resok*); -extern bool_t xdr_READDIRPLUS3resfail(XDR *, READDIRPLUS3resfail*); -extern bool_t xdr_READDIRPLUS3res(XDR *, READDIRPLUS3res*); -extern bool_t xdr_FSSTAT3args(XDR *, FSSTAT3args*); -extern bool_t xdr_FSSTAT3resok(XDR *, FSSTAT3resok*); -extern bool_t xdr_FSSTAT3resfail(XDR *, FSSTAT3resfail*); -extern bool_t xdr_FSSTAT3res(XDR *, FSSTAT3res*); -extern bool_t xdr_FSINFO3args(XDR *, FSINFO3args*); -extern bool_t xdr_FSINFO3resok(XDR *, FSINFO3resok*); -extern bool_t xdr_FSINFO3resfail(XDR *, FSINFO3resfail*); -extern bool_t xdr_FSINFO3res(XDR *, FSINFO3res*); -extern bool_t xdr_PATHCONF3args(XDR *, PATHCONF3args*); -extern bool_t xdr_PATHCONF3resok(XDR *, PATHCONF3resok*); -extern bool_t xdr_PATHCONF3resfail(XDR *, PATHCONF3resfail*); -extern bool_t xdr_PATHCONF3res(XDR *, PATHCONF3res*); -extern bool_t xdr_COMMIT3args(XDR *, COMMIT3args*); -extern bool_t xdr_COMMIT3resok(XDR *, COMMIT3resok*); -extern bool_t xdr_COMMIT3resfail(XDR *, COMMIT3resfail*); -extern bool_t xdr_COMMIT3res(XDR *, COMMIT3res*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_NFS_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/nis.h b/include/rpcsvc/nis.h deleted file mode 100644 index 20b28efe87..0000000000 --- a/include/rpcsvc/nis.h +++ /dev/null @@ -1,693 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _NIS_H_RPCGEN -#define _NIS_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * $FreeBSD: src/include/rpcsvc/nis.x,v 1.6 2003/05/04 02:51:42 obrien Exp $ - * $DragonFly: src/include/rpcsvc/nis.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ -/* - * nis.h - * - * This file is the main include file for NIS clients. It contains - * both the client library function defines and the various data - * structures used by the NIS service. It includes the file nis_tags.h - * which defines the tag values. This allows the tags to change without - * having to change the nis.x file. - * - * NOTE : DO NOT EDIT THIS FILE! It is automatically generated when - * rpcgen is run on the nis.x file. Note that there is a - * simple sed script to remove some unneeded lines. (See the - * Makefile target nis.h) - * - */ -#include -#include -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * @(#)nis_object.x 1.10 94/05/03 SMI - * $DragonFly: src/include/rpcsvc/nis_object.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ - -#ifndef __nis_object_h -#define __nis_object_h - -#define NIS_MAXSTRINGLEN 255 -#define NIS_MAXNAMELEN 1024 -#define NIS_MAXATTRNAME 32 -#define NIS_MAXATTRVAL 2048 -#define NIS_MAXCOLUMNS 64 -#define NIS_MAXATTR 16 -#define NIS_MAXPATH 1024 -#define NIS_MAXREPLICAS 128 -#define NIS_MAXLINKS 16 -#define NIS_PK_NONE 0 -#define NIS_PK_DH 1 -#define NIS_PK_RSA 2 -#define NIS_PK_KERB 3 - -struct nis_attr { - char *zattr_ndx; - struct { - u_int zattr_val_len; - char *zattr_val_val; - } zattr_val; -}; -typedef struct nis_attr nis_attr; - -typedef char *nis_name; - -enum zotypes { - BOGUS_OBJ = 0, - NO_OBJ = 1, - DIRECTORY_OBJ = 2, - GROUP_OBJ = 3, - TABLE_OBJ = 4, - ENTRY_OBJ = 5, - LINK_OBJ = 6, - PRIVATE_OBJ = 7 -}; -typedef enum zotypes zotypes; - -enum nstype { - UNKNOWN = 0, - NIS = 1, - SUNYP = 2, - IVY = 3, - DNS = 4, - X500 = 5, - DNANS = 6, - XCHS = 7, - CDS = 8 -}; -typedef enum nstype nstype; - -struct oar_mask { - u_long oa_rights; - zotypes oa_otype; -}; -typedef struct oar_mask oar_mask; - -struct endpoint { - char *uaddr; - char *family; - char *proto; -}; -typedef struct endpoint endpoint; - -struct nis_server { - nis_name name; - struct { - u_int ep_len; - endpoint *ep_val; - } ep; - u_long key_type; - netobj pkey; -}; -typedef struct nis_server nis_server; - -struct directory_obj { - nis_name do_name; - nstype do_type; - struct { - u_int do_servers_len; - nis_server *do_servers_val; - } do_servers; - u_long do_ttl; - struct { - u_int do_armask_len; - oar_mask *do_armask_val; - } do_armask; -}; -typedef struct directory_obj directory_obj; -#define EN_BINARY 1 -#define EN_CRYPT 2 -#define EN_XDR 4 -#define EN_MODIFIED 8 -#define EN_ASN1 64 - -struct entry_col { - u_long ec_flags; - struct { - u_int ec_value_len; - char *ec_value_val; - } ec_value; -}; -typedef struct entry_col entry_col; - -struct entry_obj { - char *en_type; - struct { - u_int en_cols_len; - entry_col *en_cols_val; - } en_cols; -}; -typedef struct entry_obj entry_obj; - -struct group_obj { - u_long gr_flags; - struct { - u_int gr_members_len; - nis_name *gr_members_val; - } gr_members; -}; -typedef struct group_obj group_obj; - -struct link_obj { - zotypes li_rtype; - struct { - u_int li_attrs_len; - nis_attr *li_attrs_val; - } li_attrs; - nis_name li_name; -}; -typedef struct link_obj link_obj; -#define TA_BINARY 1 -#define TA_CRYPT 2 -#define TA_XDR 4 -#define TA_SEARCHABLE 8 -#define TA_CASE 16 -#define TA_MODIFIED 32 -#define TA_ASN1 64 - -struct table_col { - char *tc_name; - u_long tc_flags; - u_long tc_rights; -}; -typedef struct table_col table_col; - -struct table_obj { - char *ta_type; - int ta_maxcol; - u_char ta_sep; - struct { - u_int ta_cols_len; - table_col *ta_cols_val; - } ta_cols; - char *ta_path; -}; -typedef struct table_obj table_obj; - -struct objdata { - zotypes zo_type; - union { - struct directory_obj di_data; - struct group_obj gr_data; - struct table_obj ta_data; - struct entry_obj en_data; - struct link_obj li_data; - struct { - u_int po_data_len; - char *po_data_val; - } po_data; - } objdata_u; -}; -typedef struct objdata objdata; - -struct nis_oid { - u_long ctime; - u_long mtime; -}; -typedef struct nis_oid nis_oid; - -struct nis_object { - nis_oid zo_oid; - nis_name zo_name; - nis_name zo_owner; - nis_name zo_group; - nis_name zo_domain; - u_long zo_access; - u_long zo_ttl; - objdata zo_data; -}; -typedef struct nis_object nis_object; - -#endif /* if __nis_object_h */ - - -enum nis_error { - NIS_SUCCESS = 0, - NIS_S_SUCCESS = 1, - NIS_NOTFOUND = 2, - NIS_S_NOTFOUND = 3, - NIS_CACHEEXPIRED = 4, - NIS_NAMEUNREACHABLE = 5, - NIS_UNKNOWNOBJ = 6, - NIS_TRYAGAIN = 7, - NIS_SYSTEMERROR = 8, - NIS_CHAINBROKEN = 9, - NIS_PERMISSION = 10, - NIS_NOTOWNER = 11, - NIS_NOT_ME = 12, - NIS_NOMEMORY = 13, - NIS_NAMEEXISTS = 14, - NIS_NOTMASTER = 15, - NIS_INVALIDOBJ = 16, - NIS_BADNAME = 17, - NIS_NOCALLBACK = 18, - NIS_CBRESULTS = 19, - NIS_NOSUCHNAME = 20, - NIS_NOTUNIQUE = 21, - NIS_IBMODERROR = 22, - NIS_NOSUCHTABLE = 23, - NIS_TYPEMISMATCH = 24, - NIS_LINKNAMEERROR = 25, - NIS_PARTIAL = 26, - NIS_TOOMANYATTRS = 27, - NIS_RPCERROR = 28, - NIS_BADATTRIBUTE = 29, - NIS_NOTSEARCHABLE = 30, - NIS_CBERROR = 31, - NIS_FOREIGNNS = 32, - NIS_BADOBJECT = 33, - NIS_NOTSAMEOBJ = 34, - NIS_MODFAIL = 35, - NIS_BADREQUEST = 36, - NIS_NOTEMPTY = 37, - NIS_COLDSTART_ERR = 38, - NIS_RESYNC = 39, - NIS_FAIL = 40, - NIS_UNAVAIL = 41, - NIS_RES2BIG = 42, - NIS_SRVAUTH = 43, - NIS_CLNTAUTH = 44, - NIS_NOFILESPACE = 45, - NIS_NOPROC = 46, - NIS_DUMPLATER = 47 -}; -typedef enum nis_error nis_error; - -struct nis_result { - nis_error status; - struct { - u_int objects_len; - nis_object *objects_val; - } objects; - netobj cookie; - u_long zticks; - u_long dticks; - u_long aticks; - u_long cticks; -}; -typedef struct nis_result nis_result; - -struct ns_request { - nis_name ns_name; - struct { - u_int ns_object_len; - nis_object *ns_object_val; - } ns_object; -}; -typedef struct ns_request ns_request; - -struct ib_request { - nis_name ibr_name; - struct { - u_int ibr_srch_len; - nis_attr *ibr_srch_val; - } ibr_srch; - u_long ibr_flags; - struct { - u_int ibr_obj_len; - nis_object *ibr_obj_val; - } ibr_obj; - struct { - u_int ibr_cbhost_len; - nis_server *ibr_cbhost_val; - } ibr_cbhost; - u_long ibr_bufsize; - netobj ibr_cookie; -}; -typedef struct ib_request ib_request; - -struct ping_args { - nis_name dir; - u_long stamp; -}; -typedef struct ping_args ping_args; - -enum log_entry_t { - LOG_NOP = 0, - ADD_NAME = 1, - REM_NAME = 2, - MOD_NAME_OLD = 3, - MOD_NAME_NEW = 4, - ADD_IBASE = 5, - REM_IBASE = 6, - MOD_IBASE = 7, - UPD_STAMP = 8 -}; -typedef enum log_entry_t log_entry_t; - -struct log_entry { - u_long le_time; - log_entry_t le_type; - nis_name le_princp; - nis_name le_name; - struct { - u_int le_attrs_len; - nis_attr *le_attrs_val; - } le_attrs; - nis_object le_object; -}; -typedef struct log_entry log_entry; - -struct log_result { - nis_error lr_status; - netobj lr_cookie; - struct { - u_int lr_entries_len; - log_entry *lr_entries_val; - } lr_entries; -}; -typedef struct log_result log_result; - -struct cp_result { - nis_error cp_status; - u_long cp_zticks; - u_long cp_dticks; -}; -typedef struct cp_result cp_result; - -struct nis_tag { - u_long tag_type; - char *tag_val; -}; -typedef struct nis_tag nis_tag; - -struct nis_taglist { - struct { - u_int tags_len; - nis_tag *tags_val; - } tags; -}; -typedef struct nis_taglist nis_taglist; - -struct dump_args { - nis_name da_dir; - u_long da_time; - struct { - u_int da_cbhost_len; - nis_server *da_cbhost_val; - } da_cbhost; -}; -typedef struct dump_args dump_args; - -struct fd_args { - nis_name dir_name; - nis_name requester; -}; -typedef struct fd_args fd_args; - -struct fd_result { - nis_error status; - nis_name source; - struct { - u_int dir_data_len; - char *dir_data_val; - } dir_data; - struct { - u_int signature_len; - char *signature_val; - } signature; -}; -typedef struct fd_result fd_result; -/* - * Generic "hash" datastructures, used by all types of hashed data. - */ -struct nis_hash_data { - nis_name name; /* NIS name of hashed item */ - int keychain; /* It's hash key (for pop) */ - struct nis_hash_data *next; /* Hash collision pointer */ - struct nis_hash_data *prv_item; /* A serial, doubly linked list */ - struct nis_hash_data *nxt_item; /* of items in the hash table */ -}; -typedef struct nis_hash_data NIS_HASH_ITEM; - -struct nis_hash_table { - NIS_HASH_ITEM *keys[64]; /* A hash table of items */ - NIS_HASH_ITEM *first; /* The first "item" in serial list */ -}; -typedef struct nis_hash_table NIS_HASH_TABLE; - -/* Structure for storing dynamically allocated static data */ -struct nis_sdata { - void *buf; /* Memory allocation pointer */ - u_long size; /* Buffer size */ -}; - -/* Generic client creating flags */ -#define ZMH_VC 1 -#define ZMH_DG 2 -#define ZMH_AUTH 4 - -/* Testing Access rights for objects */ - -#define NIS_READ_ACC 1 -#define NIS_MODIFY_ACC 2 -#define NIS_CREATE_ACC 4 -#define NIS_DESTROY_ACC 8 -/* Test macros. a == access rights, m == desired rights. */ -#define WORLD(a, m) (((a) & (m)) != 0) -#define GROUP(a, m) (((a) & ((m) << 8)) != 0) -#define OWNER(a, m) (((a) & ((m) << 16)) != 0) -#define NOBODY(a, m) (((a) & ((m) << 24)) != 0) - -#define OATYPE(d, n) (((d)->do_armask.do_armask_val+n)->oa_otype) -#define OARIGHTS(d, n) (((d)->do_armask.do_armask_val+n)->oa_rights) -#define WORLD_DEFAULT (NIS_READ_ACC) -#define GROUP_DEFAULT (NIS_READ_ACC << 8) -#define OWNER_DEFAULT ((NIS_READ_ACC + NIS_MODIFY_ACC + NIS_CREATE_ACC + NIS_DESTROY_ACC) << 16) -#define DEFAULT_RIGHTS (WORLD_DEFAULT | GROUP_DEFAULT | OWNER_DEFAULT) - -/* Result manipulation defines ... */ -#define NIS_RES_NUMOBJ(x) ((x)->objects.objects_len) -#define NIS_RES_OBJECT(x) ((x)->objects.objects_val) -#define NIS_RES_COOKIE(x) ((x)->cookie) -#define NIS_RES_STATUS(x) ((x)->status) - -/* These defines make getting at the variant part of the object easier. */ -#define TA_data zo_data.objdata_u.ta_data -#define EN_data zo_data.objdata_u.en_data -#define DI_data zo_data.objdata_u.di_data -#define LI_data zo_data.objdata_u.li_data -#define GR_data zo_data.objdata_u.gr_data - -#define __type_of(o) ((o)->zo_data.zo_type) - -/* Declarations for the internal subroutines in nislib.c */ -enum name_pos {SAME_NAME, HIGHER_NAME, LOWER_NAME, NOT_SEQUENTIAL, BAD_NAME}; -typedef enum name_pos name_pos; - -/* - * Defines for getting at column data in entry objects. Because RPCGEN - * generates some rather wordy structures, we create some defines that - * collapse the needed keystrokes to access a particular value using - * these definitions they take an nis_object *, and an int and return - * a u_char * for Value, and an int for length. - */ -#define ENTRY_VAL(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_val -#define ENTRY_LEN(obj, col) (obj)->EN_data.en_cols.en_cols_val[col].ec_value.ec_value_len - -#ifdef __cplusplus -} -#endif - -/* Prototypes, and extern declarations for the NIS library functions. */ -#include -#endif /* __NIS_RPCGEN_H */ -/* EDIT_START */ - -/* - * nis_3.h - * - * This file contains definitions that are only of interest to the actual - * service daemon and client stubs. Normal users of NIS will not include - * this file. - * - * NOTE : This include file is automatically created by a combination - * of rpcgen and sed. DO NOT EDIT IT, change the nis.x file instead - * and then remake this file. - */ -#ifndef __nis_3_h -#define __nis_3_h -#ifdef __cplusplus -extern "C" { -#endif - -#define NIS_PROG ((unsigned long)(100300)) -#define NIS_VERSION ((unsigned long)(3)) - -extern void nis_prog_3(struct svc_req *rqstp, SVCXPRT *transp); -#define NIS_LOOKUP ((unsigned long)(1)) -extern nis_result * nis_lookup_3(ns_request *, CLIENT *); -extern nis_result * nis_lookup_3_svc(ns_request *, struct svc_req *); -#define NIS_ADD ((unsigned long)(2)) -extern nis_result * nis_add_3(ns_request *, CLIENT *); -extern nis_result * nis_add_3_svc(ns_request *, struct svc_req *); -#define NIS_MODIFY ((unsigned long)(3)) -extern nis_result * nis_modify_3(ns_request *, CLIENT *); -extern nis_result * nis_modify_3_svc(ns_request *, struct svc_req *); -#define NIS_REMOVE ((unsigned long)(4)) -extern nis_result * nis_remove_3(ns_request *, CLIENT *); -extern nis_result * nis_remove_3_svc(ns_request *, struct svc_req *); -#define NIS_IBLIST ((unsigned long)(5)) -extern nis_result * nis_iblist_3(ib_request *, CLIENT *); -extern nis_result * nis_iblist_3_svc(ib_request *, struct svc_req *); -#define NIS_IBADD ((unsigned long)(6)) -extern nis_result * nis_ibadd_3(ib_request *, CLIENT *); -extern nis_result * nis_ibadd_3_svc(ib_request *, struct svc_req *); -#define NIS_IBMODIFY ((unsigned long)(7)) -extern nis_result * nis_ibmodify_3(ib_request *, CLIENT *); -extern nis_result * nis_ibmodify_3_svc(ib_request *, struct svc_req *); -#define NIS_IBREMOVE ((unsigned long)(8)) -extern nis_result * nis_ibremove_3(ib_request *, CLIENT *); -extern nis_result * nis_ibremove_3_svc(ib_request *, struct svc_req *); -#define NIS_IBFIRST ((unsigned long)(9)) -extern nis_result * nis_ibfirst_3(ib_request *, CLIENT *); -extern nis_result * nis_ibfirst_3_svc(ib_request *, struct svc_req *); -#define NIS_IBNEXT ((unsigned long)(10)) -extern nis_result * nis_ibnext_3(ib_request *, CLIENT *); -extern nis_result * nis_ibnext_3_svc(ib_request *, struct svc_req *); -#define NIS_FINDDIRECTORY ((unsigned long)(12)) -extern fd_result * nis_finddirectory_3(fd_args *, CLIENT *); -extern fd_result * nis_finddirectory_3_svc(fd_args *, struct svc_req *); -#define NIS_STATUS ((unsigned long)(14)) -extern nis_taglist * nis_status_3(nis_taglist *, CLIENT *); -extern nis_taglist * nis_status_3_svc(nis_taglist *, struct svc_req *); -#define NIS_DUMPLOG ((unsigned long)(15)) -extern log_result * nis_dumplog_3(dump_args *, CLIENT *); -extern log_result * nis_dumplog_3_svc(dump_args *, struct svc_req *); -#define NIS_DUMP ((unsigned long)(16)) -extern log_result * nis_dump_3(dump_args *, CLIENT *); -extern log_result * nis_dump_3_svc(dump_args *, struct svc_req *); -#define NIS_CALLBACK ((unsigned long)(17)) -extern bool_t * nis_callback_3(netobj *, CLIENT *); -extern bool_t * nis_callback_3_svc(netobj *, struct svc_req *); -#define NIS_CPTIME ((unsigned long)(18)) -extern u_long * nis_cptime_3(nis_name *, CLIENT *); -extern u_long * nis_cptime_3_svc(nis_name *, struct svc_req *); -#define NIS_CHECKPOINT ((unsigned long)(19)) -extern cp_result * nis_checkpoint_3(nis_name *, CLIENT *); -extern cp_result * nis_checkpoint_3_svc(nis_name *, struct svc_req *); -#define NIS_PING ((unsigned long)(20)) -extern void * nis_ping_3(ping_args *, CLIENT *); -extern void * nis_ping_3_svc(ping_args *, struct svc_req *); -#define NIS_SERVSTATE ((unsigned long)(21)) -extern nis_taglist * nis_servstate_3(nis_taglist *, CLIENT *); -extern nis_taglist * nis_servstate_3_svc(nis_taglist *, struct svc_req *); -#define NIS_MKDIR ((unsigned long)(22)) -extern nis_error * nis_mkdir_3(nis_name *, CLIENT *); -extern nis_error * nis_mkdir_3_svc(nis_name *, struct svc_req *); -#define NIS_RMDIR ((unsigned long)(23)) -extern nis_error * nis_rmdir_3(nis_name *, CLIENT *); -extern nis_error * nis_rmdir_3_svc(nis_name *, struct svc_req *); -#define NIS_UPDKEYS ((unsigned long)(24)) -extern nis_error * nis_updkeys_3(nis_name *, CLIENT *); -extern nis_error * nis_updkeys_3_svc(nis_name *, struct svc_req *); -extern int nis_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_nis_attr(XDR *, nis_attr*); -extern bool_t xdr_nis_name(XDR *, nis_name*); -extern bool_t xdr_zotypes(XDR *, zotypes*); -extern bool_t xdr_nstype(XDR *, nstype*); -extern bool_t xdr_oar_mask(XDR *, oar_mask*); -extern bool_t xdr_endpoint(XDR *, endpoint*); -extern bool_t xdr_nis_server(XDR *, nis_server*); -extern bool_t xdr_directory_obj(XDR *, directory_obj*); -extern bool_t xdr_entry_col(XDR *, entry_col*); -extern bool_t xdr_entry_obj(XDR *, entry_obj*); -extern bool_t xdr_group_obj(XDR *, group_obj*); -extern bool_t xdr_link_obj(XDR *, link_obj*); -extern bool_t xdr_table_col(XDR *, table_col*); -extern bool_t xdr_table_obj(XDR *, table_obj*); -extern bool_t xdr_objdata(XDR *, objdata*); -extern bool_t xdr_nis_oid(XDR *, nis_oid*); -extern bool_t xdr_nis_object(XDR *, nis_object*); -extern bool_t xdr_nis_error(XDR *, nis_error*); -extern bool_t xdr_nis_result(XDR *, nis_result*); -extern bool_t xdr_ns_request(XDR *, ns_request*); -extern bool_t xdr_ib_request(XDR *, ib_request*); -extern bool_t xdr_ping_args(XDR *, ping_args*); -extern bool_t xdr_log_entry_t(XDR *, log_entry_t*); -extern bool_t xdr_log_entry(XDR *, log_entry*); -extern bool_t xdr_log_result(XDR *, log_result*); -extern bool_t xdr_cp_result(XDR *, cp_result*); -extern bool_t xdr_nis_tag(XDR *, nis_tag*); -extern bool_t xdr_nis_taglist(XDR *, nis_taglist*); -extern bool_t xdr_dump_args(XDR *, dump_args*); -extern bool_t xdr_fd_args(XDR *, fd_args*); -extern bool_t xdr_fd_result(XDR *, fd_result*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_NIS_H_RPCGEN */ diff --git a/include/rpcsvc/nis_cache.h b/include/rpcsvc/nis_cache.h deleted file mode 100644 index 3dd127f55e..0000000000 --- a/include/rpcsvc/nis_cache.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _NIS_CACHE_H_RPCGEN -#define _NIS_CACHE_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * @(#)nis_cache.x 1.11 94/05/03 SMI - * $FreeBSD: src/include/rpcsvc/nis_cache.x,v 1.3 1999/08/27 23:45:09 peter Exp $ - * $DragonFly: src/include/rpcsvc/nis_cache.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ -#include -#include - -/* default cache file */ -#define CACHEFILE "/var/nis/NIS_SHARED_DIRCACHE" - -/* clients have to read-lock the cache file, and SVR4 locking requires that */ -/* the file be writable, but we don't want a world-writable cache file. */ -/* So... everyone agrees to use a different, world-writable file for the */ -/* locking operations, but the data is in CACHEFILE. */ -#define CACHELOCK "/usr/tmp/.NIS_DIR_CACHELOCK" - -/* the file containing one trusted XDR'ed directory object. - * This has to be present for the system to work. - */ -#define COLD_START_FILE "/var/nis/NIS_COLD_START" - -enum pc_status {HIT, MISS, NEAR_MISS}; - -extern int __nis_debuglevel; - - - -#define CACHEPROG ((unsigned long)(100301)) -#define CACHE_VER_1 ((unsigned long)(1)) - -extern void cacheprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define NIS_CACHE_ADD_ENTRY ((unsigned long)(1)) -extern void * nis_cache_add_entry_1(fd_result *, CLIENT *); -extern void * nis_cache_add_entry_1_svc(fd_result *, struct svc_req *); -#define NIS_CACHE_REMOVE_ENTRY ((unsigned long)(2)) -extern void * nis_cache_remove_entry_1(directory_obj *, CLIENT *); -extern void * nis_cache_remove_entry_1_svc(directory_obj *, struct svc_req *); -#define NIS_CACHE_READ_COLDSTART ((unsigned long)(3)) -extern void * nis_cache_read_coldstart_1(void *, CLIENT *); -extern void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *); -#define NIS_CACHE_REFRESH_ENTRY ((unsigned long)(4)) -extern void * nis_cache_refresh_entry_1(char **, CLIENT *); -extern void * nis_cache_refresh_entry_1_svc(char **, struct svc_req *); -extern int cacheprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -#ifdef __cplusplus -} -#endif - -#endif /* !_NIS_CACHE_H_RPCGEN */ diff --git a/include/rpcsvc/nis_callback.h b/include/rpcsvc/nis_callback.h deleted file mode 100644 index c120a58dff..0000000000 --- a/include/rpcsvc/nis_callback.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _NIS_CALLBACK_H_RPCGEN -#define _NIS_CALLBACK_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * @(#)nis_callback.x 1.7 94/05/03 SMI - * $FreeBSD: src/include/rpcsvc/nis_callback.x,v 1.3 1999/08/27 23:45:09 peter Exp $ - * $DragonFly: src/include/rpcsvc/nis_callback.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ -#include - -typedef nis_object *obj_p; - -struct cback_data { - struct { - u_int entries_len; - obj_p *entries_val; - } entries; -}; -typedef struct cback_data cback_data; - -#define CB_PROG ((unsigned long)(100302)) -#define CB_VERS ((unsigned long)(1)) - -extern void cb_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define CBPROC_RECEIVE ((unsigned long)(1)) -extern bool_t * cbproc_receive_1(cback_data *, CLIENT *); -extern bool_t * cbproc_receive_1_svc(cback_data *, struct svc_req *); -#define CBPROC_FINISH ((unsigned long)(2)) -extern void * cbproc_finish_1(void *, CLIENT *); -extern void * cbproc_finish_1_svc(void *, struct svc_req *); -#define CBPROC_ERROR ((unsigned long)(3)) -extern void * cbproc_error_1(nis_error *, CLIENT *); -extern void * cbproc_error_1_svc(nis_error *, struct svc_req *); -extern int cb_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_obj_p(XDR *, obj_p*); -extern bool_t xdr_cback_data(XDR *, cback_data*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_NIS_CALLBACK_H_RPCGEN */ diff --git a/include/rpcsvc/nlm_prot.h b/include/rpcsvc/nlm_prot.h deleted file mode 100644 index 7ba503768d..0000000000 --- a/include/rpcsvc/nlm_prot.h +++ /dev/null @@ -1,451 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _NLM_PROT_H_RPCGEN -#define _NLM_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * @(#)nlm_prot.x 1.8 87/09/21 Copyr 1987 Sun Micro - * @(#)nlm_prot.x 2.1 88/08/01 4.0 RPCSRC - * $NetBSD: nlm_prot.x,v 1.6 2000/06/07 14:30:15 bouyer Exp $ - * $FreeBSD: src/include/rpcsvc/nlm_prot.x,v 1.9 2001/03/19 12:49:48 alfred Exp $ - * $DragonFly: src/include/rpcsvc/nlm_prot.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ -#define LM_MAXSTRLEN 1024 -#define MAXNAMELEN LM_MAXSTRLEN+1 - -enum nlm_stats { - nlm_granted = 0, - nlm_denied = 1, - nlm_denied_nolocks = 2, - nlm_blocked = 3, - nlm_denied_grace_period = 4 -}; -typedef enum nlm_stats nlm_stats; - -struct nlm_holder { - bool_t exclusive; - int svid; - netobj oh; - u_int l_offset; - u_int l_len; -}; -typedef struct nlm_holder nlm_holder; - -struct nlm_testrply { - nlm_stats stat; - union { - struct nlm_holder holder; - } nlm_testrply_u; -}; -typedef struct nlm_testrply nlm_testrply; - -struct nlm_stat { - nlm_stats stat; -}; -typedef struct nlm_stat nlm_stat; - -struct nlm_res { - netobj cookie; - nlm_stat stat; -}; -typedef struct nlm_res nlm_res; - -struct nlm_testres { - netobj cookie; - nlm_testrply stat; -}; -typedef struct nlm_testres nlm_testres; - -struct nlm_lock { - char *caller_name; - netobj fh; - netobj oh; - int svid; - u_int l_offset; - u_int l_len; -}; -typedef struct nlm_lock nlm_lock; - -struct nlm_lockargs { - netobj cookie; - bool_t block; - bool_t exclusive; - struct nlm_lock alock; - bool_t reclaim; - int state; -}; -typedef struct nlm_lockargs nlm_lockargs; - -struct nlm_cancargs { - netobj cookie; - bool_t block; - bool_t exclusive; - struct nlm_lock alock; -}; -typedef struct nlm_cancargs nlm_cancargs; - -struct nlm_testargs { - netobj cookie; - bool_t exclusive; - struct nlm_lock alock; -}; -typedef struct nlm_testargs nlm_testargs; - -struct nlm_unlockargs { - netobj cookie; - struct nlm_lock alock; -}; -typedef struct nlm_unlockargs nlm_unlockargs; -/* - * The following enums are actually bit encoded for efficient - * boolean algebra.... DON'T change them..... - */ - -enum fsh_mode { - fsm_DN = 0, - fsm_DR = 1, - fsm_DW = 2, - fsm_DRW = 3 -}; -typedef enum fsh_mode fsh_mode; - -enum fsh_access { - fsa_NONE = 0, - fsa_R = 1, - fsa_W = 2, - fsa_RW = 3 -}; -typedef enum fsh_access fsh_access; - -struct nlm_share { - char *caller_name; - netobj fh; - netobj oh; - fsh_mode mode; - fsh_access access; -}; -typedef struct nlm_share nlm_share; - -struct nlm_shareargs { - netobj cookie; - nlm_share share; - bool_t reclaim; -}; -typedef struct nlm_shareargs nlm_shareargs; - -struct nlm_shareres { - netobj cookie; - nlm_stats stat; - int sequence; -}; -typedef struct nlm_shareres nlm_shareres; - -struct nlm_notify { - char *name; - long state; -}; -typedef struct nlm_notify nlm_notify; -/* definitions for NLM version 4 */ - -enum nlm4_stats { - nlm4_granted = 0, - nlm4_denied = 1, - nlm4_denied_nolock = 2, - nlm4_blocked = 3, - nlm4_denied_grace_period = 4, - nlm4_deadlck = 5, - nlm4_rofs = 6, - nlm4_stale_fh = 7, - nlm4_fbig = 8, - nlm4_failed = 9 -}; -typedef enum nlm4_stats nlm4_stats; - -struct nlm4_stat { - nlm4_stats stat; -}; -typedef struct nlm4_stat nlm4_stat; - -struct nlm4_holder { - bool_t exclusive; - u_int32_t svid; - netobj oh; - u_int64_t l_offset; - u_int64_t l_len; -}; -typedef struct nlm4_holder nlm4_holder; - -struct nlm4_lock { - char *caller_name; - netobj fh; - netobj oh; - u_int32_t svid; - u_int64_t l_offset; - u_int64_t l_len; -}; -typedef struct nlm4_lock nlm4_lock; - -struct nlm4_share { - char *caller_name; - netobj fh; - netobj oh; - fsh_mode mode; - fsh_access access; -}; -typedef struct nlm4_share nlm4_share; - -struct nlm4_testrply { - nlm4_stats stat; - union { - struct nlm4_holder holder; - } nlm4_testrply_u; -}; -typedef struct nlm4_testrply nlm4_testrply; - -struct nlm4_testres { - netobj cookie; - nlm4_testrply stat; -}; -typedef struct nlm4_testres nlm4_testres; - -struct nlm4_testargs { - netobj cookie; - bool_t exclusive; - struct nlm4_lock alock; -}; -typedef struct nlm4_testargs nlm4_testargs; - -struct nlm4_res { - netobj cookie; - nlm4_stat stat; -}; -typedef struct nlm4_res nlm4_res; - -struct nlm4_lockargs { - netobj cookie; - bool_t block; - bool_t exclusive; - struct nlm4_lock alock; - bool_t reclaim; - int state; -}; -typedef struct nlm4_lockargs nlm4_lockargs; - -struct nlm4_cancargs { - netobj cookie; - bool_t block; - bool_t exclusive; - struct nlm4_lock alock; -}; -typedef struct nlm4_cancargs nlm4_cancargs; - -struct nlm4_unlockargs { - netobj cookie; - struct nlm4_lock alock; -}; -typedef struct nlm4_unlockargs nlm4_unlockargs; - -struct nlm4_shareargs { - netobj cookie; - nlm4_share share; - bool_t reclaim; -}; -typedef struct nlm4_shareargs nlm4_shareargs; - -struct nlm4_shareres { - netobj cookie; - nlm4_stats stat; - int sequence; -}; -typedef struct nlm4_shareres nlm4_shareres; - -struct nlm_sm_status { - char *mon_name; - int state; - char priv[16]; -}; -typedef struct nlm_sm_status nlm_sm_status; - -#define NLM_PROG ((unsigned long)(100021)) -#define NLM_SM ((unsigned long)(0)) - -extern void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp); -#define NLM_SM_NOTIFY ((unsigned long)(1)) -extern void * nlm_sm_notify_0(struct nlm_sm_status *, CLIENT *); -extern void * nlm_sm_notify_0_svc(struct nlm_sm_status *, struct svc_req *); -extern int nlm_prog_0_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define NLM_VERS ((unsigned long)(1)) - -extern void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define NLM_TEST ((unsigned long)(1)) -extern nlm_testres * nlm_test_1(struct nlm_testargs *, CLIENT *); -extern nlm_testres * nlm_test_1_svc(struct nlm_testargs *, struct svc_req *); -#define NLM_LOCK ((unsigned long)(2)) -extern nlm_res * nlm_lock_1(struct nlm_lockargs *, CLIENT *); -extern nlm_res * nlm_lock_1_svc(struct nlm_lockargs *, struct svc_req *); -#define NLM_CANCEL ((unsigned long)(3)) -extern nlm_res * nlm_cancel_1(struct nlm_cancargs *, CLIENT *); -extern nlm_res * nlm_cancel_1_svc(struct nlm_cancargs *, struct svc_req *); -#define NLM_UNLOCK ((unsigned long)(4)) -extern nlm_res * nlm_unlock_1(struct nlm_unlockargs *, CLIENT *); -extern nlm_res * nlm_unlock_1_svc(struct nlm_unlockargs *, struct svc_req *); -#define NLM_GRANTED ((unsigned long)(5)) -extern nlm_res * nlm_granted_1(struct nlm_testargs *, CLIENT *); -extern nlm_res * nlm_granted_1_svc(struct nlm_testargs *, struct svc_req *); -#define NLM_TEST_MSG ((unsigned long)(6)) -extern void * nlm_test_msg_1(struct nlm_testargs *, CLIENT *); -extern void * nlm_test_msg_1_svc(struct nlm_testargs *, struct svc_req *); -#define NLM_LOCK_MSG ((unsigned long)(7)) -extern void * nlm_lock_msg_1(struct nlm_lockargs *, CLIENT *); -extern void * nlm_lock_msg_1_svc(struct nlm_lockargs *, struct svc_req *); -#define NLM_CANCEL_MSG ((unsigned long)(8)) -extern void * nlm_cancel_msg_1(struct nlm_cancargs *, CLIENT *); -extern void * nlm_cancel_msg_1_svc(struct nlm_cancargs *, struct svc_req *); -#define NLM_UNLOCK_MSG ((unsigned long)(9)) -extern void * nlm_unlock_msg_1(struct nlm_unlockargs *, CLIENT *); -extern void * nlm_unlock_msg_1_svc(struct nlm_unlockargs *, struct svc_req *); -#define NLM_GRANTED_MSG ((unsigned long)(10)) -extern void * nlm_granted_msg_1(struct nlm_testargs *, CLIENT *); -extern void * nlm_granted_msg_1_svc(struct nlm_testargs *, struct svc_req *); -#define NLM_TEST_RES ((unsigned long)(11)) -extern void * nlm_test_res_1(nlm_testres *, CLIENT *); -extern void * nlm_test_res_1_svc(nlm_testres *, struct svc_req *); -#define NLM_LOCK_RES ((unsigned long)(12)) -extern void * nlm_lock_res_1(nlm_res *, CLIENT *); -extern void * nlm_lock_res_1_svc(nlm_res *, struct svc_req *); -#define NLM_CANCEL_RES ((unsigned long)(13)) -extern void * nlm_cancel_res_1(nlm_res *, CLIENT *); -extern void * nlm_cancel_res_1_svc(nlm_res *, struct svc_req *); -#define NLM_UNLOCK_RES ((unsigned long)(14)) -extern void * nlm_unlock_res_1(nlm_res *, CLIENT *); -extern void * nlm_unlock_res_1_svc(nlm_res *, struct svc_req *); -#define NLM_GRANTED_RES ((unsigned long)(15)) -extern void * nlm_granted_res_1(nlm_res *, CLIENT *); -extern void * nlm_granted_res_1_svc(nlm_res *, struct svc_req *); -extern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define NLM_VERSX ((unsigned long)(3)) - -extern void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp); -#define NLM_SHARE ((unsigned long)(20)) -extern nlm_shareres * nlm_share_3(nlm_shareargs *, CLIENT *); -extern nlm_shareres * nlm_share_3_svc(nlm_shareargs *, struct svc_req *); -#define NLM_UNSHARE ((unsigned long)(21)) -extern nlm_shareres * nlm_unshare_3(nlm_shareargs *, CLIENT *); -extern nlm_shareres * nlm_unshare_3_svc(nlm_shareargs *, struct svc_req *); -#define NLM_NM_LOCK ((unsigned long)(22)) -extern nlm_res * nlm_nm_lock_3(nlm_lockargs *, CLIENT *); -extern nlm_res * nlm_nm_lock_3_svc(nlm_lockargs *, struct svc_req *); -#define NLM_FREE_ALL ((unsigned long)(23)) -extern void * nlm_free_all_3(nlm_notify *, CLIENT *); -extern void * nlm_free_all_3_svc(nlm_notify *, struct svc_req *); -extern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define NLM_VERS4 ((unsigned long)(4)) - -extern void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp); -#define NLM4_TEST ((unsigned long)(1)) -extern nlm4_testres * nlm4_test_4(nlm4_testargs *, CLIENT *); -extern nlm4_testres * nlm4_test_4_svc(nlm4_testargs *, struct svc_req *); -#define NLM4_LOCK ((unsigned long)(2)) -extern nlm4_res * nlm4_lock_4(nlm4_lockargs *, CLIENT *); -extern nlm4_res * nlm4_lock_4_svc(nlm4_lockargs *, struct svc_req *); -#define NLM4_CANCEL ((unsigned long)(3)) -extern nlm4_res * nlm4_cancel_4(nlm4_cancargs *, CLIENT *); -extern nlm4_res * nlm4_cancel_4_svc(nlm4_cancargs *, struct svc_req *); -#define NLM4_UNLOCK ((unsigned long)(4)) -extern nlm4_res * nlm4_unlock_4(nlm4_unlockargs *, CLIENT *); -extern nlm4_res * nlm4_unlock_4_svc(nlm4_unlockargs *, struct svc_req *); -#define NLM4_GRANTED ((unsigned long)(5)) -extern nlm4_res * nlm4_granted_4(nlm4_testargs *, CLIENT *); -extern nlm4_res * nlm4_granted_4_svc(nlm4_testargs *, struct svc_req *); -#define NLM4_TEST_MSG ((unsigned long)(6)) -extern void * nlm4_test_msg_4(nlm4_testargs *, CLIENT *); -extern void * nlm4_test_msg_4_svc(nlm4_testargs *, struct svc_req *); -#define NLM4_LOCK_MSG ((unsigned long)(7)) -extern void * nlm4_lock_msg_4(nlm4_lockargs *, CLIENT *); -extern void * nlm4_lock_msg_4_svc(nlm4_lockargs *, struct svc_req *); -#define NLM4_CANCEL_MSG ((unsigned long)(8)) -extern void * nlm4_cancel_msg_4(nlm4_cancargs *, CLIENT *); -extern void * nlm4_cancel_msg_4_svc(nlm4_cancargs *, struct svc_req *); -#define NLM4_UNLOCK_MSG ((unsigned long)(9)) -extern void * nlm4_unlock_msg_4(nlm4_unlockargs *, CLIENT *); -extern void * nlm4_unlock_msg_4_svc(nlm4_unlockargs *, struct svc_req *); -#define NLM4_GRANTED_MSG ((unsigned long)(10)) -extern void * nlm4_granted_msg_4(nlm4_testargs *, CLIENT *); -extern void * nlm4_granted_msg_4_svc(nlm4_testargs *, struct svc_req *); -#define NLM4_TEST_RES ((unsigned long)(11)) -extern void * nlm4_test_res_4(nlm4_testres *, CLIENT *); -extern void * nlm4_test_res_4_svc(nlm4_testres *, struct svc_req *); -#define NLM4_LOCK_RES ((unsigned long)(12)) -extern void * nlm4_lock_res_4(nlm4_res *, CLIENT *); -extern void * nlm4_lock_res_4_svc(nlm4_res *, struct svc_req *); -#define NLM4_CANCEL_RES ((unsigned long)(13)) -extern void * nlm4_cancel_res_4(nlm4_res *, CLIENT *); -extern void * nlm4_cancel_res_4_svc(nlm4_res *, struct svc_req *); -#define NLM4_UNLOCK_RES ((unsigned long)(14)) -extern void * nlm4_unlock_res_4(nlm4_res *, CLIENT *); -extern void * nlm4_unlock_res_4_svc(nlm4_res *, struct svc_req *); -#define NLM4_GRANTED_RES ((unsigned long)(15)) -extern void * nlm4_granted_res_4(nlm4_res *, CLIENT *); -extern void * nlm4_granted_res_4_svc(nlm4_res *, struct svc_req *); -#define NLM4_SHARE ((unsigned long)(20)) -extern nlm4_shareres * nlm4_share_4(nlm4_shareargs *, CLIENT *); -extern nlm4_shareres * nlm4_share_4_svc(nlm4_shareargs *, struct svc_req *); -#define NLM4_UNSHARE ((unsigned long)(21)) -extern nlm4_shareres * nlm4_unshare_4(nlm4_shareargs *, CLIENT *); -extern nlm4_shareres * nlm4_unshare_4_svc(nlm4_shareargs *, struct svc_req *); -#define NLM4_NM_LOCK ((unsigned long)(22)) -extern nlm4_res * nlm4_nm_lock_4(nlm4_lockargs *, CLIENT *); -extern nlm4_res * nlm4_nm_lock_4_svc(nlm4_lockargs *, struct svc_req *); -#define NLM4_FREE_ALL ((unsigned long)(23)) -extern void * nlm4_free_all_4(nlm_notify *, CLIENT *); -extern void * nlm4_free_all_4_svc(nlm_notify *, struct svc_req *); -extern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_nlm_stats(XDR *, nlm_stats*); -extern bool_t xdr_nlm_holder(XDR *, nlm_holder*); -extern bool_t xdr_nlm_testrply(XDR *, nlm_testrply*); -extern bool_t xdr_nlm_stat(XDR *, nlm_stat*); -extern bool_t xdr_nlm_res(XDR *, nlm_res*); -extern bool_t xdr_nlm_testres(XDR *, nlm_testres*); -extern bool_t xdr_nlm_lock(XDR *, nlm_lock*); -extern bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*); -extern bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*); -extern bool_t xdr_nlm_testargs(XDR *, nlm_testargs*); -extern bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*); -extern bool_t xdr_fsh_mode(XDR *, fsh_mode*); -extern bool_t xdr_fsh_access(XDR *, fsh_access*); -extern bool_t xdr_nlm_share(XDR *, nlm_share*); -extern bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*); -extern bool_t xdr_nlm_shareres(XDR *, nlm_shareres*); -extern bool_t xdr_nlm_notify(XDR *, nlm_notify*); -extern bool_t xdr_nlm4_stats(XDR *, nlm4_stats*); -extern bool_t xdr_nlm4_stat(XDR *, nlm4_stat*); -extern bool_t xdr_nlm4_holder(XDR *, nlm4_holder*); -extern bool_t xdr_nlm4_lock(XDR *, nlm4_lock*); -extern bool_t xdr_nlm4_share(XDR *, nlm4_share*); -extern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*); -extern bool_t xdr_nlm4_testres(XDR *, nlm4_testres*); -extern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*); -extern bool_t xdr_nlm4_res(XDR *, nlm4_res*); -extern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*); -extern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*); -extern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*); -extern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*); -extern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*); -extern bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_NLM_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/rex.h b/include/rpcsvc/rex.h deleted file mode 100644 index ca8f7c358e..0000000000 --- a/include/rpcsvc/rex.h +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _REX_H_RPCGEN -#define _REX_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define STRINGSIZE 1024 - -typedef char *rexstring; -#define SIGINT 2 -#define REX_INTERACTIVE 1 - -struct rex_start { - struct { - u_int rst_cmd_len; - rexstring *rst_cmd_val; - } rst_cmd; - rexstring rst_host; - rexstring rst_fsname; - rexstring rst_dirwithin; - struct { - u_int rst_env_len; - rexstring *rst_env_val; - } rst_env; - u_int rst_port0; - u_int rst_port1; - u_int rst_port2; - u_int rst_flags; -}; -typedef struct rex_start rex_start; - -struct rex_result { - int rlt_stat; - rexstring rlt_message; -}; -typedef struct rex_result rex_result; - -struct sgttyb { - u_int four; - char chars[4]; - u_int flags; -}; -typedef struct sgttyb sgttyb; -#define B0 0 -#define B50 1 -#define B75 2 -#define B110 3 -#define B134 4 -#define B150 5 -#define B200 6 -#define B300 7 -#define B600 8 -#define B1200 9 -#define B1800 10 -#define B2400 11 -#define B4800 12 -#define B9600 13 -#define B19200 14 -#define B38400 15 -#define TANDEM 0x00000001 -#define CBREAK 0x00000002 -#define LCASE 0x00000004 -#define ECHO 0x00000008 -#define CRMOD 0x00000010 -#define RAW 0x00000020 -#define ODDP 0x00000040 -#define EVENP 0x00000080 -#define ANYP 0x000000c0 -#define NLDELAY 0x00000300 -#define NL0 0x00000000 -#define NL1 0x00000100 -#define NL2 0x00000200 -#define NL3 0x00000300 -#define TBDELAY 0x00000c00 -#define TAB0 0x00000000 -#define TAB1 0x00000400 -#define TAB2 0x00000800 -#define XTABS 0x00000c00 -#define CRDELAY 0x00003000 -#define CR0 0x00000000 -#define CR1 0x00001000 -#define CR2 0x00002000 -#define CR3 0x00003000 -#define VTDELAY 0x00004000 -#define FF0 0x00000000 -#define FF1 0x00004000 -#define BSDELAY 0x00008000 -#define BS0 0x00000000 -#define BS1 0x00008000 -#define CRTBS 0x00010000 -#define PRTERA 0x00020000 -#define CRTERA 0x00040000 -#define TILDE 0x00080000 -#define MDMBUF 0x00100000 -#define LITOUT 0x00200000 -#define TOSTOP 0x00400000 -#define FLUSHO 0x00800000 -#define NOHANG 0x01000000 -#define L001000 0x02000000 -#define CRTKIL 0x04000000 -#define PASS8 0x08000000 -#define CTLECH 0x10000000 -#define PENDIN 0x20000000 -#define DECCTQ 0x40000000 -#define NOFLSH 0x80000000 - -struct tchars { - u_int six; - char chars[6]; -}; -typedef struct tchars tchars; - -struct ltchars { - u_int six; - char chars[6]; - u_int mode; -}; -typedef struct ltchars ltchars; - -struct rex_ttysize { - int ts_lines; - int ts_cols; -}; -typedef struct rex_ttysize rex_ttysize; - -struct rex_ttymode { - sgttyb basic; - tchars more; - ltchars yetmore; - u_int andmore; -}; -typedef struct rex_ttymode rex_ttymode; -#define LCRTBS 0x0001 -#define LPRTERA 0x0002 -#define LCRTERA 0x0004 -#define LTILDE 0x0008 -#define LMDMBUF 0x0010 -#define LLITOUT 0x0020 -#define LTOSTOP 0x0040 -#define LFLUSHO 0x0080 -#define LNOHANG 0x0100 -#define LL001000 0x0200 -#define LCRTKIL 0x0400 -#define LPASS8 0x0800 -#define LCTLECH 0x1000 -#define LPENDIN 0x2000 -#define LDECCTQ 0x4000 -#define LNOFLSH 0x8000 - -#define REXPROG ((unsigned long)(100017)) -#define REXVERS ((unsigned long)(1)) - -extern void rexprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define REXPROC_START ((unsigned long)(1)) -extern rex_result * rexproc_start_1(rex_start *, CLIENT *); -extern rex_result * rexproc_start_1_svc(rex_start *, struct svc_req *); -#define REXPROC_WAIT ((unsigned long)(2)) -extern rex_result * rexproc_wait_1(void *, CLIENT *); -extern rex_result * rexproc_wait_1_svc(void *, struct svc_req *); -#define REXPROC_MODES ((unsigned long)(3)) -extern void * rexproc_modes_1(rex_ttymode *, CLIENT *); -extern void * rexproc_modes_1_svc(rex_ttymode *, struct svc_req *); -#define REXPROC_WINCH ((unsigned long)(4)) -extern void * rexproc_winch_1(rex_ttysize *, CLIENT *); -extern void * rexproc_winch_1_svc(rex_ttysize *, struct svc_req *); -#define REXPROC_SIGNAL ((unsigned long)(5)) -extern void * rexproc_signal_1(int *, CLIENT *); -extern void * rexproc_signal_1_svc(int *, struct svc_req *); -extern int rexprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_rexstring(XDR *, rexstring*); -extern bool_t xdr_rex_start(XDR *, rex_start*); -extern bool_t xdr_rex_result(XDR *, rex_result*); -extern bool_t xdr_sgttyb(XDR *, sgttyb*); -extern bool_t xdr_tchars(XDR *, tchars*); -extern bool_t xdr_ltchars(XDR *, ltchars*); -extern bool_t xdr_rex_ttysize(XDR *, rex_ttysize*); -extern bool_t xdr_rex_ttymode(XDR *, rex_ttymode*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_REX_H_RPCGEN */ diff --git a/include/rpcsvc/rnusers.h b/include/rpcsvc/rnusers.h deleted file mode 100644 index 40b76a3f03..0000000000 --- a/include/rpcsvc/rnusers.h +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _RNUSERS_H_RPCGEN -#define _RNUSERS_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define MAXUSERS 100 -#define MAXUTLEN 256 - -struct utmp { - char *ut_line; - char *ut_name; - char *ut_host; - int ut_time; -}; -typedef struct utmp utmp; - -struct utmpidle { - utmp ui_utmp; - u_int ui_idle; -}; -typedef struct utmpidle utmpidle; - -typedef struct { - u_int utmparr_len; - utmp *utmparr_val; -} utmparr; - -typedef struct { - u_int utmpidlearr_len; - utmpidle *utmpidlearr_val; -} utmpidlearr; -#define RUSERS_MAXUSERLEN 32 -#define RUSERS_MAXLINELEN 32 -#define RUSERS_MAXHOSTLEN 257 - -struct rusers_utmp { - char *ut_user; - char *ut_line; - char *ut_host; - int ut_type; - int ut_time; - u_int ut_idle; -}; -typedef struct rusers_utmp rusers_utmp; - -typedef struct { - u_int utmp_array_len; - rusers_utmp *utmp_array_val; -} utmp_array; - -#define RUSERSPROG ((unsigned long)(100002)) -#define RUSERSVERS_ORIG ((unsigned long)(1)) - -extern void rusersprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define RUSERSPROC_NUM ((unsigned long)(1)) -extern int * rusersproc_num_1(void *, CLIENT *); -extern int * rusersproc_num_1_svc(void *, struct svc_req *); -#define RUSERSPROC_NAMES ((unsigned long)(2)) -extern utmparr * rusersproc_names_1(void *, CLIENT *); -extern utmparr * rusersproc_names_1_svc(void *, struct svc_req *); -#define RUSERSPROC_ALLNAMES ((unsigned long)(3)) -extern utmparr * rusersproc_allnames_1(void *, CLIENT *); -extern utmparr * rusersproc_allnames_1_svc(void *, struct svc_req *); -extern int rusersprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define RUSERSVERS_IDLE ((unsigned long)(2)) - -extern void rusersprog_2(struct svc_req *rqstp, SVCXPRT *transp); -extern int * rusersproc_num_2(void *, CLIENT *); -extern int * rusersproc_num_2_svc(void *, struct svc_req *); -extern utmpidlearr * rusersproc_names_2(void *, CLIENT *); -extern utmpidlearr * rusersproc_names_2_svc(void *, struct svc_req *); -extern utmpidlearr * rusersproc_allnames_2(void *, CLIENT *); -extern utmpidlearr * rusersproc_allnames_2_svc(void *, struct svc_req *); -extern int rusersprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define RUSERSVERS_3 ((unsigned long)(3)) - -extern void rusersprog_3(struct svc_req *rqstp, SVCXPRT *transp); -extern int * rusersproc_num_3(void *, CLIENT *); -extern int * rusersproc_num_3_svc(void *, struct svc_req *); -extern utmp_array * rusersproc_names_3(void *, CLIENT *); -extern utmp_array * rusersproc_names_3_svc(void *, struct svc_req *); -extern utmp_array * rusersproc_allnames_3(void *, CLIENT *); -extern utmp_array * rusersproc_allnames_3_svc(void *, struct svc_req *); -extern int rusersprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_utmp(XDR *, utmp*); -extern bool_t xdr_utmpidle(XDR *, utmpidle*); -extern bool_t xdr_utmparr(XDR *, utmparr*); -extern bool_t xdr_utmpidlearr(XDR *, utmpidlearr*); -extern bool_t xdr_rusers_utmp(XDR *, rusers_utmp*); -extern bool_t xdr_utmp_array(XDR *, utmp_array*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_RNUSERS_H_RPCGEN */ diff --git a/include/rpcsvc/rquota.h b/include/rpcsvc/rquota.h deleted file mode 100644 index d751f58d45..0000000000 --- a/include/rpcsvc/rquota.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _RQUOTA_H_RPCGEN -#define _RQUOTA_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define RQ_PATHLEN 1024 - -struct getquota_args { - char *gqa_pathp; - int gqa_uid; -}; -typedef struct getquota_args getquota_args; - -struct rquota { - int rq_bsize; - bool_t rq_active; - u_int rq_bhardlimit; - u_int rq_bsoftlimit; - u_int rq_curblocks; - u_int rq_fhardlimit; - u_int rq_fsoftlimit; - u_int rq_curfiles; - u_int rq_btimeleft; - u_int rq_ftimeleft; -}; -typedef struct rquota rquota; - -enum gqr_status { - Q_OK = 1, - Q_NOQUOTA = 2, - Q_EPERM = 3 -}; -typedef enum gqr_status gqr_status; - -struct getquota_rslt { - gqr_status status; - union { - rquota gqr_rquota; - } getquota_rslt_u; -}; -typedef struct getquota_rslt getquota_rslt; - -#define RQUOTAPROG ((unsigned long)(100011)) -#define RQUOTAVERS ((unsigned long)(1)) - -extern void rquotaprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define RQUOTAPROC_GETQUOTA ((unsigned long)(1)) -extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *); -extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *); -#define RQUOTAPROC_GETACTIVEQUOTA ((unsigned long)(2)) -extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *); -extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *); -extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_getquota_args(XDR *, getquota_args*); -extern bool_t xdr_rquota(XDR *, rquota*); -extern bool_t xdr_gqr_status(XDR *, gqr_status*); -extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_RQUOTA_H_RPCGEN */ diff --git a/include/rpcsvc/rstat.h b/include/rpcsvc/rstat.h deleted file mode 100644 index b4cf7b4a43..0000000000 --- a/include/rpcsvc/rstat.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _RSTAT_H_RPCGEN -#define _RSTAT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef FSCALE -/* - * Scale factor for scaled integers used to count load averages. - */ -#define FSHIFT 8 /* bits to right of fixed binary point */ -#define FSCALE (1< - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - */ -/* - * Copyright (c) 1984, 1990 by Sun Microsystems, Inc. - */ - -/* from @(#)rwall.x 1.6 91/03/11 TIRPC 1.0 */ - -#ifndef _rpcsvc_rwall_h -#define _rpcsvc_rwall_h - -typedef char *wrapstring; - - -#endif /* ! _rpcsvc_rwall_h */ - -#define WALLPROG ((unsigned long)(100008)) -#define WALLVERS ((unsigned long)(1)) - -extern void wallprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define WALLPROC_WALL ((unsigned long)(2)) -extern void * wallproc_wall_1(wrapstring *, CLIENT *); -extern void * wallproc_wall_1_svc(wrapstring *, struct svc_req *); -extern int wallprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -#ifdef __cplusplus -} -#endif - -#endif /* !_RWALL_H_RPCGEN */ diff --git a/include/rpcsvc/sm_inter.h b/include/rpcsvc/sm_inter.h deleted file mode 100644 index b7612a08cd..0000000000 --- a/include/rpcsvc/sm_inter.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _SM_INTER_H_RPCGEN -#define _SM_INTER_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define SM_MAXSTRLEN 1024 - -struct sm_name { - char *mon_name; -}; -typedef struct sm_name sm_name; - -struct my_id { - char *my_name; - int my_prog; - int my_vers; - int my_proc; -}; -typedef struct my_id my_id; - -struct mon_id { - char *mon_name; - struct my_id my_id; -}; -typedef struct mon_id mon_id; - -struct mon { - struct mon_id mon_id; - char priv[16]; -}; -typedef struct mon mon; - -struct stat_chge { - char *mon_name; - int state; -}; -typedef struct stat_chge stat_chge; - -struct sm_stat { - int state; -}; -typedef struct sm_stat sm_stat; - -enum sm_res { - stat_succ = 0, - stat_fail = 1 -}; -typedef enum sm_res sm_res; - -struct sm_stat_res { - sm_res res_stat; - int state; -}; -typedef struct sm_stat_res sm_stat_res; - -struct sm_status { - char *mon_name; - int state; - char priv[16]; -}; -typedef struct sm_status sm_status; - -#define SM_PROG ((unsigned long)(100024)) -#define SM_VERS ((unsigned long)(1)) - -extern void sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define SM_STAT ((unsigned long)(1)) -extern struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *); -extern struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *); -#define SM_MON ((unsigned long)(2)) -extern struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *); -extern struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *); -#define SM_UNMON ((unsigned long)(3)) -extern struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *); -extern struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *); -#define SM_UNMON_ALL ((unsigned long)(4)) -extern struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *); -extern struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *); -#define SM_SIMU_CRASH ((unsigned long)(5)) -extern void * sm_simu_crash_1(void *, CLIENT *); -extern void * sm_simu_crash_1_svc(void *, struct svc_req *); -#define SM_NOTIFY ((unsigned long)(6)) -extern void * sm_notify_1(struct stat_chge *, CLIENT *); -extern void * sm_notify_1_svc(struct stat_chge *, struct svc_req *); -extern int sm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_sm_name(XDR *, sm_name*); -extern bool_t xdr_my_id(XDR *, my_id*); -extern bool_t xdr_mon_id(XDR *, mon_id*); -extern bool_t xdr_mon(XDR *, mon*); -extern bool_t xdr_stat_chge(XDR *, stat_chge*); -extern bool_t xdr_sm_stat(XDR *, sm_stat*); -extern bool_t xdr_sm_res(XDR *, sm_res*); -extern bool_t xdr_sm_stat_res(XDR *, sm_stat_res*); -extern bool_t xdr_sm_status(XDR *, sm_status*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_SM_INTER_H_RPCGEN */ diff --git a/include/rpcsvc/spray.h b/include/rpcsvc/spray.h deleted file mode 100644 index 6bf8d4146e..0000000000 --- a/include/rpcsvc/spray.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _SPRAY_H_RPCGEN -#define _SPRAY_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define SPRAYMAX 8845 - -struct spraytimeval { - u_int sec; - u_int usec; -}; -typedef struct spraytimeval spraytimeval; - -struct spraycumul { - u_int counter; - spraytimeval clock; -}; -typedef struct spraycumul spraycumul; - -typedef struct { - u_int sprayarr_len; - char *sprayarr_val; -} sprayarr; - -#define SPRAYPROG ((unsigned long)(100012)) -#define SPRAYVERS ((unsigned long)(1)) - -extern void sprayprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define SPRAYPROC_SPRAY ((unsigned long)(1)) -extern void * sprayproc_spray_1(sprayarr *, CLIENT *); -extern void * sprayproc_spray_1_svc(sprayarr *, struct svc_req *); -#define SPRAYPROC_GET ((unsigned long)(2)) -extern spraycumul * sprayproc_get_1(void *, CLIENT *); -extern spraycumul * sprayproc_get_1_svc(void *, struct svc_req *); -#define SPRAYPROC_CLEAR ((unsigned long)(3)) -extern void * sprayproc_clear_1(void *, CLIENT *); -extern void * sprayproc_clear_1_svc(void *, struct svc_req *); -extern int sprayprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_spraytimeval(XDR *, spraytimeval*); -extern bool_t xdr_spraycumul(XDR *, spraycumul*); -extern bool_t xdr_sprayarr(XDR *, sprayarr*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_SPRAY_H_RPCGEN */ diff --git a/include/rpcsvc/yp.h b/include/rpcsvc/yp.h deleted file mode 100644 index 2ab4f0c895..0000000000 --- a/include/rpcsvc/yp.h +++ /dev/null @@ -1,380 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _YP_H_RPCGEN -#define _YP_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define YPMAXRECORD 1024 -#define YPMAXDOMAIN 64 -#define YPMAXMAP 64 -#define YPMAXPEER 64 - -enum ypstat { - YP_TRUE = 1, - YP_NOMORE = 2, - YP_FALSE = 0, - YP_NOMAP = -1, - YP_NODOM = -2, - YP_NOKEY = -3, - YP_BADOP = -4, - YP_BADDB = -5, - YP_YPERR = -6, - YP_BADARGS = -7, - YP_VERS = -8 -}; -typedef enum ypstat ypstat; - -enum ypxfrstat { - YPXFR_SUCC = 1, - YPXFR_AGE = 2, - YPXFR_NOMAP = -1, - YPXFR_NODOM = -2, - YPXFR_RSRC = -3, - YPXFR_RPC = -4, - YPXFR_MADDR = -5, - YPXFR_YPERR = -6, - YPXFR_BADARGS = -7, - YPXFR_DBM = -8, - YPXFR_FILE = -9, - YPXFR_SKEW = -10, - YPXFR_CLEAR = -11, - YPXFR_FORCE = -12, - YPXFR_XFRERR = -13, - YPXFR_REFUSED = -14 -}; -typedef enum ypxfrstat ypxfrstat; - -typedef char *domainname; - -typedef char *mapname; - -typedef char *peername; - -typedef struct { - u_int keydat_len; - char *keydat_val; -} keydat; - -typedef struct { - u_int valdat_len; - char *valdat_val; -} valdat; - -struct ypmap_parms { - domainname domain; - mapname map; - u_int ordernum; - peername peer; -}; -typedef struct ypmap_parms ypmap_parms; - -struct ypreq_key { - domainname domain; - mapname map; - keydat key; -}; -typedef struct ypreq_key ypreq_key; - -struct ypreq_nokey { - domainname domain; - mapname map; -}; -typedef struct ypreq_nokey ypreq_nokey; - -struct ypreq_xfr { - ypmap_parms map_parms; - u_int transid; - u_int prog; - u_int port; -}; -typedef struct ypreq_xfr ypreq_xfr; - -struct ypresp_val { - ypstat stat; - valdat val; -}; -typedef struct ypresp_val ypresp_val; - -struct ypresp_key_val { - ypstat stat; - valdat val; - keydat key; -}; -typedef struct ypresp_key_val ypresp_key_val; - -struct ypresp_master { - ypstat stat; - peername peer; -}; -typedef struct ypresp_master ypresp_master; - -struct ypresp_order { - ypstat stat; - u_int ordernum; -}; -typedef struct ypresp_order ypresp_order; - -struct ypresp_all { - bool_t more; - union { - ypresp_key_val val; - } ypresp_all_u; -}; -typedef struct ypresp_all ypresp_all; - -struct ypresp_xfr { - u_int transid; - ypxfrstat xfrstat; -}; -typedef struct ypresp_xfr ypresp_xfr; - -struct ypmaplist { - mapname map; - struct ypmaplist *next; -}; -typedef struct ypmaplist ypmaplist; - -struct ypresp_maplist { - ypstat stat; - ypmaplist *maps; -}; -typedef struct ypresp_maplist ypresp_maplist; - -enum yppush_status { - YPPUSH_SUCC = 1, - YPPUSH_AGE = 2, - YPPUSH_NOMAP = -1, - YPPUSH_NODOM = -2, - YPPUSH_RSRC = -3, - YPPUSH_RPC = -4, - YPPUSH_MADDR = -5, - YPPUSH_YPERR = -6, - YPPUSH_BADARGS = -7, - YPPUSH_DBM = -8, - YPPUSH_FILE = -9, - YPPUSH_SKEW = -10, - YPPUSH_CLEAR = -11, - YPPUSH_FORCE = -12, - YPPUSH_XFRERR = -13, - YPPUSH_REFUSED = -14 -}; -typedef enum yppush_status yppush_status; - -struct yppushresp_xfr { - u_int transid; - yppush_status status; -}; -typedef struct yppushresp_xfr yppushresp_xfr; - -enum ypbind_resptype { - YPBIND_SUCC_VAL = 1, - YPBIND_FAIL_VAL = 2 -}; -typedef enum ypbind_resptype ypbind_resptype; - -struct ypbind_binding { - char ypbind_binding_addr[4]; - char ypbind_binding_port[2]; -}; -typedef struct ypbind_binding ypbind_binding; - -struct ypbind_resp { - ypbind_resptype ypbind_status; - union { - u_int ypbind_error; - ypbind_binding ypbind_bindinfo; - } ypbind_resp_u; -}; -typedef struct ypbind_resp ypbind_resp; -#define YPBIND_ERR_ERR 1 -#define YPBIND_ERR_NOSERV 2 -#define YPBIND_ERR_RESC 3 - -struct ypbind_setdom { - domainname ypsetdom_domain; - ypbind_binding ypsetdom_binding; - u_int ypsetdom_vers; -}; -typedef struct ypbind_setdom ypbind_setdom; - -enum ypreqtype { - YPREQ_KEY = 1, - YPREQ_NOKEY = 2, - YPREQ_MAP_PARMS = 3 -}; -typedef enum ypreqtype ypreqtype; - -enum ypresptype { - YPRESP_VAL = 1, - YPRESP_KEY_VAL = 2, - YPRESP_MAP_PARMS = 3 -}; -typedef enum ypresptype ypresptype; - -struct yprequest { - ypreqtype yp_reqtype; - union { - ypreq_key yp_req_keytype; - ypreq_nokey yp_req_nokeytype; - ypmap_parms yp_req_map_parmstype; - } yprequest_u; -}; -typedef struct yprequest yprequest; - -struct ypresponse { - ypresptype yp_resptype; - union { - ypresp_val yp_resp_valtype; - ypresp_key_val yp_resp_key_valtype; - ypmap_parms yp_resp_map_parmstype; - } ypresponse_u; -}; -typedef struct ypresponse ypresponse; - -#define YPPROG ((unsigned long)(100004)) -#define YPOLDVERS ((unsigned long)(1)) - -extern void ypprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define YPOLDPROC_NULL ((unsigned long)(0)) -extern void * ypoldproc_null_1(void *, CLIENT *); -extern void * ypoldproc_null_1_svc(void *, struct svc_req *); -#define YPOLDPROC_DOMAIN ((unsigned long)(1)) -extern bool_t * ypoldproc_domain_1(domainname *, CLIENT *); -extern bool_t * ypoldproc_domain_1_svc(domainname *, struct svc_req *); -#define YPOLDPROC_DOMAIN_NONACK ((unsigned long)(2)) -extern bool_t * ypoldproc_domain_nonack_1(domainname *, CLIENT *); -extern bool_t * ypoldproc_domain_nonack_1_svc(domainname *, struct svc_req *); -#define YPOLDPROC_MATCH ((unsigned long)(3)) -extern ypresponse * ypoldproc_match_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_match_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_FIRST ((unsigned long)(4)) -extern ypresponse * ypoldproc_first_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_first_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_NEXT ((unsigned long)(5)) -extern ypresponse * ypoldproc_next_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_next_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_POLL ((unsigned long)(6)) -extern ypresponse * ypoldproc_poll_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_poll_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_PUSH ((unsigned long)(7)) -extern ypresponse * ypoldproc_push_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_push_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_PULL ((unsigned long)(8)) -extern ypresponse * ypoldproc_pull_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_pull_1_svc(yprequest *, struct svc_req *); -#define YPOLDPROC_GET ((unsigned long)(9)) -extern ypresponse * ypoldproc_get_1(yprequest *, CLIENT *); -extern ypresponse * ypoldproc_get_1_svc(yprequest *, struct svc_req *); -extern int ypprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); -#define YPVERS ((unsigned long)(2)) - -extern void ypprog_2(struct svc_req *rqstp, SVCXPRT *transp); -#define YPPROC_NULL ((unsigned long)(0)) -extern void * ypproc_null_2(void *, CLIENT *); -extern void * ypproc_null_2_svc(void *, struct svc_req *); -#define YPPROC_DOMAIN ((unsigned long)(1)) -extern bool_t * ypproc_domain_2(domainname *, CLIENT *); -extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *); -#define YPPROC_DOMAIN_NONACK ((unsigned long)(2)) -extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *); -extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *); -#define YPPROC_MATCH ((unsigned long)(3)) -extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *); -extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *); -#define YPPROC_FIRST ((unsigned long)(4)) -extern ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *); -extern ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *); -#define YPPROC_NEXT ((unsigned long)(5)) -extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *); -extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *); -#define YPPROC_XFR ((unsigned long)(6)) -extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *); -extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *); -#define YPPROC_CLEAR ((unsigned long)(7)) -extern void * ypproc_clear_2(void *, CLIENT *); -extern void * ypproc_clear_2_svc(void *, struct svc_req *); -#define YPPROC_ALL ((unsigned long)(8)) -extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *); -extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *); -#define YPPROC_MASTER ((unsigned long)(9)) -extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *); -extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *); -#define YPPROC_ORDER ((unsigned long)(10)) -extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *); -extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *); -#define YPPROC_MAPLIST ((unsigned long)(11)) -extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *); -extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *); -extern int ypprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -#define YPPUSH_XFRRESPPROG ((unsigned long)(0x40000000)) -#define YPPUSH_XFRRESPVERS ((unsigned long)(1)) - -extern void yppush_xfrrespprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define YPPUSHPROC_NULL ((unsigned long)(0)) -extern void * yppushproc_null_1(void *, CLIENT *); -extern void * yppushproc_null_1_svc(void *, struct svc_req *); -#define YPPUSHPROC_XFRRESP ((unsigned long)(1)) -extern void * yppushproc_xfrresp_1(yppushresp_xfr *, CLIENT *); -extern void * yppushproc_xfrresp_1_svc(yppushresp_xfr *, struct svc_req *); -extern int yppush_xfrrespprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -#define YPBINDPROG ((unsigned long)(100007)) -#define YPBINDVERS ((unsigned long)(2)) - -extern void ypbindprog_2(struct svc_req *rqstp, SVCXPRT *transp); -#define YPBINDPROC_NULL ((unsigned long)(0)) -extern void * ypbindproc_null_2(void *, CLIENT *); -extern void * ypbindproc_null_2_svc(void *, struct svc_req *); -#define YPBINDPROC_DOMAIN ((unsigned long)(1)) -extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *); -extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *); -#define YPBINDPROC_SETDOM ((unsigned long)(2)) -extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *); -extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *); -extern int ypbindprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_ypstat(XDR *, ypstat*); -extern bool_t xdr_ypxfrstat(XDR *, ypxfrstat*); -extern bool_t xdr_domainname(XDR *, domainname*); -extern bool_t xdr_mapname(XDR *, mapname*); -extern bool_t xdr_peername(XDR *, peername*); -extern bool_t xdr_keydat(XDR *, keydat*); -extern bool_t xdr_valdat(XDR *, valdat*); -extern bool_t xdr_ypmap_parms(XDR *, ypmap_parms*); -extern bool_t xdr_ypreq_key(XDR *, ypreq_key*); -extern bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*); -extern bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*); -extern bool_t xdr_ypresp_val(XDR *, ypresp_val*); -extern bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*); -extern bool_t xdr_ypresp_master(XDR *, ypresp_master*); -extern bool_t xdr_ypresp_order(XDR *, ypresp_order*); -extern bool_t xdr_ypresp_all(XDR *, ypresp_all*); -extern bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*); -extern bool_t xdr_ypmaplist(XDR *, ypmaplist*); -extern bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*); -extern bool_t xdr_yppush_status(XDR *, yppush_status*); -extern bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*); -extern bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*); -extern bool_t xdr_ypbind_binding(XDR *, ypbind_binding*); -extern bool_t xdr_ypbind_resp(XDR *, ypbind_resp*); -extern bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*); -extern bool_t xdr_ypreqtype(XDR *, ypreqtype*); -extern bool_t xdr_ypresptype(XDR *, ypresptype*); -extern bool_t xdr_yprequest(XDR *, yprequest*); -extern bool_t xdr_ypresponse(XDR *, ypresponse*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_YP_H_RPCGEN */ diff --git a/include/rpcsvc/yppasswd.h b/include/rpcsvc/yppasswd.h deleted file mode 100644 index cb9192bbcf..0000000000 --- a/include/rpcsvc/yppasswd.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _YPPASSWD_H_RPCGEN -#define _YPPASSWD_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -struct x_passwd { - char *pw_name; - char *pw_passwd; - int pw_uid; - int pw_gid; - char *pw_gecos; - char *pw_dir; - char *pw_shell; -}; -typedef struct x_passwd x_passwd; - -struct yppasswd { - char *oldpass; - x_passwd newpw; -}; -typedef struct yppasswd yppasswd; -#include -extern int _yppasswd ( char * , struct x_passwd * ); -#define yppasswd(x,y) _yppasswd(x,y) - -#define YPPASSWDPROG ((unsigned long)(100009)) -#define YPPASSWDVERS ((unsigned long)(1)) - -extern void yppasswdprog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define YPPASSWDPROC_UPDATE ((unsigned long)(1)) -extern int * yppasswdproc_update_1(yppasswd *, CLIENT *); -extern int * yppasswdproc_update_1_svc(yppasswd *, struct svc_req *); -extern int yppasswdprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_x_passwd(XDR *, x_passwd*); -extern bool_t xdr_yppasswd(XDR *, yppasswd*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_YPPASSWD_H_RPCGEN */ diff --git a/include/rpcsvc/ypupdate_prot.h b/include/rpcsvc/ypupdate_prot.h deleted file mode 100644 index 637fb6a2a7..0000000000 --- a/include/rpcsvc/ypupdate_prot.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _YPUPDATE_PROT_H_RPCGEN -#define _YPUPDATE_PROT_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Sun RPC is a product of Sun Microsystems, Inc. and is provided for - * unrestricted use provided that this legend is included on all tape - * media and as a part of the software program in whole or part. Users - * may copy or modify Sun RPC without charge, but are not authorized - * to license or distribute it to anyone else except as part of a product or - * program developed by the user or with the express written consent of - * Sun Microsystems, Inc. - * - * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE - * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR - * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * - * Sun RPC is provided with no support and without any obligation on the - * part of Sun Microsystems, Inc. to assist in its use, correction, - * modification or enhancement. - * - * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE - * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC - * OR ANY PART THEREOF. - * - * In no event will Sun Microsystems, Inc. be liable for any lost revenue - * or profits or other special, indirect and consequential damages, even if - * Sun has been advised of the possibility of such damages. - * - * Sun Microsystems, Inc. - * 2550 Garcia Avenue - * Mountain View, California 94043 - * - * from @(#)ypupdate_prot.x 1.3 91/03/11 TIRPC 1.0 - * $FreeBSD: src/include/rpcsvc/ypupdate_prot.x,v 1.3 1999/08/27 23:45:13 peter Exp $ - * $DragonFly: src/include/rpcsvc/ypupdate_prot.x,v 1.2 2003/06/17 04:25:58 dillon Exp $ - */ -/* - * Copyright (c) 1986, 1990 by Sun Microsystems, Inc. - */ - -/* - * Compiled from ypupdate_prot.x using rpcgen - * This is NOT source code! - * DO NOT EDIT THIS FILE! - */ - -#ifndef _rpcsvc_ypupdate_prot_h -#define _rpcsvc_ypupdate_prot_h - -#define MAXMAPNAMELEN 255 -#define MAXYPDATALEN 1023 -#define MAXERRMSGLEN 255 - -typedef struct { - u_int yp_buf_len; - char *yp_buf_val; -} yp_buf; - -struct ypupdate_args { - char *mapname; - yp_buf key; - yp_buf datum; -}; -typedef struct ypupdate_args ypupdate_args; - -struct ypdelete_args { - char *mapname; - yp_buf key; -}; -typedef struct ypdelete_args ypdelete_args; - -#endif /* !_rpcsvc_ypupdate_prot_h */ - -#define YPU_PROG ((unsigned long)(100028)) -#define YPU_VERS ((unsigned long)(1)) - -extern void ypu_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define YPU_CHANGE ((unsigned long)(1)) -extern u_int * ypu_change_1(ypupdate_args *, CLIENT *); -extern u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *); -#define YPU_INSERT ((unsigned long)(2)) -extern u_int * ypu_insert_1(ypupdate_args *, CLIENT *); -extern u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *); -#define YPU_DELETE ((unsigned long)(3)) -extern u_int * ypu_delete_1(ypdelete_args *, CLIENT *); -extern u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *); -#define YPU_STORE ((unsigned long)(4)) -extern u_int * ypu_store_1(ypupdate_args *, CLIENT *); -extern u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *); -extern int ypu_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_yp_buf(XDR *, yp_buf*); -extern bool_t xdr_ypupdate_args(XDR *, ypupdate_args*); -extern bool_t xdr_ypdelete_args(XDR *, ypdelete_args*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_YPUPDATE_PROT_H_RPCGEN */ diff --git a/include/rpcsvc/ypxfrd.h b/include/rpcsvc/ypxfrd.h deleted file mode 100644 index af19794ef3..0000000000 --- a/include/rpcsvc/ypxfrd.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Please do not edit this file. - * It was generated using rpcgen. - */ - -#ifndef _YPXFRD_H_RPCGEN -#define _YPXFRD_H_RPCGEN - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define _YPMAXRECORD 1024 -#define _YPMAXDOMAIN 64 -#define _YPMAXMAP 64 -#define _YPMAXPEER 64 -#define YPXFRBLOCK 32767 - -enum xfrstat { - XFR_REQUEST_OK = 1, - XFR_DENIED = 2, - XFR_NOFILE = 3, - XFR_ACCESS = 4, - XFR_BADDB = 5, - XFR_READ_OK = 6, - XFR_READ_ERR = 7, - XFR_DONE = 8, - XFR_DB_ENDIAN_MISMATCH = 9, - XFR_DB_TYPE_MISMATCH = 10 -}; -typedef enum xfrstat xfrstat; - -enum xfr_db_type { - XFR_DB_ASCII = 1, - XFR_DB_BSD_HASH = 2, - XFR_DB_BSD_BTREE = 3, - XFR_DB_BSD_RECNO = 4, - XFR_DB_BSD_MPOOL = 5, - XFR_DB_BSD_NDBM = 6, - XFR_DB_GNU_GDBM = 7, - XFR_DB_DBM = 8, - XFR_DB_NDBM = 9, - XFR_DB_OPAQUE = 10, - XFR_DB_ANY = 11, - XFR_DB_UNKNOWN = 12 -}; -typedef enum xfr_db_type xfr_db_type; - -enum xfr_byte_order { - XFR_ENDIAN_BIG = 1, - XFR_ENDIAN_LITTLE = 2, - XFR_ENDIAN_ANY = 3 -}; -typedef enum xfr_byte_order xfr_byte_order; - -typedef char *xfrdomain; - -typedef char *xfrmap; - -typedef char *xfrmap_filename; - -struct ypxfr_mapname { - xfrmap xfrmap; - xfrdomain xfrdomain; - xfrmap_filename xfrmap_filename; - xfr_db_type xfr_db_type; - xfr_byte_order xfr_byte_order; -}; -typedef struct ypxfr_mapname ypxfr_mapname; - -struct xfr { - bool_t ok; - union { - struct { - u_int xfrblock_buf_len; - char *xfrblock_buf_val; - } xfrblock_buf; - xfrstat xfrstat; - } xfr_u; -}; -typedef struct xfr xfr; - -#define YPXFRD_FREEBSD_PROG ((unsigned long)(600100069)) -#define YPXFRD_FREEBSD_VERS ((unsigned long)(1)) - -extern void ypxfrd_freebsd_prog_1(struct svc_req *rqstp, SVCXPRT *transp); -#define YPXFRD_GETMAP ((unsigned long)(1)) -extern struct xfr * ypxfrd_getmap_1(ypxfr_mapname *, CLIENT *); -extern struct xfr * ypxfrd_getmap_1_svc(ypxfr_mapname *, struct svc_req *); -extern int ypxfrd_freebsd_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); - -/* the xdr functions */ -extern bool_t xdr_xfrstat(XDR *, xfrstat*); -extern bool_t xdr_xfr_db_type(XDR *, xfr_db_type*); -extern bool_t xdr_xfr_byte_order(XDR *, xfr_byte_order*); -extern bool_t xdr_xfrdomain(XDR *, xfrdomain*); -extern bool_t xdr_xfrmap(XDR *, xfrmap*); -extern bool_t xdr_xfrmap_filename(XDR *, xfrmap_filename*); -extern bool_t xdr_ypxfr_mapname(XDR *, ypxfr_mapname*); -extern bool_t xdr_xfr(XDR *, xfr*); - -#ifdef __cplusplus -} -#endif - -#endif /* !_YPXFRD_H_RPCGEN */ diff --git a/include/vers.c b/include/vers.c deleted file mode 100644 index c77b8782dc..0000000000 --- a/include/vers.c +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright (c) 2009 The DragonFly Project - * All rights reserved. - * - */ - -char version[] = "DragonFly 2.5.1-DEVELOPMENT #0: Wed Nov 11 22:37:21 CET 2009\n lentferj@atom.lan.net:/home/lentferj/repo/src/include\n"; -char ostype[] = "DragonFly"; -char osrelease[] = "2.5.1-DEVELOPMENT"; -int osreldate = 200500; -char kern_ident[] = ""; diff --git a/include/version b/include/version deleted file mode 100644 index d00491fd7e..0000000000 --- a/include/version +++ /dev/null @@ -1 +0,0 @@ -1 -- 2.41.0