mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Move 'ethers' routines from 'inet' into 'nss'
ether_hostton and ether_ntohost are entry points for nss functionality. This commit moves them from the 'inet' subdirectory to 'nss', and adjusts any references accordingly. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
4298586619
commit
1c40266328
6 changed files with 11 additions and 6 deletions
|
@ -43,11 +43,9 @@ routines := \
|
||||||
deadline \
|
deadline \
|
||||||
ether_aton \
|
ether_aton \
|
||||||
ether_aton_r \
|
ether_aton_r \
|
||||||
ether_hton \
|
|
||||||
ether_line \
|
ether_line \
|
||||||
ether_ntoa \
|
ether_ntoa \
|
||||||
ether_ntoa_r \
|
ether_ntoa_r \
|
||||||
ether_ntoh \
|
|
||||||
gethstbyad \
|
gethstbyad \
|
||||||
gethstbyad_r \
|
gethstbyad_r \
|
||||||
gethstbynm \
|
gethstbynm \
|
||||||
|
|
|
@ -10,8 +10,8 @@ libc {
|
||||||
endaliasent; endhostent; endnetent; endnetgrent; endprotoent; endservent;
|
endaliasent; endhostent; endnetent; endnetgrent; endprotoent; endservent;
|
||||||
|
|
||||||
# e*
|
# e*
|
||||||
ether_aton; ether_aton_r; ether_hostton; ether_line; ether_ntoa;
|
ether_aton; ether_aton_r; ether_line; ether_ntoa;
|
||||||
ether_ntoa_r; ether_ntohost;
|
ether_ntoa_r;
|
||||||
|
|
||||||
# g*
|
# g*
|
||||||
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
|
getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
|
||||||
|
|
|
@ -68,6 +68,12 @@ CFLAGS-getaliasent_r.c += -fexceptions
|
||||||
CFLAGS-getaliasent.c += -fexceptions
|
CFLAGS-getaliasent.c += -fexceptions
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# ethers routines:
|
||||||
|
routines += \
|
||||||
|
ether_hton \
|
||||||
|
ether_ntoh \
|
||||||
|
# routines
|
||||||
|
|
||||||
# grp routines:
|
# grp routines:
|
||||||
routines += \
|
routines += \
|
||||||
fgetgrent \
|
fgetgrent \
|
||||||
|
|
|
@ -10,6 +10,7 @@ libc {
|
||||||
endgrent;
|
endgrent;
|
||||||
endpwent;
|
endpwent;
|
||||||
endspent;
|
endspent;
|
||||||
|
ether_hostton; ether_ntohost;
|
||||||
|
|
||||||
# f*
|
# f*
|
||||||
fgetgrent; fgetgrent_r;
|
fgetgrent; fgetgrent_r;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../nss/nsswitch.h"
|
#include "nsswitch.h"
|
||||||
|
|
||||||
/* Type of the lookup function we need here. */
|
/* Type of the lookup function we need here. */
|
||||||
typedef int (*lookup_function) (const char *, struct etherent *, char *, int,
|
typedef int (*lookup_function) (const char *, struct etherent *, char *, int,
|
|
@ -20,7 +20,7 @@
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <nss/nsswitch.h>
|
#include <nsswitch.h>
|
||||||
|
|
||||||
|
|
||||||
/* Type of the lookup function we need here. */
|
/* Type of the lookup function we need here. */
|
Loading…
Add table
Reference in a new issue