From a1a8064169aeda79e3266a2db9cce25e361a86dc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 20 Mar 2017 18:10:36 +0100 Subject: remove RPC implementation The included RPC implementation is ipv4 only. Other C library projects have either deprecated the internal RPC implementation (GNU C Library) or never implemented such functionality (musl C Library). The latest rpcbind release (0.2.4) checks for libtirpc and does not allow to be build with uClibc-ng RPC without patching. The common use case for RPC nowadays is to use rpcbind together with nfs-utils to provide NFS server or client support to a system. The included RPC implementation does create issues with duplicate symbol failures when statically compiling with RPC enabled. --- libc/inet/rpc/rpc_private.h | 55 --------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 libc/inet/rpc/rpc_private.h (limited to 'libc/inet/rpc/rpc_private.h') diff --git a/libc/inet/rpc/rpc_private.h b/libc/inet/rpc/rpc_private.h deleted file mode 100644 index adb81383c..000000000 --- a/libc/inet/rpc/rpc_private.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef _RPC_PRIVATE_H -#define _RPC_PRIVATE_H -#include - -/* Now define the internal interfaces. */ -extern u_long _create_xid (void) attribute_hidden; - - -/* - * Multi-threaded support - * Group all global and static variables into a single spot. - * This area is allocated on a per-thread basis - */ -#ifdef __UCLIBC_HAS_THREADS__ -#include -#include -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 */ - - void *clnt_perr_buf_s; /* clnt_perr.c */ - - void *clntraw_private_s; /* clnt_raw.c */ - - void *callrpc_private_s; /* clnt_simp.c */ - - void *key_call_private_s; /* key_call.c */ - - void *authdes_cache_s; /* svcauth_des.c */ - void *authdes_lru_s; /* svcauth_des.c */ - - void *svc_xports_s; /* svc.c */ - void *svc_head_s; /* svc.c */ - - void *svcraw_private_s; /* svc_raw.c */ - - void *svcsimple_proglst_s; /* svc_simple.c */ - void *svcsimple_transp_s; /* svc_simple.c */ -}; - -extern struct rpc_thread_variables *__rpc_thread_variables(void) - __attribute__ ((const)) attribute_hidden; -extern void __rpc_thread_svc_cleanup (void) attribute_hidden; -extern void __rpc_thread_clnt_cleanup (void) attribute_hidden; -/*extern void __rpc_thread_key_cleanup (void) attribute_hidden;*/ - -extern void __rpc_thread_destroy (void); - -#define RPC_THREAD_VARIABLE(x) (__rpc_thread_variables()->x) - -#endif /* __UCLIBC_HAS_THREADS__ */ - -#endif -- cgit v1.2.3