]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move 'ethers' routines from 'inet' into 'nss'
authorArjun Shankar <arjun@redhat.com>
Mon, 2 Oct 2023 12:55:20 +0000 (14:55 +0200)
committerArjun Shankar <arjun@redhat.com>
Tue, 24 Oct 2023 10:30:59 +0000 (12:30 +0200)
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>
inet/Makefile
inet/Versions
nss/Makefile
nss/Versions
nss/ether_hton.c [moved from inet/ether_hton.c with 98% similarity]
nss/ether_ntoh.c [moved from inet/ether_ntoh.c with 98% similarity]

index bd3dc58322cacf96b5b4b352fa5f262230e4672d..4d053de748e21e32774ede318115c1e99bb45ed6 100644 (file)
@@ -43,11 +43,9 @@ routines := \
   deadline \
   ether_aton \
   ether_aton_r \
-  ether_hton \
   ether_line \
   ether_ntoa \
   ether_ntoa_r \
-  ether_ntoh \
   gethstbyad \
   gethstbyad_r \
   gethstbynm \
index e6d1e6f1ba3d72727bdb0060e53a84c59953c3fb..a7c1a0fb6f4a392df7390ddb68cdbf78bc2a0206 100644 (file)
@@ -10,8 +10,8 @@ libc {
     endaliasent; endhostent; endnetent; endnetgrent; endprotoent; endservent;
 
     # e*
-    ether_aton; ether_aton_r; ether_hostton; ether_line; ether_ntoa;
-    ether_ntoa_r; ether_ntohost;
+    ether_aton; ether_aton_r; ether_line; ether_ntoa;
+    ether_ntoa_r;
 
     # g*
     getdomainname; gethostbyaddr; gethostbyaddr_r; gethostbyname;
index 2dfa7ebef9ed3732687d3413ef7bb606934f65ce..148c6dc1cfe0bbb0d20f85317cc97a803f2b2a2b 100644 (file)
@@ -68,6 +68,12 @@ CFLAGS-getaliasent_r.c += -fexceptions
 CFLAGS-getaliasent.c += -fexceptions
 endif
 
+# ethers routines:
+routines += \
+  ether_hton \
+  ether_ntoh \
+  # routines
+
 # grp routines:
 routines += \
   fgetgrent \
index 5d1b1dac3da3d5edaa2dcffc6a7ca58518c99cb8..99208cb9df6220670876befe2d5e638541d7e065 100644 (file)
@@ -10,6 +10,7 @@ libc {
     endgrent;
     endpwent;
     endspent;
+    ether_hostton; ether_ntohost;
 
     # f*
     fgetgrent; fgetgrent_r;
similarity index 98%
rename from inet/ether_hton.c
rename to nss/ether_hton.c
index 1b49a57f484b3ce9a5e09dfbf584dd53747794d5..5419464756148a1a09b86f2fa34092c48505d20a 100644 (file)
@@ -20,7 +20,7 @@
 #include <netinet/if_ether.h>
 #include <string.h>
 
-#include "../nss/nsswitch.h"
+#include "nsswitch.h"
 
 /* Type of the lookup function we need here.  */
 typedef int (*lookup_function) (const char *, struct etherent *, char *, int,
similarity index 98%
rename from inet/ether_ntoh.c
rename to nss/ether_ntoh.c
index 9f9d7c1a63a0703f382f4cf210db3d7c1b4a0ddf..2f1eb4ec3d728b435296a1671265299137e0cccc 100644 (file)
@@ -20,7 +20,7 @@
 #include <netinet/if_ether.h>
 #include <string.h>
 
-#include <nss/nsswitch.h>
+#include <nsswitch.h>
 
 
 /* Type of the lookup function we need here.  */