diff options
Diffstat (limited to 'include/rpc')
-rw-r--r-- | include/rpc/auth.h | 47 | ||||
-rw-r--r-- | include/rpc/auth_des.h | 38 | ||||
-rw-r--r-- | include/rpc/auth_unix.h | 9 | ||||
-rw-r--r-- | include/rpc/clnt.h | 33 | ||||
-rw-r--r-- | include/rpc/des_crypt.h | 18 | ||||
-rw-r--r-- | include/rpc/key_prot.h | 18 | ||||
-rw-r--r-- | include/rpc/netdb.h | 54 | ||||
-rw-r--r-- | include/rpc/pmap_clnt.h | 24 | ||||
-rw-r--r-- | include/rpc/pmap_prot.h | 10 | ||||
-rw-r--r-- | include/rpc/pmap_rmt.h | 10 | ||||
-rw-r--r-- | include/rpc/rpc.h | 69 | ||||
-rw-r--r-- | include/rpc/rpc_msg.h | 20 | ||||
-rw-r--r-- | include/rpc/svc.h | 43 | ||||
-rw-r--r-- | include/rpc/svc_auth.h | 15 | ||||
-rw-r--r-- | include/rpc/types.h | 1 | ||||
-rw-r--r-- | include/rpc/xdr.h | 53 |
16 files changed, 0 insertions, 462 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h deleted file mode 100644 index 2e55cce11d..0000000000 --- a/include/rpc/auth.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef _RPC_AUTH_H -#include <sunrpc/rpc/auth.h> - -# ifndef _ISOMAC - -libc_hidden_proto (getnetname) -libc_hidden_proto (netname2user) -libc_hidden_proto (host2netname) -libc_hidden_proto (user2netname) -libc_hidden_proto (key_gendes) - -/* Now define the internal interfaces. */ -struct key_netstarg; -extern int key_setnet (struct key_netstarg *arg); - -#define DECLARE_NSS_PROTOTYPES(service) \ -extern enum nss_status _nss_ ##service ## _netname2user \ - (char netname[MAXNETNAMELEN + 1], uid_t *uidp, \ - gid_t *gidp, int *gidlenp, gid_t *gidlist, \ - int *errnop); - -DECLARE_NSS_PROTOTYPES (nis) -DECLARE_NSS_PROTOTYPES (nisplus) - -#undef DECLARE_NSS_PROTOTYPES - -libc_hidden_proto (key_encryptsession_pk) -libc_hidden_proto (key_decryptsession_pk) - -libc_hidden_proto (_null_auth) -libc_hidden_proto (authnone_create) -libc_hidden_proto (authunix_create) -libc_hidden_proto (authunix_create_default) -libc_hidden_proto (xdr_des_block) -libc_hidden_proto (xdr_opaque_auth) -libc_hidden_proto (authdes_create) -libc_hidden_proto (authdes_pk_create) -libc_hidden_proto (key_decryptsession) -libc_hidden_proto (key_encryptsession) -libc_hidden_proto (key_get_conv) -libc_hidden_proto (key_secretkey_is_set) -libc_hidden_proto (key_setnet) -libc_hidden_proto (key_setsecret) -libc_hidden_proto (netname2host) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h deleted file mode 100644 index 6afed56b71..0000000000 --- a/include/rpc/auth_des.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef _RPC_AUTH_DES_H - -#include <sunrpc/rpc/auth_des.h> - -# ifndef _ISOMAC - -libc_hidden_proto (getpublickey) -libc_hidden_proto (getsecretkey) -libc_hidden_proto (rtime) - -extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred); -extern bool_t xdr_authdes_verf (XDR *xdrs, - struct authdes_verf *verf); -struct svc_req; -struct rpc_msg; -extern enum auth_stat _svcauth_des (struct svc_req *rqst, - struct rpc_msg *msg); - - -#define DECLARE_NSS_PROTOTYPES(service) \ -extern enum nss_status _nss_ ## service ## _getpublickey \ - (const char *netname, char *pkey, int *errnop); \ -extern enum nss_status _nss_ ## service ## _getsecretkey \ - (const char *netname, char *skey, char *passwd, \ - int *errnop); - -DECLARE_NSS_PROTOTYPES (files) -DECLARE_NSS_PROTOTYPES (nis) -DECLARE_NSS_PROTOTYPES (nisplus) - -#undef DECLARE_NSS_PROTOTYPES - -libc_hidden_proto (authdes_getucred) -libc_hidden_proto (xdr_authdes_cred) -libc_hidden_proto (xdr_authdes_verf) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h deleted file mode 100644 index 019efa275a..0000000000 --- a/include/rpc/auth_unix.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _RPC_AUTH_UNIX_H -#include <sunrpc/rpc/auth_unix.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xdr_authunix_parms) - -# endif /* !_ISOMAC */ -#endif /* rpc/auth_unix.h */ diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h deleted file mode 100644 index a397023a93..0000000000 --- a/include/rpc/clnt.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef _RPC_CLNT_H -#include <sunrpc/rpc/clnt.h> - -# ifndef _ISOMAC - -/* Now define the internal interfaces. */ -extern int _openchild (const char *command, FILE **fto, FILE **ffrom); - -extern CLIENT *__libc_clntudp_bufcreate (struct sockaddr_in *__raddr, - u_long __program, u_long __version, - struct timeval __wait_resend, - int *__sockp, u_int __sendsz, - u_int __recvsz, int __flags); - -libc_hidden_proto (clnt_sperrno) -libc_hidden_proto (clnt_spcreateerror) -libc_hidden_proto (clnt_perror) -libc_hidden_proto (clnt_sperror) -libc_hidden_proto (_rpc_dtablesize) -libc_hidden_proto (callrpc) -libc_hidden_proto (clnt_create) -libc_hidden_proto (clnt_pcreateerror) -libc_hidden_proto (clnt_perrno) -libc_hidden_proto (clntraw_create) -libc_hidden_proto (clnttcp_create) -libc_hidden_proto (clntudp_bufcreate) -libc_hidden_proto (clntudp_create) -libc_hidden_proto (get_myaddress) -libc_hidden_proto (clntunix_create) -libc_hidden_proto (__libc_clntudp_bufcreate) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/des_crypt.h b/include/rpc/des_crypt.h deleted file mode 100644 index 7a34957df8..0000000000 --- a/include/rpc/des_crypt.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __DES_CRYPT_H__ -#include <sunrpc/rpc/des_crypt.h> - -# ifndef _ISOMAC - -/* Now define the internal interfaces. */ - -extern int xencrypt (char *secret, char *passwd); -extern int xdecrypt (char *secret, char *passwd); - -libc_hidden_proto (des_setparity) -libc_hidden_proto (ecb_crypt) -libc_hidden_proto (cbc_crypt) -libc_hidden_proto (xencrypt) -libc_hidden_proto (xdecrypt) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/key_prot.h b/include/rpc/key_prot.h deleted file mode 100644 index 4711a94edf..0000000000 --- a/include/rpc/key_prot.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _KEY_PROT_H_RPCGEN -#include <sunrpc/rpc/key_prot.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xdr_cryptkeyarg) -libc_hidden_proto (xdr_cryptkeyarg2) -libc_hidden_proto (xdr_cryptkeyres) -libc_hidden_proto (xdr_key_netstarg) -libc_hidden_proto (xdr_key_netstres) -libc_hidden_proto (xdr_keybuf) -libc_hidden_proto (xdr_keystatus) -libc_hidden_proto (xdr_getcredres) -libc_hidden_proto (xdr_netnamestr) -libc_hidden_proto (xdr_unixcred) - -# endif /* !_ISOMAC */ -#endif /* rpc/key_prot.h */ diff --git a/include/rpc/netdb.h b/include/rpc/netdb.h deleted file mode 100644 index 9b84668be7..0000000000 --- a/include/rpc/netdb.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef _RPC_NETDB_H -#include <sunrpc/rpc/netdb.h> - -# ifndef _ISOMAC - -extern int __getrpcbyname_r (const char *__name, struct rpcent *__result_buf, - char *__buffer, size_t __buflen, - struct rpcent **__result); -extern int __old_getrpcbyname_r (const char *__name, - struct rpcent *__result_buf, - char *__buffer, size_t __buflen, - struct rpcent **__result); - -extern int __getrpcbynumber_r (int __number, struct rpcent *__result_buf, - char *__buffer, size_t __buflen, - struct rpcent **__result); -extern int __old_getrpcbynumber_r (int __number, struct rpcent *__result_buf, - char *__buffer, size_t __buflen, - struct rpcent **__result); - -extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer, - size_t __buflen, struct rpcent **__result) - attribute_hidden; -extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer, - size_t __buflen, struct rpcent **__result); - -struct parser_data; -extern int _nss_files_parse_rpcent (char *line, struct rpcent *result, - struct parser_data *data, - size_t datalen, int *errnop); -libnss_files_hidden_proto (_nss_files_parse_rpcent) - -#define DECLARE_NSS_PROTOTYPES(service) \ -extern enum nss_status _nss_ ## service ## _setrpcent (int); \ -extern enum nss_status _nss_ ## service ## _endrpcent (void); \ -extern enum nss_status _nss_ ## service ## _getrpcent_r \ - (struct rpcent *rpc, char *buffer, size_t buflen, \ - int *errnop); \ -extern enum nss_status _nss_ ## service ## _getrpcbyname_r \ - (const char *name, struct rpcent *rpc, \ - char *buffer, size_t buflen, int *errnop); \ -extern enum nss_status _nss_ ## service ## _getrpcbynumber_r \ - (int number, struct rpcent *rpc, \ - char *buffer, size_t buflen, int *errnop); - - -DECLARE_NSS_PROTOTYPES (files) -DECLARE_NSS_PROTOTYPES (nis) -DECLARE_NSS_PROTOTYPES (nisplus) - -#undef DECLARE_NSS_PROTOTYPES - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h deleted file mode 100644 index ec907c28cc..0000000000 --- a/include/rpc/pmap_clnt.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef _RPC_PMAP_CLNT_H -#include <sunrpc/rpc/pmap_clnt.h> - -# ifndef _ISOMAC - -libc_hidden_proto (pmap_getport) -libc_hidden_proto (pmap_set) -libc_hidden_proto (pmap_unset) - -/* Defined in pm_getport.c. */ -extern int __get_socket (struct sockaddr_in *saddr) - attribute_hidden internal_function; -extern u_short __libc_rpc_getport (struct sockaddr_in *address, u_long program, - u_long version, u_int protocol, - time_t timeout_sec, time_t tottimeout_sec) - internal_function; -libc_hidden_proto (__libc_rpc_getport) - -libc_hidden_proto (clnt_broadcast) -libc_hidden_proto (pmap_getmaps) -libc_hidden_proto (pmap_rmtcall) - -# endif /* !_ISOMAC */ -#endif /* rpc/pmap_clnt.h */ diff --git a/include/rpc/pmap_prot.h b/include/rpc/pmap_prot.h deleted file mode 100644 index a2573d106f..0000000000 --- a/include/rpc/pmap_prot.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _RPC_PMAP_PROT_H -#include <sunrpc/rpc/pmap_prot.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xdr_pmap) -libc_hidden_proto (xdr_pmaplist) - -# endif /* !_ISOMAC */ -#endif /* rpc/pmap_prot.h */ diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h deleted file mode 100644 index ae53a02652..0000000000 --- a/include/rpc/pmap_rmt.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef _RPC_PMAP_RMT_H -#include <sunrpc/rpc/pmap_rmt.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xdr_rmtcall_args) -libc_hidden_proto (xdr_rmtcallres) - -# endif /* !_ISOMAC */ -#endif /* rpc/pmap_rmt.h */ diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h deleted file mode 100644 index 60c78968de..0000000000 --- a/include/rpc/rpc.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef _RPC_RPC_H -#include <sunrpc/rpc/rpc.h> - -# ifndef _ISOMAC - -#include <libc-tsd.h> - -/* Now define the internal interfaces. */ -extern unsigned long _create_xid (void); - -/* - * Multi-threaded support - * Group all global and static variables into a single spot. - * This area is allocated on a per-thread basis - */ -#ifdef _RPC_THREAD_SAFE_ -struct rpc_thread_variables { - fd_set svc_fdset_s; /* Global, rpc_common.c */ - struct rpc_createerr rpc_createerr_s; /* Global, rpc_common.c */ - struct pollfd *svc_pollfd_s; /* Global, rpc_common.c */ - int svc_max_pollfd_s; /* Global, rpc_common.c */ - - char *clnt_perr_buf_s; /* clnt_perr.c */ - - struct clntraw_private_s *clntraw_private_s; /* clnt_raw.c */ - - struct callrpc_private_s *callrpc_private_s; /* clnt_simp.c */ - - struct key_call_private *key_call_private_s; /* key_call.c */ - - struct cache_entry *authdes_cache_s; /* svcauth_des.c */ - int *authdes_lru_s; /* svcauth_des.c */ - - SVCXPRT **svc_xports_s; /* svc.c */ - struct svc_callout *svc_head_s; /* svc.c */ - - struct svcraw_private_s *svcraw_private_s; /* svc_raw.c */ - - struct proglst_ *svcsimple_proglst_s; /* svc_simple.c */ - SVCXPRT *svcsimple_transp_s; /* svc_simple.c */ -}; - -extern struct rpc_thread_variables *__rpc_thread_variables(void) - __attribute__ ((const)); -extern void __rpc_thread_svc_cleanup (void); -extern void __rpc_thread_clnt_cleanup (void); -extern void __rpc_thread_key_cleanup (void); - -extern void __rpc_thread_destroy (void); - -__libc_tsd_define (extern, struct rpc_thread_variables *, RPC_VARS) - -#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x) - -libc_hidden_proto (__rpc_thread_svc_max_pollfd) -libc_hidden_proto (__rpc_thread_svc_pollfd) -libc_hidden_proto (__rpc_thread_svc_fdset) -libc_hidden_proto (__rpc_thread_createerr) - -/* Perform a host name lookup for NAME and return the first IPv4 - address in *ADDR. Return 0 on success and -1 on error (and set an - RPC error). */ -int __libc_rpc_gethostbyname (const char *host, struct sockaddr_in *addr) - attribute_hidden; - -#endif /* _RPC_THREAD_SAFE_ */ - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h deleted file mode 100644 index 93c5ab8764..0000000000 --- a/include/rpc/rpc_msg.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef _RPC_MSG_H -#include <sunrpc/rpc/rpc_msg.h> - -# ifndef _ISOMAC - -libc_hidden_proto (_seterr_reply) - -/* Now define the internal interfaces. */ - -extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr); -extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar); - -libc_hidden_proto (xdr_accepted_reply) -libc_hidden_proto (xdr_callhdr) -libc_hidden_proto (xdr_callmsg) -libc_hidden_proto (xdr_rejected_reply) -libc_hidden_proto (xdr_replymsg) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/svc.h b/include/rpc/svc.h deleted file mode 100644 index 465bf4427d..0000000000 --- a/include/rpc/svc.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef _RPC_SVC_H -#include <sunrpc/rpc/svc.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xprt_register) -libc_hidden_proto (xprt_unregister) -libc_hidden_proto (svc_register) -libc_hidden_proto (svc_unregister) -libc_hidden_proto (svcerr_auth) -libc_hidden_proto (svcerr_noprog) -libc_hidden_proto (svcerr_progvers) - -/* Now define the internal interfaces. */ -extern SVCXPRT *svcfd_create (int fd, u_int sendsize, u_int recvsize); - -extern int svcudp_enablecache (SVCXPRT *transp, u_long size); -extern SVCXPRT *svcunixfd_create (int fd, u_int sendsize, u_int recvsize); - -libc_hidden_proto (svc_exit) -libc_hidden_proto (svc_getreq) -libc_hidden_proto (svc_getreqset) -libc_hidden_proto (svc_run) -libc_hidden_proto (svc_sendreply) -libc_hidden_proto (svcerr_decode) -libc_hidden_proto (svcerr_noproc) -libc_hidden_proto (svcerr_systemerr) -libc_hidden_proto (svcerr_weakauth) -libc_hidden_proto (svcfd_create) -libc_hidden_proto (svcraw_create) -libc_hidden_proto (svctcp_create) -libc_hidden_proto (svcudp_bufcreate) -libc_hidden_proto (svcudp_create) -libc_hidden_proto (svcudp_enablecache) -libc_hidden_proto (svcunix_create) -libc_hidden_proto (svcunixfd_create) -libc_hidden_proto (svc_getreq_common) -libc_hidden_proto (svc_getreq_poll) - -extern void __svc_accept_failed (void) attribute_hidden; - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/svc_auth.h b/include/rpc/svc_auth.h deleted file mode 100644 index 2609d19544..0000000000 --- a/include/rpc/svc_auth.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _RPC_SVC_AUTH_H -#include <sunrpc/rpc/svc_auth.h> - -# ifndef _ISOMAC - -/* Now define the internal interfaces. */ -extern enum auth_stat _svcauth_unix (struct svc_req *rqst, - struct rpc_msg *msg); -extern enum auth_stat _svcauth_short (struct svc_req *rqst, - struct rpc_msg *msg); - -libc_hidden_proto (_authenticate) - -# endif /* !_ISOMAC */ -#endif diff --git a/include/rpc/types.h b/include/rpc/types.h deleted file mode 100644 index 53df7e666b..0000000000 --- a/include/rpc/types.h +++ /dev/null @@ -1 +0,0 @@ -#include <sunrpc/rpc/types.h> diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h deleted file mode 100644 index e1bff1cd1c..0000000000 --- a/include/rpc/xdr.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef _RPC_XDR_H -#include <sunrpc/rpc/xdr.h> - -# ifndef _ISOMAC - -libc_hidden_proto (xdrstdio_create) -libc_hidden_proto (xdr_array) -libc_hidden_proto (xdr_bool) -libc_hidden_proto (xdr_bytes) -libc_hidden_proto (xdr_char) -libc_hidden_proto (xdr_double) -libc_hidden_proto (xdr_enum) -libc_hidden_proto (xdr_float) -libc_hidden_proto (xdr_free) -libc_hidden_proto (xdr_int) -libc_hidden_proto (xdr_long) -libc_hidden_proto (xdr_netobj) -libc_hidden_proto (xdr_opaque) -libc_hidden_proto (xdr_pointer) -libc_hidden_proto (xdr_reference) -libc_hidden_proto (xdr_short) -libc_hidden_proto (xdr_string) -libc_hidden_proto (xdr_u_char) -libc_hidden_proto (xdr_u_int) -libc_hidden_proto (xdr_u_long) -libc_hidden_proto (xdr_u_short) -libc_hidden_proto (xdr_union) -libc_hidden_proto (xdr_vector) -libc_hidden_proto (xdr_void) -libc_hidden_proto (xdr_wrapstring) -libc_hidden_proto (xdrmem_create) -libc_hidden_proto (xdrrec_create) -libc_hidden_proto (xdrrec_endofrecord) -libc_hidden_proto (xdrrec_eof) -libc_hidden_proto (xdrrec_skiprecord) -libc_hidden_proto (xdr_int16_t) -libc_hidden_proto (xdr_int32_t) -libc_hidden_proto (xdr_int8_t) -libc_hidden_proto (xdr_sizeof) -libc_hidden_proto (xdr_uint16_t) -libc_hidden_proto (xdr_uint32_t) -libc_hidden_proto (xdr_uint8_t) -libc_hidden_proto (xdr_hyper) -libc_hidden_proto (xdr_u_hyper) -libc_hidden_proto (xdr_longlong_t) -libc_hidden_proto (xdr_u_longlong_t) -libc_hidden_proto (xdr_int64_t) -libc_hidden_proto (xdr_uint64_t) -libc_hidden_proto (xdr_quad_t) -libc_hidden_proto (xdr_u_quad_t) - -# endif /* !_ISOMAC */ -#endif /* rpc/xdr.h */ |