mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Move 'aliases' routines from 'inet' into 'nss'
The aliases routines are entry points for nss functionality. This commit moves aliases.h and the aliases routines from the 'inet' subdirectory to 'nss', and adjusts any external references. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef _ALIASES_H
|
||||
#include <inet/aliases.h>
|
||||
#include <nss/aliases.h>
|
||||
|
||||
# ifndef _ISOMAC
|
||||
|
||||
|
@@ -24,7 +24,6 @@ include ../Makeconfig
|
||||
|
||||
headers := \
|
||||
$(wildcard arpa/*.h protocols/*.h) \
|
||||
aliases.h \
|
||||
bits/in.h \
|
||||
ifaddrs.h \
|
||||
netinet/ether.h \
|
||||
@@ -49,10 +48,6 @@ routines := \
|
||||
ether_ntoa \
|
||||
ether_ntoa_r \
|
||||
ether_ntoh \
|
||||
getaliasent \
|
||||
getaliasent_r \
|
||||
getaliasname \
|
||||
getaliasname_r \
|
||||
gethstbyad \
|
||||
gethstbyad_r \
|
||||
gethstbynm \
|
||||
@@ -176,8 +171,6 @@ CFLAGS-getnetbyad_r.c += -fexceptions
|
||||
CFLAGS-getnetbyad.c += -fexceptions
|
||||
CFLAGS-getnetent_r.c += -fexceptions
|
||||
CFLAGS-getnetent.c += -fexceptions
|
||||
CFLAGS-getaliasent_r.c += -fexceptions
|
||||
CFLAGS-getaliasent.c += -fexceptions
|
||||
CFLAGS-getrpcent_r.c += -fexceptions
|
||||
CFLAGS-getrpcent.c += -fexceptions
|
||||
CFLAGS-getservent_r.c += -fexceptions
|
||||
|
@@ -14,7 +14,6 @@ libc {
|
||||
ether_ntoa_r; ether_ntohost;
|
||||
|
||||
# g*
|
||||
getaliasbyname; getaliasbyname_r; getaliasent; getaliasent_r;
|
||||
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
|
||||
gethostbyname2; gethostbyname2_r; gethostbyname_r; gethostent;
|
||||
gethostent_r; getnetbyaddr; getnetbyaddr_r; getnetbyname;
|
||||
|
14
nss/Makefile
14
nss/Makefile
@@ -23,6 +23,7 @@ subdir := nss
|
||||
include ../Makeconfig
|
||||
|
||||
headers := \
|
||||
aliases.h \
|
||||
grp.h \
|
||||
gshadow.h \
|
||||
nss.h \
|
||||
@@ -54,6 +55,19 @@ routines = \
|
||||
valid_list_field \
|
||||
# routines
|
||||
|
||||
# alias routines:
|
||||
routines += \
|
||||
getaliasent \
|
||||
getaliasent_r \
|
||||
getaliasname \
|
||||
getaliasname_r \
|
||||
# routines
|
||||
|
||||
ifeq ($(have-thread-library),yes)
|
||||
CFLAGS-getaliasent_r.c += -fexceptions
|
||||
CFLAGS-getaliasent.c += -fexceptions
|
||||
endif
|
||||
|
||||
# grp routines:
|
||||
routines += \
|
||||
fgetgrent \
|
||||
|
@@ -17,6 +17,7 @@ libc {
|
||||
fgetspent; fgetspent_r;
|
||||
|
||||
# g*
|
||||
getaliasbyname; getaliasbyname_r; getaliasent; getaliasent_r;
|
||||
getgrent; getgrent_r; getgrgid; getgrgid_r; getgrnam; getgrnam_r;
|
||||
getgroups;
|
||||
getpw; getpwent; getpwent_r; getpwnam; getpwnam_r; getpwuid; getpwuid_r;
|
||||
|
Reference in New Issue
Block a user