Skip to content

Commit

Permalink
Move getnameinfo from 'inet' to 'nss'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
submachine committed Oct 24, 2023
1 parent 7f60225 commit 2f1c665
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion inet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ routines := \
ether_ntoa \
ether_ntoa_r \
getipv4sourcefilter \
getnameinfo \
getsourcefilter \
herrno \
herrno-loc \
Expand Down
1 change: 1 addition & 0 deletions nss/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ routines += \
gethstbynm_r \
gethstent \
gethstent_r \
getnameinfo \
# routines

ifeq ($(have-thread-library),yes)
Expand Down
3 changes: 3 additions & 0 deletions nss/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ libc {
ulckpwdf;
}
GLIBC_2.1 {
# g*
getnameinfo;

# p*
putgrent;
}
Expand Down
2 changes: 1 addition & 1 deletion inet/getnameinfo.c → nss/getnameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion posix/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ libc {
__pread64; __pwrite64;

# g*
gai_strerror; getnameinfo; glob64; globfree64;
gai_strerror; glob64; globfree64;

# p*
pread; pread64; pwrite; pwrite64;
Expand Down

0 comments on commit 2f1c665

Please sign in to comment.