]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move getnameinfo from 'inet' to 'nss'
authorArjun Shankar <arjun@redhat.com>
Mon, 2 Oct 2023 12:55:28 +0000 (14:55 +0200)
committerArjun Shankar <arjun@redhat.com>
Tue, 24 Oct 2023 10:31:00 +0000 (12:31 +0200)
getnameinfo is an entry points for nss functionality.  This commit moves
it from the 'inet' subdirectory to 'nss'.  The corresponding Versions
entry is also moved from 'posix' into 'nss'.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
inet/Makefile
nss/Makefile
nss/Versions
nss/getnameinfo.c [moved from inet/getnameinfo.c with 99% similarity]
posix/Versions

index d275f51b3fc8bddf2b76e4f1d4f39d8336aa7126..b691fef921a20285118815249af52d71271a4a6c 100644 (file)
@@ -47,7 +47,6 @@ routines := \
   ether_ntoa \
   ether_ntoa_r \
   getipv4sourcefilter \
-  getnameinfo \
   getsourcefilter \
   herrno \
   herrno-loc \
index da5bd207aaff811fd54f17a814ae0edb120e27f4..213b68720ba3862d0223ab09e6af37229390ed8f 100644 (file)
@@ -136,6 +136,7 @@ routines += \
   gethstbynm_r \
   gethstent \
   gethstent_r \
+  getnameinfo \
   # routines
 
 ifeq ($(have-thread-library),yes)
index 158a9175a41be7845af73d511f6d646ca388a9e0..d765e1d3b6c5048c9450d234f6ae93744efda0b6 100644 (file)
@@ -58,6 +58,9 @@ libc {
     ulckpwdf;
   }
   GLIBC_2.1 {
+    # g*
+    getnameinfo;
+
     # p*
     putgrent;
   }
similarity index 99%
rename from inet/getnameinfo.c
rename to nss/getnameinfo.c
index 40c20b4be6f1a9cbbe6eb8925c8b7e40884b9b62..062652c2297eb1049e89c70bef06504f4f96a488 100644 (file)
@@ -71,7 +71,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <sys/utsname.h>
 #include <libc-lock.h>
 #include <scratch_buffer.h>
-#include <net-internal.h>
+#include <inet/net-internal.h>
 #include <set-freeres.h>
 
 #ifndef min
index b24c7c87ff1f015aa788b02e1b0bb353079360a4..0624d24bccef915d52d6242a4db701706b365ccd 100644 (file)
@@ -72,7 +72,7 @@ libc {
     __pread64; __pwrite64;
 
     # g*
-    gai_strerror; getnameinfo; glob64; globfree64;
+    gai_strerror; glob64; globfree64;
 
     # p*
     pread; pread64; pwrite; pwrite64;