History log of /openbsd-current/lib/libc/net/Makefile.inc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.61 15-Apr-2024 naddy

drop htonl(), htons(), ntohl(), ntohs() MD functions from libc

Userland code compiled in a normal fashion picks up the htonl(),
htons(), ntohl(), ntohs() macros implemented by endian.h. The
functions in libc are effectively unused. Keep the MI functions
in case something looks for the symbols in libc or plays games
with #undef, but change them to wrap the implementation from
endian.h.

tweaks suggested by claudio@, ok miod@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.60 30-Aug-2019 deraadt

Move 4 manual pages from not-a-function filenames to a correct filename,
and correct Xr.
ok jmc


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.59 30-Mar-2016 jmc

for some time now mandoc has not required MLINKS to function
correctly - logically complete that now by removing MLINKS from base;

authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;

ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung


Revision tags: OPENBSD_5_9_BASE
# 1.58 11-Sep-2015 deraadt

_getnetbyaddr and _getnetbyname appear to be historical accidents in
our tree. ok guenther miod


# 1.57 10-Sep-2015 mpi

Remove link_addr(3). A function to encode the name of an interface in
a sockaddr_dl is a questionnable interface. But now it makes it harder
to properly reference ifp becauses of this.

Set sdl_index to the index of the corresponding interface when
constructing a routing message.

Ridding previous libc crank.

ok guenther@, deraadt@, dlg@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.56 31-Aug-2014 guenther

Add sockatmark()

ok millert@ manpage feedback jmc@


Revision tags: OPENBSD_5_6_BASE
# 1.55 13-Jul-2014 guenther

Split out ntoh[ls] and hton[ls] into their own manpage.
Update byteorder(3) to cover the new functions in <endian.h>

ok deraadt@ millert@


# 1.54 11-Jun-2014 chrisz

Remove manpages about deprecated RFC2292 ancillary data convenience functions.
They are obsoleted by the RFC3542 api.

ok mpi@


# 1.53 19-Apr-2014 deraadt

kill a stray \


# 1.52 19-Apr-2014 guenther

Split inet(3) into three pages by decade: 1980s -> inet_lnaof(3),
1990s -> inet_addr(3), 2000s and beyond -> inet_ntop(3).

ok tedu@ (who also noted the timeline) deraadt@ jmc@


# 1.51 07-Apr-2014 schwarze

Add some missing names to the NAME sections.
For inet(3), go the other way, remove some bogus symlinks.
Found while testing the new makewhatis(8).
ok jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.50 17-Dec-2013 deraadt

inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darker
days.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.49 17-Jan-2012 deraadt

net_addrcmp() dies. found out to be a horrific function by eric
ok guenther


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.48 01-Jul-2010 deraadt

getpeereid() can now be a library routine using getsockopt() with
SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return
EFAULT for a page fault. The kernel code will soon be put into
compat, and then in 10 years or so tedu will delete it.
ok guenther millert


Revision tags: OPENBSD_4_7_BASE
# 1.47 03-Feb-2010 miod

Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@


# 1.46 18-Nov-2009 guenther

More shrinkage, a bit for ramdisks but mostly for static binaries:
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses
p_class() and p_type() for diagnostics, then add that define to
libstub to avoid pulling in res_debug_syms.o
- split rcmd() and ruserok() into separate files, as nothing uses both
- split readdir_r() to its own file
- split syslog_r() from syslog(), as the latter needs localtime(); many
binaries no longer need to pull in all the time code after this; switch
from usleep() to nanosleep() while we're at it

(The profit of analysis of -Wl,-M,--cref output)

Chops 888kB from /bin and /sbin on i386

ok deraadt@, miod@


# 1.45 13-Aug-2009 jmc

various MLINK fixes from Alan R. S. Bueno;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.44 05-Jun-2007 henning

remove ipx-related stuff. objections nobody. major bump by kurt in a few


Revision tags: OPENBSD_4_1_BASE
# 1.43 09-Dec-2006 itojun

switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).
the kernel still handles RFC2292 set/getsockopts, so that compiled binary
has no trouble running. userland sees RFC3542 symbols only on header file
so new code has to use RFC3542 API.

bump libc shlib minor for function additions.

tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.42 02-Oct-2005 jmc

`ether_addr' is the name of a structure, not a function: remove its MLINK
and remove its entry from the .Nm list;


Revision tags: OPENBSD_3_8_BASE
# 1.41 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.40 17-Jun-2005 henning

remove netns stuff, ok millert
libc major bump by espie in a few


Revision tags: OPENBSD_3_7_BASE
# 1.39 06-Jan-2005 itojun

recover MLINKS for inet6_*_space.3


# 1.38 20-Dec-2004 millert

gai_strerror.3, getaddrinfo.3 and getnameinfo.3 are back.


# 1.37 20-Dec-2004 itojun

remove MLINKS too


# 1.36 20-Dec-2004 itojun

remove manpages based on RFC. requested by deraadt


# 1.35 06-Dec-2004 jmc

move gai_strerror into its own page, and make the get* pages more readable;
prompted by henning;

ok henning@ itojun@


# 1.34 26-Oct-2004 espie

link to new functions manpages.
okay millert@


Revision tags: OPENBSD_3_6_BASE
# 1.33 13-Jul-2004 millert

Remove iso_addr() and iso_ntoa() as part of the netiso removal.
From henning@, OK deraadt@


Revision tags: OPENBSD_3_5_BASE
# 1.32 10-Feb-2004 jmc

add MLINKS for 64-bit functions in byteorder(3);
passes miod's "make sure it doesn't break libc or libpthread" test;


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.31 06-Aug-2001 jakob

add getrrsetbyname(3) - API to retrieve arbitrary DNS records


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.30 23-Feb-2000 itojun

add freeifaddrs(3), which reclaims region allocated by getifaddrs(3).
in sync with kame and bsdi.


# 1.29 23-Feb-2000 itojun

add getifaddrs(3), from bsdi4.
this will help future apps from complexity of SIOCGIFCONF.
NOTE: getifaddrs(3) uses sysctl interface, not SIOCGIFCONF.


# 1.28 27-Jan-2000 itojun

add IPv6-ready rcmd() friends.
rcmd(): IPv4 only
rcmd_af(): af independent
ruserok(): af independent
iruserok(): IPv4 only
iruserok_sa(): af independent


# 1.27 16-Dec-1999 deraadt

rresvport_af() and bindresvport_af()


# 1.26 11-Dec-1999 itojun

add inet6_option_* and inet6_rthdr_*.
increase shlib minor.


# 1.25 17-Nov-1999 millert

Add missing MLINKs


Revision tags: OPENBSD_2_6_BASE
# 1.24 03-Jul-1999 deraadt

if_freenameindex() API


# 1.23 03-Jul-1999 deraadt

cleaner


# 1.22 03-Jul-1999 deraadt

man pages from WIDE


# 1.21 03-Jul-1999 deraadt

install man page


# 1.20 23-Jun-1999 cmetz

Removed non-existent source file from SRC.


# 1.19 23-Jun-1999 deraadt

net_addrcmp(); needs man page


# 1.18 23-Jun-1999 cmetz

Added some protocol independent interfaces (supposedly IPv6 support APIs, but
ones that are useful for all protocols, not just IPv6).


Revision tags: OPENBSD_2_5_BASE
# 1.17 20-Nov-1998 d

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO


Revision tags: OPENBSD_2_4_BASE
# 1.16 29-Aug-1998 deraadt

man page repairs; aaron@ug.cs.dal.ca


Revision tags: OPENBSD_2_3_BASE
# 1.15 20-Nov-1997 deraadt

incorrect MLINKS


# 1.14 19-Nov-1997 niklas

Document new functions


Revision tags: OPENBSD_2_2_BASE
# 1.13 28-Jul-1997 niklas

Install inet(3) page as inet_{ntop,pton}(3) pages too


# 1.12 07-Jul-1997 millert

Define RESOLVSORT so "sortlist" resolver directive works.


# 1.11 23-Jun-1997 millert

Add man page for inet_net_ntop(3) and inet_net_pton(3) from NetBSD (lukem)


Revision tags: OPENBSD_2_1_BASE
# 1.10 13-Apr-1997 provos

fouled up a tiny bit


# 1.9 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.8 01-Sep-1996 millert

First cut at man page for rcmdsh()


# 1.7 22-Aug-1996 millert

Adds rcmdsh() -- rcmd-alike using rsh (or specified shell).


# 1.6 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.5 16-Aug-1996 mickey

ipx.


# 1.4 14-Aug-1996 tholo

Install iso_addr(3) man page


# 1.3 03-Aug-1996 deraadt

install as link_ntoa/link_addr; netbsd pr#2614; peter@wonderland.org


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.60 30-Aug-2019 deraadt

Move 4 manual pages from not-a-function filenames to a correct filename,
and correct Xr.
ok jmc


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.59 30-Mar-2016 jmc

for some time now mandoc has not required MLINKS to function
correctly - logically complete that now by removing MLINKS from base;

authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;

ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung


Revision tags: OPENBSD_5_9_BASE
# 1.58 11-Sep-2015 deraadt

_getnetbyaddr and _getnetbyname appear to be historical accidents in
our tree. ok guenther miod


# 1.57 10-Sep-2015 mpi

Remove link_addr(3). A function to encode the name of an interface in
a sockaddr_dl is a questionnable interface. But now it makes it harder
to properly reference ifp becauses of this.

Set sdl_index to the index of the corresponding interface when
constructing a routing message.

Ridding previous libc crank.

ok guenther@, deraadt@, dlg@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.56 31-Aug-2014 guenther

Add sockatmark()

ok millert@ manpage feedback jmc@


Revision tags: OPENBSD_5_6_BASE
# 1.55 13-Jul-2014 guenther

Split out ntoh[ls] and hton[ls] into their own manpage.
Update byteorder(3) to cover the new functions in <endian.h>

ok deraadt@ millert@


# 1.54 11-Jun-2014 chrisz

Remove manpages about deprecated RFC2292 ancillary data convenience functions.
They are obsoleted by the RFC3542 api.

ok mpi@


# 1.53 19-Apr-2014 deraadt

kill a stray \


# 1.52 19-Apr-2014 guenther

Split inet(3) into three pages by decade: 1980s -> inet_lnaof(3),
1990s -> inet_addr(3), 2000s and beyond -> inet_ntop(3).

ok tedu@ (who also noted the timeline) deraadt@ jmc@


# 1.51 07-Apr-2014 schwarze

Add some missing names to the NAME sections.
For inet(3), go the other way, remove some bogus symlinks.
Found while testing the new makewhatis(8).
ok jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.50 17-Dec-2013 deraadt

inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darker
days.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.49 17-Jan-2012 deraadt

net_addrcmp() dies. found out to be a horrific function by eric
ok guenther


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.48 01-Jul-2010 deraadt

getpeereid() can now be a library routine using getsockopt() with
SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return
EFAULT for a page fault. The kernel code will soon be put into
compat, and then in 10 years or so tedu will delete it.
ok guenther millert


Revision tags: OPENBSD_4_7_BASE
# 1.47 03-Feb-2010 miod

Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@


# 1.46 18-Nov-2009 guenther

More shrinkage, a bit for ramdisks but mostly for static binaries:
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses
p_class() and p_type() for diagnostics, then add that define to
libstub to avoid pulling in res_debug_syms.o
- split rcmd() and ruserok() into separate files, as nothing uses both
- split readdir_r() to its own file
- split syslog_r() from syslog(), as the latter needs localtime(); many
binaries no longer need to pull in all the time code after this; switch
from usleep() to nanosleep() while we're at it

(The profit of analysis of -Wl,-M,--cref output)

Chops 888kB from /bin and /sbin on i386

ok deraadt@, miod@


# 1.45 13-Aug-2009 jmc

various MLINK fixes from Alan R. S. Bueno;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.44 05-Jun-2007 henning

remove ipx-related stuff. objections nobody. major bump by kurt in a few


Revision tags: OPENBSD_4_1_BASE
# 1.43 09-Dec-2006 itojun

switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).
the kernel still handles RFC2292 set/getsockopts, so that compiled binary
has no trouble running. userland sees RFC3542 symbols only on header file
so new code has to use RFC3542 API.

bump libc shlib minor for function additions.

tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.42 02-Oct-2005 jmc

`ether_addr' is the name of a structure, not a function: remove its MLINK
and remove its entry from the .Nm list;


Revision tags: OPENBSD_3_8_BASE
# 1.41 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.40 17-Jun-2005 henning

remove netns stuff, ok millert
libc major bump by espie in a few


Revision tags: OPENBSD_3_7_BASE
# 1.39 06-Jan-2005 itojun

recover MLINKS for inet6_*_space.3


# 1.38 20-Dec-2004 millert

gai_strerror.3, getaddrinfo.3 and getnameinfo.3 are back.


# 1.37 20-Dec-2004 itojun

remove MLINKS too


# 1.36 20-Dec-2004 itojun

remove manpages based on RFC. requested by deraadt


# 1.35 06-Dec-2004 jmc

move gai_strerror into its own page, and make the get* pages more readable;
prompted by henning;

ok henning@ itojun@


# 1.34 26-Oct-2004 espie

link to new functions manpages.
okay millert@


Revision tags: OPENBSD_3_6_BASE
# 1.33 13-Jul-2004 millert

Remove iso_addr() and iso_ntoa() as part of the netiso removal.
From henning@, OK deraadt@


Revision tags: OPENBSD_3_5_BASE
# 1.32 10-Feb-2004 jmc

add MLINKS for 64-bit functions in byteorder(3);
passes miod's "make sure it doesn't break libc or libpthread" test;


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.31 06-Aug-2001 jakob

add getrrsetbyname(3) - API to retrieve arbitrary DNS records


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.30 23-Feb-2000 itojun

add freeifaddrs(3), which reclaims region allocated by getifaddrs(3).
in sync with kame and bsdi.


# 1.29 23-Feb-2000 itojun

add getifaddrs(3), from bsdi4.
this will help future apps from complexity of SIOCGIFCONF.
NOTE: getifaddrs(3) uses sysctl interface, not SIOCGIFCONF.


# 1.28 27-Jan-2000 itojun

add IPv6-ready rcmd() friends.
rcmd(): IPv4 only
rcmd_af(): af independent
ruserok(): af independent
iruserok(): IPv4 only
iruserok_sa(): af independent


# 1.27 16-Dec-1999 deraadt

rresvport_af() and bindresvport_af()


# 1.26 11-Dec-1999 itojun

add inet6_option_* and inet6_rthdr_*.
increase shlib minor.


# 1.25 17-Nov-1999 millert

Add missing MLINKs


Revision tags: OPENBSD_2_6_BASE
# 1.24 03-Jul-1999 deraadt

if_freenameindex() API


# 1.23 03-Jul-1999 deraadt

cleaner


# 1.22 03-Jul-1999 deraadt

man pages from WIDE


# 1.21 03-Jul-1999 deraadt

install man page


# 1.20 23-Jun-1999 cmetz

Removed non-existent source file from SRC.


# 1.19 23-Jun-1999 deraadt

net_addrcmp(); needs man page


# 1.18 23-Jun-1999 cmetz

Added some protocol independent interfaces (supposedly IPv6 support APIs, but
ones that are useful for all protocols, not just IPv6).


Revision tags: OPENBSD_2_5_BASE
# 1.17 20-Nov-1998 d

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO


Revision tags: OPENBSD_2_4_BASE
# 1.16 29-Aug-1998 deraadt

man page repairs; aaron@ug.cs.dal.ca


Revision tags: OPENBSD_2_3_BASE
# 1.15 20-Nov-1997 deraadt

incorrect MLINKS


# 1.14 19-Nov-1997 niklas

Document new functions


Revision tags: OPENBSD_2_2_BASE
# 1.13 28-Jul-1997 niklas

Install inet(3) page as inet_{ntop,pton}(3) pages too


# 1.12 07-Jul-1997 millert

Define RESOLVSORT so "sortlist" resolver directive works.


# 1.11 23-Jun-1997 millert

Add man page for inet_net_ntop(3) and inet_net_pton(3) from NetBSD (lukem)


Revision tags: OPENBSD_2_1_BASE
# 1.10 13-Apr-1997 provos

fouled up a tiny bit


# 1.9 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.8 01-Sep-1996 millert

First cut at man page for rcmdsh()


# 1.7 22-Aug-1996 millert

Adds rcmdsh() -- rcmd-alike using rsh (or specified shell).


# 1.6 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.5 16-Aug-1996 mickey

ipx.


# 1.4 14-Aug-1996 tholo

Install iso_addr(3) man page


# 1.3 03-Aug-1996 deraadt

install as link_ntoa/link_addr; netbsd pr#2614; peter@wonderland.org


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.59 30-Mar-2016 jmc

for some time now mandoc has not required MLINKS to function
correctly - logically complete that now by removing MLINKS from base;

authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;

ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung


Revision tags: OPENBSD_5_9_BASE
# 1.58 11-Sep-2015 deraadt

_getnetbyaddr and _getnetbyname appear to be historical accidents in
our tree. ok guenther miod


# 1.57 10-Sep-2015 mpi

Remove link_addr(3). A function to encode the name of an interface in
a sockaddr_dl is a questionnable interface. But now it makes it harder
to properly reference ifp becauses of this.

Set sdl_index to the index of the corresponding interface when
constructing a routing message.

Ridding previous libc crank.

ok guenther@, deraadt@, dlg@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.56 31-Aug-2014 guenther

Add sockatmark()

ok millert@ manpage feedback jmc@


Revision tags: OPENBSD_5_6_BASE
# 1.55 13-Jul-2014 guenther

Split out ntoh[ls] and hton[ls] into their own manpage.
Update byteorder(3) to cover the new functions in <endian.h>

ok deraadt@ millert@


# 1.54 11-Jun-2014 chrisz

Remove manpages about deprecated RFC2292 ancillary data convenience functions.
They are obsoleted by the RFC3542 api.

ok mpi@


# 1.53 19-Apr-2014 deraadt

kill a stray \


# 1.52 19-Apr-2014 guenther

Split inet(3) into three pages by decade: 1980s -> inet_lnaof(3),
1990s -> inet_addr(3), 2000s and beyond -> inet_ntop(3).

ok tedu@ (who also noted the timeline) deraadt@ jmc@


# 1.51 07-Apr-2014 schwarze

Add some missing names to the NAME sections.
For inet(3), go the other way, remove some bogus symlinks.
Found while testing the new makewhatis(8).
ok jmc@


Revision tags: OPENBSD_5_5_BASE
# 1.50 17-Dec-2013 deraadt

inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darker
days.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.49 17-Jan-2012 deraadt

net_addrcmp() dies. found out to be a horrific function by eric
ok guenther


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.48 01-Jul-2010 deraadt

getpeereid() can now be a library routine using getsockopt() with
SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return
EFAULT for a page fault. The kernel code will soon be put into
compat, and then in 10 years or so tedu will delete it.
ok guenther millert


Revision tags: OPENBSD_4_7_BASE
# 1.47 03-Feb-2010 miod

Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@


# 1.46 18-Nov-2009 guenther

More shrinkage, a bit for ramdisks but mostly for static binaries:
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses
p_class() and p_type() for diagnostics, then add that define to
libstub to avoid pulling in res_debug_syms.o
- split rcmd() and ruserok() into separate files, as nothing uses both
- split readdir_r() to its own file
- split syslog_r() from syslog(), as the latter needs localtime(); many
binaries no longer need to pull in all the time code after this; switch
from usleep() to nanosleep() while we're at it

(The profit of analysis of -Wl,-M,--cref output)

Chops 888kB from /bin and /sbin on i386

ok deraadt@, miod@


# 1.45 13-Aug-2009 jmc

various MLINK fixes from Alan R. S. Bueno;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.44 05-Jun-2007 henning

remove ipx-related stuff. objections nobody. major bump by kurt in a few


Revision tags: OPENBSD_4_1_BASE
# 1.43 09-Dec-2006 itojun

switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).
the kernel still handles RFC2292 set/getsockopts, so that compiled binary
has no trouble running. userland sees RFC3542 symbols only on header file
so new code has to use RFC3542 API.

bump libc shlib minor for function additions.

tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.42 02-Oct-2005 jmc

`ether_addr' is the name of a structure, not a function: remove its MLINK
and remove its entry from the .Nm list;


Revision tags: OPENBSD_3_8_BASE
# 1.41 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.40 17-Jun-2005 henning

remove netns stuff, ok millert
libc major bump by espie in a few


Revision tags: OPENBSD_3_7_BASE
# 1.39 06-Jan-2005 itojun

recover MLINKS for inet6_*_space.3


# 1.38 20-Dec-2004 millert

gai_strerror.3, getaddrinfo.3 and getnameinfo.3 are back.


# 1.37 20-Dec-2004 itojun

remove MLINKS too


# 1.36 20-Dec-2004 itojun

remove manpages based on RFC. requested by deraadt


# 1.35 06-Dec-2004 jmc

move gai_strerror into its own page, and make the get* pages more readable;
prompted by henning;

ok henning@ itojun@


# 1.34 26-Oct-2004 espie

link to new functions manpages.
okay millert@


Revision tags: OPENBSD_3_6_BASE
# 1.33 13-Jul-2004 millert

Remove iso_addr() and iso_ntoa() as part of the netiso removal.
From henning@, OK deraadt@


Revision tags: OPENBSD_3_5_BASE
# 1.32 10-Feb-2004 jmc

add MLINKS for 64-bit functions in byteorder(3);
passes miod's "make sure it doesn't break libc or libpthread" test;


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.31 06-Aug-2001 jakob

add getrrsetbyname(3) - API to retrieve arbitrary DNS records


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.30 23-Feb-2000 itojun

add freeifaddrs(3), which reclaims region allocated by getifaddrs(3).
in sync with kame and bsdi.


# 1.29 23-Feb-2000 itojun

add getifaddrs(3), from bsdi4.
this will help future apps from complexity of SIOCGIFCONF.
NOTE: getifaddrs(3) uses sysctl interface, not SIOCGIFCONF.


# 1.28 27-Jan-2000 itojun

add IPv6-ready rcmd() friends.
rcmd(): IPv4 only
rcmd_af(): af independent
ruserok(): af independent
iruserok(): IPv4 only
iruserok_sa(): af independent


# 1.27 16-Dec-1999 deraadt

rresvport_af() and bindresvport_af()


# 1.26 11-Dec-1999 itojun

add inet6_option_* and inet6_rthdr_*.
increase shlib minor.


# 1.25 17-Nov-1999 millert

Add missing MLINKs


Revision tags: OPENBSD_2_6_BASE
# 1.24 03-Jul-1999 deraadt

if_freenameindex() API


# 1.23 03-Jul-1999 deraadt

cleaner


# 1.22 03-Jul-1999 deraadt

man pages from WIDE


# 1.21 03-Jul-1999 deraadt

install man page


# 1.20 23-Jun-1999 cmetz

Removed non-existent source file from SRC.


# 1.19 23-Jun-1999 deraadt

net_addrcmp(); needs man page


# 1.18 23-Jun-1999 cmetz

Added some protocol independent interfaces (supposedly IPv6 support APIs, but
ones that are useful for all protocols, not just IPv6).


Revision tags: OPENBSD_2_5_BASE
# 1.17 20-Nov-1998 d

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO


Revision tags: OPENBSD_2_4_BASE
# 1.16 29-Aug-1998 deraadt

man page repairs; aaron@ug.cs.dal.ca


Revision tags: OPENBSD_2_3_BASE
# 1.15 20-Nov-1997 deraadt

incorrect MLINKS


# 1.14 19-Nov-1997 niklas

Document new functions


Revision tags: OPENBSD_2_2_BASE
# 1.13 28-Jul-1997 niklas

Install inet(3) page as inet_{ntop,pton}(3) pages too


# 1.12 07-Jul-1997 millert

Define RESOLVSORT so "sortlist" resolver directive works.


# 1.11 23-Jun-1997 millert

Add man page for inet_net_ntop(3) and inet_net_pton(3) from NetBSD (lukem)


Revision tags: OPENBSD_2_1_BASE
# 1.10 13-Apr-1997 provos

fouled up a tiny bit


# 1.9 13-Mar-1997 downsj

Integrate BIND 4.9.5 resolver and associated routines.

Includes the DNS aware getnetby*() routines and IPv6 support.


Revision tags: OPENBSD_2_0_BASE
# 1.8 01-Sep-1996 millert

First cut at man page for rcmdsh()


# 1.7 22-Aug-1996 millert

Adds rcmdsh() -- rcmd-alike using rsh (or specified shell).


# 1.6 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.5 16-Aug-1996 mickey

ipx.


# 1.4 14-Aug-1996 tholo

Install iso_addr(3) man page


# 1.3 03-Aug-1996 deraadt

install as link_ntoa/link_addr; netbsd pr#2614; peter@wonderland.org


# 1.2 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision