Move 'networks' routines from 'inet' into 'nss'

The getnetby* and getnetent* 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:
Arjun Shankar 2023-10-02 14:55:23 +02:00
parent 3f7c7ac887
commit 5a6e784e64
10 changed files with 22 additions and 14 deletions

View File

@ -48,12 +48,6 @@ routines := \
ether_ntoa_r \ ether_ntoa_r \
getipv4sourcefilter \ getipv4sourcefilter \
getnameinfo \ getnameinfo \
getnetbyad \
getnetbyad_r \
getnetbynm \
getnetbynm_r \
getnetent \
getnetent_r \
getproto \ getproto \
getproto_r \ getproto_r \
getprtent \ getprtent \
@ -144,12 +138,6 @@ include ../gen-locales.mk
ifeq ($(have-thread-library),yes) ifeq ($(have-thread-library),yes)
CFLAGS-rcmd.c += -fexceptions CFLAGS-rcmd.c += -fexceptions
CFLAGS-getnetbynm_r.c += -fexceptions
CFLAGS-getnetbynm.c += -fexceptions
CFLAGS-getnetbyad_r.c += -fexceptions
CFLAGS-getnetbyad.c += -fexceptions
CFLAGS-getnetent_r.c += -fexceptions
CFLAGS-getnetent.c += -fexceptions
CFLAGS-getrpcent_r.c += -fexceptions CFLAGS-getrpcent_r.c += -fexceptions
CFLAGS-getrpcent.c += -fexceptions CFLAGS-getrpcent.c += -fexceptions
CFLAGS-getservent_r.c += -fexceptions CFLAGS-getservent_r.c += -fexceptions

View File

@ -14,8 +14,7 @@ libc {
ether_ntoa_r; ether_ntoa_r;
# g* # g*
getdomainname; getnetbyaddr; getnetbyaddr_r; getnetbyname; getdomainname;
getnetbyname_r; getnetent; getnetent_r;
getprotobyname; getprotobyname_r; getprotobynumber; getprotobyname; getprotobyname_r; getprotobynumber;
getprotobynumber_r; getprotoent; getprotoent_r; getprotobynumber_r; getprotoent; getprotoent_r;
getservbyname; getservbyname_r; getservbyport; getservbyname; getservbyname_r; getservbyport;

View File

@ -159,6 +159,25 @@ CFLAGS-getnetgrent.c += -fexceptions
CFLAGS-getnetgrent_r.c += -fexceptions CFLAGS-getnetgrent_r.c += -fexceptions
endif endif
# networks routines:
routines += \
getnetbyad \
getnetbyad_r \
getnetbynm \
getnetbynm_r \
getnetent \
getnetent_r \
# routines
ifeq ($(have-thread-library),yes)
CFLAGS-getnetbyad.c += -fexceptions
CFLAGS-getnetbyad_r.c += -fexceptions
CFLAGS-getnetbynm.c += -fexceptions
CFLAGS-getnetbynm_r.c += -fexceptions
CFLAGS-getnetent.c += -fexceptions
CFLAGS-getnetent_r.c += -fexceptions
endif
# pwd routines: # pwd routines:
routines += \ routines += \
fgetpwent \ fgetpwent \

View File

@ -25,6 +25,8 @@ libc {
gethostbyaddr; gethostbyaddr_r; gethostbyname; gethostbyname2; gethostbyaddr; gethostbyaddr_r; gethostbyname; gethostbyname2;
gethostbyname2_r; gethostbyname_r; gethostent; gethostent_r; gethostbyname2_r; gethostbyname_r; gethostent; gethostent_r;
getnetgrent; getnetgrent_r; getnetgrent; getnetgrent_r;
getnetbyaddr; getnetbyaddr_r; getnetbyname; getnetbyname_r;
getnetent; getnetent_r;
getpw; getpwent; getpwent_r; getpwnam; getpwnam_r; getpwuid; getpwuid_r; getpw; getpwent; getpwent_r; getpwnam; getpwnam_r; getpwuid; getpwuid_r;
getspent; getspent_r; getspnam; getspnam_r; getspent; getspent_r; getspnam; getspnam_r;