diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-20 18:10:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-20 18:10:36 +0100 |
commit | a1a8064169aeda79e3266a2db9cce25e361a86dc (patch) | |
tree | 526902649b5dfb9e1e9f6c632349df475a6bb597 /libc/inet/rpc/rpc_private.h | |
parent | 2d8ea0524b016d29cf28615449b22b96dd5067b2 (diff) |
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.
Diffstat (limited to 'libc/inet/rpc/rpc_private.h')
-rw-r--r-- | libc/inet/rpc/rpc_private.h | 55 |
1 files changed, 0 insertions, 55 deletions
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 <rpc/rpc.h> - -/* 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 <pthread.h> -#include <bits/libc-lock.h> -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 |