History log of /netbsd-current/lib/libc/net/Makefile.inc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.96 03-Aug-2023 rin

Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@)


# 1.95 03-Aug-2023 rin

Sprinkle CC_WNO_USE_AFTER_FREE for GCC 12

All of them are blamed for idiom equivalent to:
newbuf = realloc(buf, size);
p = newbuf + (p - buf);


# 1.94 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.93 03-Jun-2023 lukem

bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.92 12-Apr-2021 mrg

new GCC_NO_* uses for warning issues. most of the users of the new
GCC_NO_RETURN_LOCAL_ADDR are bugs in GCC itself, not the code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.91 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


# 1.90 10-Oct-2019 kre

More cases to disable gcc-8 warnings only when we're using gcc>=8


# 1.89 09-Oct-2019 christos

Add -Wno-error for gcc-8 warnings


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4; 1.87.6;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.94 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.93 03-Jun-2023 lukem

bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.92 12-Apr-2021 mrg

new GCC_NO_* uses for warning issues. most of the users of the new
GCC_NO_RETURN_LOCAL_ADDR are bugs in GCC itself, not the code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.91 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


# 1.90 10-Oct-2019 kre

More cases to disable gcc-8 warnings only when we're using gcc>=8


# 1.89 09-Oct-2019 christos

Add -Wno-error for gcc-8 warnings


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4; 1.87.6;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.92 12-Apr-2021 mrg

new GCC_NO_* uses for warning issues. most of the users of the new
GCC_NO_RETURN_LOCAL_ADDR are bugs in GCC itself, not the code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.91 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


# 1.90 10-Oct-2019 kre

More cases to disable gcc-8 warnings only when we're using gcc>=8


# 1.89 09-Oct-2019 christos

Add -Wno-error for gcc-8 warnings


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4; 1.87.6;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.91 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


# 1.90 10-Oct-2019 kre

More cases to disable gcc-8 warnings only when we're using gcc>=8


# 1.89 09-Oct-2019 christos

Add -Wno-error for gcc-8 warnings


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4; 1.87.6;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.90 10-Oct-2019 kre

More cases to disable gcc-8 warnings only when we're using gcc>=8


# 1.89 09-Oct-2019 christos

Add -Wno-error for gcc-8 warnings


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4; 1.87.6;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
# 1.88 02-Aug-2018 rjs

Add userland support for SCTP and manpages.


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base perseant-stdc-iso10646-base
# 1.87 18-Jun-2017 manu

branches: 1.87.4;
Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

branches: 1.86.8;
remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

branches: 1.85.4;
document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.87 18-Jun-2017 manu

Include IPv6 global variable in USE_INET6=no libc

This ensures a binary built with USE_INET6=yes libc can still link at
runtime with a USE_INET6=no libc. Of course IPv6 functionnality is not
available, but dynamic linking is not killed by missing symbols such
as in6addr_any.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.86 15-Apr-2015 mrg

remove various HAVE_GCC=45 fragments.


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.85 19-Oct-2013 christos

document the scopeid functions


# 1.84 19-Oct-2013 christos

add inet6_scopeid


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.83 01-Mar-2013 joerg

Retire OSI network stack. OK core@


Revision tags: yamt-pagecache-base8
# 1.82 27-Dec-2012 martin

Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.81 20-Jan-2012 joerg

branches: 1.81.6;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.


# 1.80 25-Dec-2011 tsutsui

Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


# 1.79 24-Dec-2011 tsutsui

Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
for workaround of a possible optimazation bug.

On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).

Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.

Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.78 02-Oct-2009 tsarna

branches: 1.78.6;
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
Discussed on tech-net.


# 1.77 08-Jun-2009 christos

another missing \


# 1.76 08-Jun-2009 christos

remove duplicated line


# 1.75 08-Jun-2009 christos

missing \


# 1.74 08-Jun-2009 christos

sort, add missing, fix section


# 1.73 08-Jun-2009 christos

new resolver functions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.72 09-Aug-2007 he

Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base netbsd-4-base
# 1.71 26-Aug-2006 matt

Remove the XNS man pages.


# 1.70 26-Aug-2006 matt

Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.


Revision tags: abandoned-netbsd-4-base
# 1.69 05-May-2006 rpaulo

Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.68 11-Jan-2005 itojun

replace with written-from-scratch manpage. (fixes ISOC copyright issue)


# 1.67 10-Jan-2005 lukem

Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).


# 1.66 20-Dec-2004 christos

revert previous change while discussion is in progress.


# 1.65 20-Dec-2004 itojun

RFC cannot be used as manpage regarding to the ISOC copyright boilerplate.
remove it until someone writes it up from scratch/freely-redistributable
text is found.


# 1.64 24-Aug-2004 ginsbach

Add MLINK for gethostent as suggested by Matthias Drochner.


# 1.63 21-May-2004 christos

Finish bind9 resolver merge.


Revision tags: netbsd-2-0-base
# 1.62 19-Feb-2004 christos

branches: 1.62.2;
getservent_r/getprotoent_r


# 1.61 07-Dec-2003 matt

Make building IPv6 support controllable by MKINET6


# 1.60 04-Dec-2003 lukem

MAKEVERBOSE tweaks


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.59 22-Mar-2002 thorpej

Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.58 22-Oct-2001 kleink

Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK.


# 1.57 29-Apr-2001 itojun

remove obsolete MAN lines for getipnodeby* (has been comented out)


# 1.56 28-Feb-2001 itojun

branches: 1.56.2;
it seems that gethostent(3) is no longer supplied in libc.
couple of wording corrections.
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>


# 1.55 07-Jul-2000 cgd

to get (f)lex output to go to stdout, use -t (a flag supported by
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.54 24-Apr-2000 itojun

use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue. (sync with kame tree)
use weak symbol just in case.


# 1.53 14-Mar-2000 sjg

Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.


# 1.52 02-Mar-2000 itojun

make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant. if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries. there is no way to guarantee
backward compat in this aspect. sorry for this. this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)


# 1.51 23-Feb-2000 itojun

add freeifaddrs.3 as MLINKS.


# 1.50 23-Feb-2000 itojun

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.


# 1.49 09-Feb-2000 itojun

add missing manpage, gethostbyname2(3).


# 1.48 27-Jan-2000 itojun

add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
ruserok(): became address family independent
rcmd_af(), iruesrok_sa(): address family independent


# 1.47 26-Jan-2000 itojun

move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
subdirs as well)


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.46 12-Dec-1999 itojun

add manpage for inet6_{option,rthdr}_*.


# 1.45 10-Nov-1999 jdolecek

add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)


Revision tags: comdex-fall-1999-base
# 1.44 15-Sep-1999 kleink

branches: 1.44.4;
Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.


# 1.43 01-Jul-1999 itojun

add IPv6 support functions.

get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)


# 1.42 22-Apr-1999 mycroft

Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially. The buffer is only used to print line
numbers...


Revision tags: netbsd-1-4-base
# 1.41 24-Feb-1999 drochner

branches: 1.41.2;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again


# 1.40 25-Jan-1999 lukem

add hesiod(3) et al


# 1.39 16-Jan-1999 lukem

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)


# 1.38 15-Jan-1999 lukem

merge nsswitch into main branch


# 1.37 12-Mar-1998 lukem

install links for inet_ntop(3) and inet_pton(3)


# 1.36 04-Feb-1998 christos

Add sorting of resolved addresses.


# 1.35 14-Nov-1997 mrg

add missing .Nm entries. from spz@serpens.swb.de.


Revision tags: netbsd-1-3-base
# 1.34 26-Aug-1997 kleink

branches: 1.34.2;
Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.


# 1.33 20-Jul-1997 mrg

merge bind 4.9.6 resolver. still need to fix <resolv.h>


# 1.32 07-Jul-1997 christos

inet_pton4() did not handle
- incompletely specified ip addresses
- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1 localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.


# 1.31 18-Jun-1997 lukem

* add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)


# 1.30 28-May-1997 mrg

install a man page (link) for orcmd(3).


# 1.29 22-Apr-1997 mrg

branches: 1.29.2;
create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.


# 1.28 13-Apr-1997 mrg

merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).


Revision tags: is-newarp-base
# 1.27 17-Nov-1996 mikel

Add iso_addr.3 to MAN. Fixes misc/2942.


# 1.26 10-Jul-1996 jtc

branches: 1.26.4;
Install linkaddr.3 as link_addr.3 and link_ntoa.3 too.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.25 30-Mar-1996 jtc

Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.


# 1.24 02-Feb-1996 mrg

merge with the resolver in bind 4.9.3-P1.


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.23 02-Mar-1995 chopps

include proper links to ethers.3


# 1.22 25-Feb-1995 cgd

mention the functions that need to be provided, instead of providing dflts.


# 1.21 25-Feb-1995 cgd

clean up import. also convert everything to new Id format.


# 1.20 10-Feb-1995 cgd

list the files needed on the alpha.


# 1.19 22-Dec-1994 cgd

specify man pages the new way.


# 1.18 18-Dec-1994 cgd

make sure link for inet_aton is in alphabetical order in MLINKS.


# 1.17 14-Nov-1994 dean

Include files for pmax


# 1.16 31-Oct-1994 glass

link inet.3 for inet_aton()


# 1.15 28-Oct-1994 cgd

fix bug 535, reported by Brian Moore.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.14 16-Dec-1993 deraadt

ethers(3) man page by Roland McGrath <roland@frob.com>


# 1.13 16-Dec-1993 deraadt

ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.


# 1.12 08-Dec-1993 pk

Added some Sparc sources.


# 1.11 05-Dec-1993 briggs

Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"


# 1.10 05-Dec-1993 cgd

get pc532 moved into ns32k; that's is MACHINE_ARCH


# 1.9 05-Dec-1993 cgd

split up the {ntoh,hton}[ls] functions


# 1.8 04-Dec-1993 cgd

update for .S and MACHINE_ARCH


# 1.7 07-Oct-1993 cgd

make an arch directory in libc, and move all machine dirs into it


# 1.6 17-Sep-1993 phil

pc532 specifics.


# 1.5 31-Aug-1993 jtc

Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own. A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems. They should be replaced with assembly language versions as
soon as possible.


# 1.4 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.3 21-May-1993 cgd

Needed for netstat to compile, add iso_addr &c
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)


# 1.2 25-Apr-1993 mycroft

Compile {iso,ns}_{addr,ntoa}.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision