Browse Source

Move 'hosts' routines from 'inet' into 'nss'

The gethostby* and gethostent* routines are entry points for nss
functionality.  This commit moves them from the 'inet' subdirectory to
'nss'.
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
azanella/bz30944-memcpy-zen
Arjun Shankar 3 years ago
parent
commit
a7e8d0b90b
  1. 17
      inet/Makefile
  2. 4
      inet/Versions
  3. 24
      nss/Makefile
  4. 2
      nss/Versions
  5. 0
      nss/gethstbyad.c
  6. 0
      nss/gethstbyad_r.c
  7. 0
      nss/gethstbynm.c
  8. 0
      nss/gethstbynm2.c
  9. 0
      nss/gethstbynm2_r.c
  10. 0
      nss/gethstbynm_r.c
  11. 0
      nss/gethstent.c
  12. 0
      nss/gethstent_r.c
  13. 0
      nss/tst-gethnm.c

17
inet/Makefile

@ -46,14 +46,6 @@ routines := \
ether_line \
ether_ntoa \
ether_ntoa_r \
gethstbyad \
gethstbyad_r \
gethstbynm \
gethstbynm2 \
gethstbynm2_r \
gethstbynm_r \
gethstent \
gethstent_r \
getipv4sourcefilter \
getnameinfo \
getnetbyad \
@ -123,7 +115,6 @@ tests := \
tst-checks-posix \
tst-ether_aton \
tst-ether_line \
tst-gethnm \
tst-getni1 \
tst-getni2 \
tst-if_index-long \
@ -154,14 +145,6 @@ include ../gen-locales.mk
ifeq ($(have-thread-library),yes)
CFLAGS-gethstbyad_r.c += -fexceptions
CFLAGS-gethstbyad.c += -fexceptions
CFLAGS-gethstbynm_r.c += -fexceptions
CFLAGS-gethstbynm.c += -fexceptions
CFLAGS-gethstbynm2_r.c += -fexceptions
CFLAGS-gethstbynm2.c += -fexceptions
CFLAGS-gethstent_r.c += -fexceptions
CFLAGS-gethstent.c += -fexceptions
CFLAGS-rcmd.c += -fexceptions
CFLAGS-getnetbynm_r.c += -fexceptions
CFLAGS-getnetbynm.c += -fexceptions

4
inet/Versions

@ -14,9 +14,7 @@ libc {
ether_ntoa_r;
# g*
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
gethostbyname2; gethostbyname2_r; gethostbyname_r; gethostent;
gethostent_r; getnetbyaddr; getnetbyaddr_r; getnetbyname;
getdomainname; getnetbyaddr; getnetbyaddr_r; getnetbyname;
getnetbyname_r; getnetent; getnetent_r; getnetgrent; getnetgrent_r;
getprotobyname; getprotobyname_r; getprotobynumber;
getprotobynumber_r; getprotoent; getprotoent_r;

24
nss/Makefile

@ -125,6 +125,29 @@ CFLAGS-getsgnam.c += -fexceptions
CFLAGS-getsgnam_r.c += -fexceptions
endif
# hosts routines:
routines += \
gethstbyad \
gethstbyad_r \
gethstbynm \
gethstbynm2 \
gethstbynm2_r \
gethstbynm_r \
gethstent \
gethstent_r \
# routines
ifeq ($(have-thread-library),yes)
CFLAGS-gethstbyad.c += -fexceptions
CFLAGS-gethstbyad_r.c += -fexceptions
CFLAGS-gethstbynm.c += -fexceptions
CFLAGS-gethstbynm_r.c += -fexceptions
CFLAGS-gethstbynm2.c += -fexceptions
CFLAGS-gethstbynm2_r.c += -fexceptions
CFLAGS-gethstent.c += -fexceptions
CFLAGS-gethstent_r.c += -fexceptions
endif
# pwd routines:
routines += \
fgetpwent \
@ -210,6 +233,7 @@ tests := \
test-netdb \
testgrp \
tst-fgetsgent_r \
tst-gethnm \
tst-getpw \
tst-gshadow \
tst-nss-getpwent \

2
nss/Versions

@ -21,6 +21,8 @@ libc {
getaliasbyname; getaliasbyname_r; getaliasent; getaliasent_r;
getgrent; getgrent_r; getgrgid; getgrgid_r; getgrnam; getgrnam_r;
getgroups;
gethostbyaddr; gethostbyaddr_r; gethostbyname; gethostbyname2;
gethostbyname2_r; gethostbyname_r; gethostent; gethostent_r;
getpw; getpwent; getpwent_r; getpwnam; getpwnam_r; getpwuid; getpwuid_r;
getspent; getspent_r; getspnam; getspnam_r;

0
inet/gethstbyad.c → nss/gethstbyad.c

0
inet/gethstbyad_r.c → nss/gethstbyad_r.c

0
inet/gethstbynm.c → nss/gethstbynm.c

0
inet/gethstbynm2.c → nss/gethstbynm2.c

0
inet/gethstbynm2_r.c → nss/gethstbynm2_r.c

0
inet/gethstbynm_r.c → nss/gethstbynm_r.c

0
inet/gethstent.c → nss/gethstent.c

0
inet/gethstent_r.c → nss/gethstent_r.c

0
inet/tst-gethnm.c → nss/tst-gethnm.c

Loading…
Cancel
Save