aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-04-16 21:59:36 -0400
committerUlrich Drepper <drepper@gmail.com>2011-04-16 21:59:36 -0400
commit7b57bfe5988e476ea40934457dfd1c8a231e2391 (patch)
tree33dbec2b9a1a8fd8472a214945090f31d5372a8e
parente6c61494125126d2ba77e5d99f83887a2ed49783 (diff)
downloadglibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.xz
glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.zip
Obsolete RPC implementation in libc.
-rw-r--r--ChangeLog74
-rw-r--r--Makefile54
-rw-r--r--NEWS8
-rw-r--r--include/libc-symbols.h15
-rw-r--r--include/rpc/auth.h30
-rw-r--r--include/rpc/auth_des.h9
-rw-r--r--include/rpc/auth_unix.h3
-rw-r--r--include/rpc/clnt.h39
-rw-r--r--include/rpc/des_crypt.h2
-rw-r--r--include/rpc/key_prot.h23
-rw-r--r--include/rpc/pmap_clnt.h4
-rw-r--r--include/rpc/pmap_prot.h7
-rw-r--r--include/rpc/pmap_rmt.h7
-rw-r--r--include/rpc/rpc_msg.h9
-rw-r--r--include/rpc/svc.h35
-rw-r--r--include/rpc/svc_auth.h4
-rw-r--r--include/rpc/xdr.h95
-rw-r--r--nis/Makefile11
-rw-r--r--nss/Makefile5
-rw-r--r--sunrpc/Makefile67
-rw-r--r--sunrpc/auth_des.c25
-rw-r--r--sunrpc/auth_none.c10
-rw-r--r--sunrpc/auth_unix.c38
-rw-r--r--sunrpc/authdes_prot.c29
-rw-r--r--sunrpc/authuxprot.c24
-rw-r--r--sunrpc/clnt_gen.c12
-rw-r--r--sunrpc/clnt_perr.c15
-rw-r--r--sunrpc/clnt_raw.c16
-rw-r--r--sunrpc/clnt_simp.c3
-rw-r--r--sunrpc/clnt_tcp.c30
-rw-r--r--sunrpc/clnt_udp.c38
-rw-r--r--sunrpc/clnt_unix.c50
-rw-r--r--sunrpc/des_crypt.c5
-rw-r--r--sunrpc/des_soft.c3
-rw-r--r--sunrpc/get_myaddr.c5
-rw-r--r--sunrpc/key_call.c90
-rw-r--r--sunrpc/key_prot.c65
-rw-r--r--sunrpc/netname.c13
-rw-r--r--sunrpc/pm_getmaps.c11
-rw-r--r--sunrpc/pm_getport.c19
-rw-r--r--sunrpc/pmap_clnt.c22
-rw-r--r--sunrpc/pmap_prot.c10
-rw-r--r--sunrpc/pmap_prot2.c10
-rw-r--r--sunrpc/pmap_rmt.c46
-rw-r--r--sunrpc/publickey.c3
-rw-r--r--sunrpc/rpc_cmsg.c30
-rw-r--r--sunrpc/rpc_common.c3
-rw-r--r--sunrpc/rpc_dtable.c2
-rw-r--r--sunrpc/rpc_prot.c60
-rw-r--r--sunrpc/rpc_thread.c12
-rw-r--r--sunrpc/rtime.c2
-rw-r--r--sunrpc/svc.c61
-rw-r--r--sunrpc/svc_auth.c2
-rw-r--r--sunrpc/svc_authux.c7
-rw-r--r--sunrpc/svc_raw.c8
-rw-r--r--sunrpc/svc_run.c4
-rw-r--r--sunrpc/svc_simple.c17
-rw-r--r--sunrpc/svc_tcp.c26
-rw-r--r--sunrpc/svc_udp.c21
-rw-r--r--sunrpc/svc_unix.c20
-rw-r--r--sunrpc/svcauth_des.c1
-rw-r--r--sunrpc/xcrypt.c8
-rw-r--r--sunrpc/xdr.c157
-rw-r--r--sunrpc/xdr_array.c9
-rw-r--r--sunrpc/xdr_float.c2
-rw-r--r--sunrpc/xdr_intXX_t.c36
-rw-r--r--sunrpc/xdr_mem.c6
-rw-r--r--sunrpc/xdr_rec.c8
-rw-r--r--sunrpc/xdr_ref.c11
-rw-r--r--sunrpc/xdr_sizeof.c5
-rw-r--r--sunrpc/xdr_stdio.c5
71 files changed, 993 insertions, 623 deletions
diff --git a/ChangeLog b/ChangeLog
index d3766105dd..468799ce6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,77 @@
+2011-04-16 Ulrich Drepper <drepper@gmail.com>
+
+ * Makefile: Add rules to build linkobj/libc.so.
+ * include/libc-symbols.h: Define libc_hidden_nolink.
+ * include/rpc/auth.h: Mark functions which are to be hidden.
+ * include/rpc/auth_des.h: Likewise.
+ * include/rpc/auth_unix.h: Likewise.
+ * include/rpc/clnt.h: Likewise.
+ * include/rpc/des_crypt.h: Likewise.
+ * include/rpc/key_prot.h: Likewise.
+ * include/rpc/pmap_clnt.h: Likewise.
+ * include/rpc/pmap_prot.h: Likewise.
+ * include/rpc/pmap_rmt.h: Likewise.
+ * include/rpc/rpc_msg.h: Likewise.
+ * include/rpc/svc.h: Likewise.
+ * include/rpc/svc_auth.h: Likewise.
+ * include/rpc/xdr.h: Likewise.
+ * nis/Makefile: Link all DSOs against linkobj/libc.so.
+ * nss/Makefile: Likewise.
+ * sunrpc/Makefile: Don't install headers. Build library with normal
+ entry points. Don't build rpcinfo. Link RPC tests appropriately.
+ * sunrpc/auth_des.c: Hide exported symbols by default, export some
+ for the compat linking library. Remove use of INTDEF/INTUSE.
+ * sunrpc/auth_none.c: Likewise.
+ * sunrpc/auth_unix.c: Likewise.
+ * sunrpc/authdes_prot.c: Likewise.
+ * sunrpc/authuxprot.c: Likewise.
+ * sunrpc/clnt_gen.c: Likewise.
+ * sunrpc/clnt_perr.c: Likewise.
+ * sunrpc/clnt_raw.c: Likewise.
+ * sunrpc/clnt_simp.c: Likewise.
+ * sunrpc/clnt_tcp.c: Likewise.
+ * sunrpc/clnt_udp.c: Likewise.
+ * sunrpc/clnt_unix.c: Likewise.
+ * sunrpc/des_crypt.c: Likewise.
+ * sunrpc/des_soft.c: Likewise.
+ * sunrpc/get_myaddr.c: Likewise.
+ * sunrpc/key_call.c: Likewise.
+ * sunrpc/key_prot.c: Likewise.
+ * sunrpc/netname.c: Likewise.
+ * sunrpc/pm_getmaps.c: Likewise.
+ * sunrpc/pm_getport.c: Likewise.
+ * sunrpc/pmap_clnt.c: Likewise.
+ * sunrpc/pmap_prot.c: Likewise.
+ * sunrpc/pmap_prot2.c: Likewise.
+ * sunrpc/pmap_rmt.c: Likewise.
+ * sunrpc/publickey.c: Likewise.
+ * sunrpc/rpc_cmsg.c: Likewise.
+ * sunrpc/rpc_common.c: Likewise.
+ * sunrpc/rpc_dtable.c: Likewise.
+ * sunrpc/rpc_prot.c: Likewise.
+ * sunrpc/rpc_thread.c: Likewise.
+ * sunrpc/rtime.c: Likewise.
+ * sunrpc/svc.c: Likewise.
+ * sunrpc/svc_auth.c: Likewise.
+ * sunrpc/svc_authux.c: Likewise.
+ * sunrpc/svc_raw.c: Likewise.
+ * sunrpc/svc_run.c: Likewise.
+ * sunrpc/svc_simple.c: Likewise.
+ * sunrpc/svc_tcp.c: Likewise.
+ * sunrpc/svc_udp.c: Likewise.
+ * sunrpc/svc_unix.c: Likewise.
+ * sunrpc/svcauth_des.c: Likewise.
+ * sunrpc/xcrypt.c: Likewise.
+ * sunrpc/xdr.c: Likewise.
+ * sunrpc/xdr_array.c: Likewise.
+ * sunrpc/xdr_float.c: Likewise.
+ * sunrpc/xdr_intXX_t.c: Likewise.
+ * sunrpc/xdr_mem.c: Likewise.
+ * sunrpc/xdr_rec.c: Likewise.
+ * sunrpc/xdr_ref.c: Likewise.
+ * sunrpc/xdr_sizeof.c: Likewise.
+ * sunrpc/xdr_stdio.c: Likewise.
+
2011-04-10 Ulrich Drepper <drepper@gmail.com>
[BZ #12650]
diff --git a/Makefile b/Makefile
index 61cfa436c4..ea7a5b5e58 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2002,2003,2004,2005,2006,2008,2009
+# Copyright (C) 1991-2002,2003,2004,2005,2006,2008,2009,2011
# Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@@ -63,8 +63,8 @@ endif # $(AUTOCONF) = no
+subdir_targets := subdir_lib objects objs others subdir_mostlyclean \
subdir_clean subdir_distclean subdir_realclean \
tests xtests subdir_lint.out \
- subdir_update-abi subdir_check-abi \
- subdir_echo-headers \
+ subdir_update-abi subdir_check-abi \
+ subdir_echo-headers \
subdir_install \
subdir_objs subdir_stubs subdir_testclean \
$(addprefix install-, no-libc.a bin lib data headers others)
@@ -135,6 +135,20 @@ lib-noranlib: subdir_lib
ifeq (yes,$(build-shared))
# Build the shared object from the PIC object library.
lib: $(common-objpfx)libc.so
+
+lib: $(common-objpfx)linkobj/libc.so
+
+$(common-objpfx)linkobj/libc.so: $(elfobjdir)/soinit.os $(common-objpfx)linkobj/libc_pic.a $(elfobjdir)/sofini.os $(elfobjdir)/interp.os $(elfobjdir)/ld.so $(common-objpfx)shlib.lds $(common-objpfx)elf/ld.so
+ $(build-shlib)
+
+$(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a $(common-objpfx)sunrpc/librpc_compat_pic.a
+ $(..)./scripts/mkinstalldirs $(common-objpfx)linkobj
+ (cd $(common-objpfx)linkobj; \
+ $(AR) x ../libc_pic.a; \
+ rm $$($(AR) t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//'); \
+ $(AR) x ../sunrpc/librpc_compat_pic.a; \
+ $(AR) cr libc_pic.a *.os; \
+ rm *.os)
endif
@@ -247,11 +261,11 @@ tests-clean:
tests: $(objpfx)c++-types-check.out $(objpfx)check-local-headers.out
ifneq ($(CXX),no)
check-data := $(firstword $(wildcard \
- $(foreach D,$(add-ons) scripts,\
- $(patsubst %,$D/data/c++-types-%.data,\
- $(abi-name) \
- $(addsuffix -$(config-os),\
- $(config-machine) \
+ $(foreach D,$(add-ons) scripts,\
+ $(patsubst %,$D/data/c++-types-%.data,\
+ $(abi-name) \
+ $(addsuffix -$(config-os),\
+ $(config-machine) \
$(base-machine))))))
ifneq (,$(check-data))
$(objpfx)c++-types-check.out: $(check-data) scripts/check-c++-types.sh
@@ -408,18 +422,18 @@ install: remove-old-headers
endif
endif
-headers2_0 := __math.h bytesex.h confname.h direntry.h elfclass.h \
- errnos.h fcntlbits.h huge_val.h ioctl-types.h \
- ioctls.h iovec.h jmp_buf.h libc-lock.h local_lim.h \
- mathcalls.h mpool.h nan.h ndbm.h posix1_lim.h \
- posix2_lim.h posix_opt.h resourcebits.h schedbits.h \
- selectbits.h semaphorebits.h sigaction.h sigcontext.h \
- signum.h sigset.h sockaddrcom.h socketbits.h stab.def \
- statbuf.h statfsbuf.h stdio-lock.h stdio_lim.h \
- syscall-list.h termbits.h timebits.h ustatbits.h \
- utmpbits.h utsnamelen.h waitflags.h waitstatus.h \
- xopen_lim.h gnu/types.h sys/ipc_buf.h \
- sys/kernel_termios.h sys/msq_buf.h sys/sem_buf.h \
+headers2_0 := __math.h bytesex.h confname.h direntry.h elfclass.h \
+ errnos.h fcntlbits.h huge_val.h ioctl-types.h \
+ ioctls.h iovec.h jmp_buf.h libc-lock.h local_lim.h \
+ mathcalls.h mpool.h nan.h ndbm.h posix1_lim.h \
+ posix2_lim.h posix_opt.h resourcebits.h schedbits.h \
+ selectbits.h semaphorebits.h sigaction.h sigcontext.h \
+ signum.h sigset.h sockaddrcom.h socketbits.h stab.def \
+ statbuf.h statfsbuf.h stdio-lock.h stdio_lim.h \
+ syscall-list.h termbits.h timebits.h ustatbits.h \
+ utmpbits.h utsnamelen.h waitflags.h waitstatus.h \
+ xopen_lim.h gnu/types.h sys/ipc_buf.h \
+ sys/kernel_termios.h sys/msq_buf.h sys/sem_buf.h \
sys/shm_buf.h sys/socketcall.h sigstack.h
.PHONY: remove-old-headers
diff --git a/NEWS b/NEWS
index 528688dc5b..670dbf3018 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes. 2011-4-10
+GNU C Library NEWS -- history of user-visible changes. 2011-4-16
Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
See the end for copying conditions.
@@ -7,6 +7,12 @@ using `glibc' in the "product" field.
Version 2.14
+* The RPC implementation in libc is obsoleted. Old programs keep working
+ but new programs cannot be linked with the routines in libc anymore.
+ Programs in need