about summary refs log tree commit diff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2023-10-02 14:55:25 +0200
committerArjun Shankar <arjun@redhat.com>2023-10-24 12:31:00 +0200
commit9b63a8ac404733851798680da1dc9f53ee70b64c (patch)
tree37ff05b0c5aec7403020fe60a14ddcbbb47c5b4e /nss/Makefile
parenta25a060c358358d61d683dc8e9aa9df91e877a35 (diff)
downloadglibc-9b63a8ac404733851798680da1dc9f53ee70b64c.tar.gz
glibc-9b63a8ac404733851798680da1dc9f53ee70b64c.tar.xz
glibc-9b63a8ac404733851798680da1dc9f53ee70b64c.zip
Move 'rpc' routines from 'inet' into 'nss'
The getrpcby* and getrpcent* routines are entry points for nss
functionality.  This commit moves them from the 'inet' subdirectory to
'nss'.  The Versions entries for these routines along with a test,
located in the 'sunrpc' subdirectory, are also moved into 'nss'.
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index df22d3655c..cbfd5dc692 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -214,6 +214,21 @@ CFLAGS-getpwent.c += -fexceptions
 CFLAGS-getpwent_r.c += -fexceptions
 endif
 
+# rpc routines:
+routines += \
+  getrpcbyname \
+  getrpcbyname_r \
+  getrpcbynumber \
+  getrpcbynumber_r \
+  getrpcent \
+  getrpcent_r \
+  # routines
+
+ifeq ($(have-thread-library),yes)
+CFLAGS-getrpcent_r.c += -fexceptions
+CFLAGS-getrpcent.c += -fexceptions
+endif
+
 # shadow routines
 routines += \
   fgetspent \
@@ -276,6 +291,7 @@ tests := \
   bug17079 \
   test-digits-dots \
   test-netdb \
+  test-rpcent \
   testgrp \
   tst-fgetsgent_r \
   tst-gethnm \