mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 01:33:36 +08:00
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>
This commit is contained in:
parent
1c40266328
commit
a7e8d0b90b
@ -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
|
||||
|
@ -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
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 \
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user