git: Import getaddrinfo(1) from FreeBSD

Aaron LI aly at crater.dragonflybsd.org
Sat Jan 2 03:24:47 PST 2021


commit 5fb3968ed80950b4719e90da6aa575d5c1e04a94
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jan 2 19:21:30 2021 +0800

    Import getaddrinfo(1) from FreeBSD
    
    The getaddrinfo(1) utility resolves host and service names to socket
    addresses with getaddrinfo(3) and prints them in a user-friendly format.
    
    Obtained from FreeBSD, which obtained it from NetBSD.
    
    The examples in the man page has been adjusted to use
    'www.dragonflybsd.org' instead of NetBSD ones :D
    
    Thank swildner for bringing in sockaddr_snprintf(3) to libutil from
    NetBSD, which is required by this utility.

Summary of changes:
 usr.bin/getaddrinfo/Makefile      |  16 ++
 usr.bin/getaddrinfo/getaddrinfo.1 | 187 +++++++++++++++++++++
 usr.bin/getaddrinfo/getaddrinfo.c | 330 ++++++++++++++++++++++++++++++++++++++
 usr.bin/getaddrinfo/tables.awk    |  63 ++++++++
 4 files changed, 596 insertions(+)
 create mode 100644 usr.bin/getaddrinfo/Makefile
 create mode 100644 usr.bin/getaddrinfo/getaddrinfo.1
 create mode 100644 usr.bin/getaddrinfo/getaddrinfo.c
 create mode 100644 usr.bin/getaddrinfo/tables.awk

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5fb3968ed80950b4719e90da6aa575d5c1e04a94


-- 
DragonFly BSD source repository



More information about the Commits mailing list