summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/getaddrinfo.38
-rw-r--r--src/lib/libc/net/gethostbyname.332
-rw-r--r--src/lib/libc/net/getifaddrs.322
-rw-r--r--src/lib/libc/net/getnameinfo.38
-rw-r--r--src/lib/libc/net/getrrsetbyname.321
-rw-r--r--src/lib/libc/net/inet6_option_space.316
-rw-r--r--src/lib/libc/net/inet6_rthdr_space.314
-rw-r--r--src/lib/libc/net/rcmdsh.310
8 files changed, 65 insertions, 66 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index 12b5500436..619e272bb4 100644
--- a/src/lib/libc/net/getaddrinfo.3
+++ b/src/lib/libc/net/getaddrinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getaddrinfo.3,v 1.21 2003/05/01 19:10:09 jmc Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.22 2003/05/30 21:37:59 jmc Exp $
2.\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $ 2.\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -564,9 +564,6 @@ indicate an unknown error.
564.%D June 2000 564.%D June 2000
565.Re 565.Re
566.\" 566.\"
567.Sh HISTORY
568The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
569.\"
570.Sh STANDARDS 567.Sh STANDARDS
571The 568The
572.Fn getaddrinfo 569.Fn getaddrinfo
@@ -575,6 +572,9 @@ and documented in
575.Dq Basic Socket Interface Extensions for IPv6 572.Dq Basic Socket Interface Extensions for IPv6
576.Pq RFC2553 . 573.Pq RFC2553 .
577.\" 574.\"
575.Sh HISTORY
576The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
577.\"
578.Sh BUGS 578.Sh BUGS
579The current implementation is not thread-safe. 579The current implementation is not thread-safe.
580.Pp 580.Pp
diff --git a/src/lib/libc/net/gethostbyname.3 b/src/lib/libc/net/gethostbyname.3
index d90ea55542..570d939ce2 100644
--- a/src/lib/libc/net/gethostbyname.3
+++ b/src/lib/libc/net/gethostbyname.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: gethostbyname.3,v 1.17 2002/04/30 16:31:42 mpech Exp $ 1.\" $OpenBSD: gethostbyname.3,v 1.18 2003/05/30 21:37:59 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1987, 1991, 1993 3.\" Copyright (c) 1983, 1987, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -215,13 +215,27 @@ will result in an answer;
215for example, a mail-forwarder may be registered for this domain. 215for example, a mail-forwarder may be registered for this domain.
216.El 216.El
217.Sh SEE ALSO 217.Sh SEE ALSO
218.Xr resolver 3 ,
219.Xr getaddrinfo 3 , 218.Xr getaddrinfo 3 ,
220.Xr getnameinfo 3 , 219.Xr getnameinfo 3 ,
220.Xr resolver 3 ,
221.Xr hosts 5 , 221.Xr hosts 5 ,
222.Xr resolv.conf 5 , 222.Xr resolv.conf 5 ,
223.Xr hostname 7 , 223.Xr hostname 7 ,
224.Xr named 8 224.Xr named 8
225.Sh HISTORY
226The
227.Fn herror
228function appeared in
229.Bx 4.3 .
230The
231.Fn endhostent ,
232.Fn gethostbyaddr ,
233.Fn gethostbyname ,
234.Fn gethostent ,
235and
236.Fn sethostent
237functions appeared in
238.Bx 4.2 .
225.Sh CAVEATS 239.Sh CAVEATS
226If the search routines in 240If the search routines in
227.Xr resolv.conf 5 241.Xr resolv.conf 5
@@ -248,20 +262,6 @@ or
248The 262The
249.Fn endhostent 263.Fn endhostent
250function closes the file. 264function closes the file.
251.Sh HISTORY
252The
253.Fn herror
254function appeared in
255.Bx 4.3 .
256The
257.Fn endhostent ,
258.Fn gethostbyaddr ,
259.Fn gethostbyname ,
260.Fn gethostent ,
261and
262.Fn sethostent
263functions appeared in
264.Bx 4.2 .
265.Sh BUGS 265.Sh BUGS
266These functions use static data storage; 266These functions use static data storage;
267if the data is needed for future use, it should be 267if the data is needed for future use, it should be
diff --git a/src/lib/libc/net/getifaddrs.3 b/src/lib/libc/net/getifaddrs.3
index 03064689cd..9287b3b734 100644
--- a/src/lib/libc/net/getifaddrs.3
+++ b/src/lib/libc/net/getifaddrs.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getifaddrs.3,v 1.9 2003/03/06 04:07:37 david Exp $ 1.\" $OpenBSD: getifaddrs.3,v 1.10 2003/05/30 21:37:59 jmc Exp $
2.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp 2.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp
3.\" 3.\"
4.\" Copyright (c) 1995, 1999 4.\" Copyright (c) 1995, 1999
@@ -133,16 +133,6 @@ for any of the errors specified for the library routines
133.Xr malloc 3 , 133.Xr malloc 3 ,
134or 134or
135.Xr sysctl 3 . 135.Xr sysctl 3 .
136.Sh BUGS
137If both
138.Aq Pa net/if.h
139and
140.Aq Pa ifaddrs.h
141are being included,
142.Aq Pa net/if.h
143.Em must
144be included before
145.Aq Pa ifaddrs.h .
146.Sh SEE ALSO 136.Sh SEE ALSO
147.Xr ioctl 2 , 137.Xr ioctl 2 ,
148.Xr socket 2 , 138.Xr socket 2 ,
@@ -157,3 +147,13 @@ The function is supplied on
157.Ox 147.Ox
158since 148since
159.Ox 2.7 . 149.Ox 2.7 .
150.Sh BUGS
151If both
152.Aq Pa net/if.h
153and
154.Aq Pa ifaddrs.h
155are being included,
156.Aq Pa net/if.h
157.Em must
158be included before
159.Aq Pa ifaddrs.h .
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 24fb89d838..f1b31a6e87 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.19 2003/05/03 20:05:07 jmc Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.20 2003/05/30 21:37:59 jmc Exp $
2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $ 2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -275,9 +275,6 @@ The error code can be found in errno.
275.%D June 2000 275.%D June 2000
276.Re 276.Re
277.\" 277.\"
278.Sh HISTORY
279The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
280.\"
281.Sh STANDARDS 278.Sh STANDARDS
282The 279The
283.Fn getnameinfo 280.Fn getnameinfo
@@ -286,6 +283,9 @@ and documented in
286.Dq Basic Socket Interface Extensions for IPv6 283.Dq Basic Socket Interface Extensions for IPv6
287.Pq RFC2553 . 284.Pq RFC2553 .
288.\" 285.\"
286.Sh HISTORY
287The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
288.\"
289.Sh BUGS 289.Sh BUGS
290The current implementation is not thread-safe. 290The current implementation is not thread-safe.
291.Pp 291.Pp
diff --git a/src/lib/libc/net/getrrsetbyname.3 b/src/lib/libc/net/getrrsetbyname.3
index 5ff45cbbe3..a786ff8747 100644
--- a/src/lib/libc/net/getrrsetbyname.3
+++ b/src/lib/libc/net/getrrsetbyname.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getrrsetbyname.3,v 1.10 2003/05/01 19:04:02 jmc Exp $ 1.\" $OpenBSD: getrrsetbyname.3,v 1.11 2003/05/30 21:37:59 jmc Exp $
2.\" 2.\"
3.\" Copyright (C) 2000, 2001 Internet Software Consortium. 3.\" Copyright (C) 2000, 2001 Internet Software Consortium.
4.\" 4.\"
@@ -118,7 +118,7 @@ If the EDNS0 option is activated in
118.Xr resolv.conf 5 , 118.Xr resolv.conf 5 ,
119.Fn getrrsetbyname 119.Fn getrrsetbyname
120will request DNSSEC authentication using the EDNS0 DNSSEC OK (DO) bit. 120will request DNSSEC authentication using the EDNS0 DNSSEC OK (DO) bit.
121.Sh "RETURN VALUES" 121.Sh RETURN VALUES
122.Fn getrrsetbyname 122.Fn getrrsetbyname
123returns zero on success, and one of the following error 123returns zero on success, and one of the following error
124codes if an error occurred: 124codes if an error occurred:
@@ -139,20 +139,13 @@ other failure
139.Xr resolver 3 , 139.Xr resolver 3 ,
140.Xr resolv.conf 5 , 140.Xr resolv.conf 5 ,
141.Xr named 8 141.Xr named 8
142.Sh AUTHORS
143Jakob Schlyter
144.Aq jakob@openbsd.org
145.Sh HISTORY 142.Sh HISTORY
146.Fn getrrsetbyname 143.Fn getrrsetbyname
147first appeared in 144first appeared in
148.Ox 3.0 . 145.Ox 3.0 .
149The API first appeared in ISC BIND version 9. 146The API first appeared in ISC BIND version 9.
150.Sh BUGS 147.Sh AUTHORS
151The data in 148.An Jakob Schlyter Aq jakob@openbsd.org
152.Li *rdi_data
153should be returned in uncompressed wire format.
154Currently, the data is in compressed format and the caller can't
155uncompress since it doesn't have the full message.
156.Sh CAVEATS 149.Sh CAVEATS
157The 150The
158.Dv RRSET_VALIDATED 151.Dv RRSET_VALIDATED
@@ -164,3 +157,9 @@ This flag
164.Em should not 157.Em should not
165be trusted unless the transport between the nameserver and the resolver 158be trusted unless the transport between the nameserver and the resolver
166is secure (e.g. IPsec, trusted network, loopback communication). 159is secure (e.g. IPsec, trusted network, loopback communication).
160.Sh BUGS
161The data in
162.Li *rdi_data
163should be returned in uncompressed wire format.
164Currently, the data is in compressed format and the caller can't
165uncompress since it doesn't have the full message.
diff --git a/src/lib/libc/net/inet6_option_space.3 b/src/lib/libc/net/inet6_option_space.3
index 5150b191bd..cc30ac3978 100644
--- a/src/lib/libc/net/inet6_option_space.3
+++ b/src/lib/libc/net/inet6_option_space.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet6_option_space.3,v 1.10 2003/05/01 19:17:37 jmc Exp $ 1.\" $OpenBSD: inet6_option_space.3,v 1.11 2003/05/30 21:37:59 jmc Exp $
2.\" $KAME: inet6_option_space.3,v 1.7 2000/05/17 14:32:13 itojun Exp $ 2.\" $KAME: inet6_option_space.3,v 1.7 2000/05/17 14:32:13 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -54,7 +54,7 @@
54.Ft "int" 54.Ft "int"
55.Fn inet6_option_append "struct cmsghdr *cmsg" "const u_int8_t *typep" "int multx" "int plusy" 55.Fn inet6_option_append "struct cmsghdr *cmsg" "const u_int8_t *typep" "int multx" "int plusy"
56.Ft "u_int8_t *" 56.Ft "u_int8_t *"
57.Fn inet6_option_alloc "struct cmsghdr *cmsg" "int datalen" "int multx" "int plusy"; 57.Fn inet6_option_alloc "struct cmsghdr *cmsg" "int datalen" "int multx" "int plusy"
58.Ft "int" 58.Ft "int"
59.Fn inet6_option_next "const struct cmsghdr *cmsg" "u_int8_t **tptrp" 59.Fn inet6_option_next "const struct cmsghdr *cmsg" "u_int8_t **tptrp"
60.Ft "int" 60.Ft "int"
@@ -389,6 +389,9 @@ and
389is not 389is not
390.Dv NULL . 390.Dv NULL .
391.\" 391.\"
392.Sh EXAMPLES
393RFC2292 gives comprehensive examples in chapter 6.
394.\"
392.Sh DIAGNOSTICS 395.Sh DIAGNOSTICS
393.Fn inet6_option_init 396.Fn inet6_option_init
394and 397and
@@ -416,9 +419,6 @@ to non
416.Dv NULL 419.Dv NULL
417value. 420value.
418.\" 421.\"
419.Sh EXAMPLES
420RFC2292 gives comprehensive examples in chapter 6.
421.\"
422.Sh SEE ALSO 422.Sh SEE ALSO
423.Rs 423.Rs
424.%A W. Stevens 424.%A W. Stevens
@@ -435,14 +435,14 @@ RFC2292 gives comprehensive examples in chapter 6.
435.%D December 1998 435.%D December 1998
436.Re 436.Re
437.\" 437.\"
438.Sh HISTORY
439The implementation first appeared in KAME advanced networking kit.
440.\"
441.Sh STANDARDS 438.Sh STANDARDS
442The functions 439The functions
443are documented in 440are documented in
444.Dq Advanced Sockets API for IPv6 441.Dq Advanced Sockets API for IPv6
445.Pq RFC2292 . 442.Pq RFC2292 .
446.\" 443.\"
444.Sh HISTORY
445The implementation first appeared in KAME advanced networking kit.
446.\"
447.Sh BUGS 447.Sh BUGS
448The text was shamelessly copied from RFC2292. 448The text was shamelessly copied from RFC2292.
diff --git a/src/lib/libc/net/inet6_rthdr_space.3 b/src/lib/libc/net/inet6_rthdr_space.3
index 06a56715b5..de88f48515 100644
--- a/src/lib/libc/net/inet6_rthdr_space.3
+++ b/src/lib/libc/net/inet6_rthdr_space.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet6_rthdr_space.3,v 1.10 2003/05/01 19:17:37 jmc Exp $ 1.\" $OpenBSD: inet6_rthdr_space.3,v 1.11 2003/05/30 21:37:59 jmc Exp $
2.\" $KAME: inet6_rthdr_space.3,v 1.8 2000/05/17 14:30:15 itojun Exp $ 2.\" $KAME: inet6_rthdr_space.3,v 1.8 2000/05/17 14:30:15 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -264,6 +264,9 @@ Upon an error the return value of the function is -1.
264Note: Addresses are indexed starting at 1, and flags starting at 0, 264Note: Addresses are indexed starting at 1, and flags starting at 0,
265to maintain consistency with the terminology and figures in RFC2460. 265to maintain consistency with the terminology and figures in RFC2460.
266.\" 266.\"
267.Sh EXAMPLES
268RFC2292 gives comprehensive examples in chapter 8.
269.\"
267.Sh DIAGNOSTICS 270.Sh DIAGNOSTICS
268.Fn inet6_rthdr_space 271.Fn inet6_rthdr_space
269returns 0 on errors. 272returns 0 on errors.
@@ -286,9 +289,6 @@ and
286.Fn inet6_rthdr_getflags 289.Fn inet6_rthdr_getflags
287return -1 on error. 290return -1 on error.
288.\" 291.\"
289.Sh EXAMPLES
290RFC2292 gives comprehensive examples in chapter 8.
291.\"
292.Sh SEE ALSO 292.Sh SEE ALSO
293.Rs 293.Rs
294.%A W. Stevens 294.%A W. Stevens
@@ -305,15 +305,15 @@ RFC2292 gives comprehensive examples in chapter 8.
305.%D December 1998 305.%D December 1998
306.Re 306.Re
307.\" 307.\"
308.Sh HISTORY
309The implementation first appeared in KAME advanced networking kit.
310.\"
311.Sh STANDARDS 308.Sh STANDARDS
312The functions 309The functions
313are documented in 310are documented in
314.Dq Advanced Sockets API for IPv6 311.Dq Advanced Sockets API for IPv6
315.Pq RFC2292 . 312.Pq RFC2292 .
316.\" 313.\"
314.Sh HISTORY
315The implementation first appeared in KAME advanced networking kit.
316.\"
317.Sh BUGS 317.Sh BUGS
318The text was shamelessly copied from RFC2292. 318The text was shamelessly copied from RFC2292.
319.Pp 319.Pp
diff --git a/src/lib/libc/net/rcmdsh.3 b/src/lib/libc/net/rcmdsh.3
index e993d2c9d5..674d0f479d 100644
--- a/src/lib/libc/net/rcmdsh.3
+++ b/src/lib/libc/net/rcmdsh.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: rcmdsh.3,v 1.9 2003/05/05 22:13:03 millert Exp $ 1.\" $OpenBSD: rcmdsh.3,v 1.10 2003/05/30 21:37:59 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -89,12 +89,12 @@ It returns \-1 on error and prints a diagnostic message on the standard error.
89.Xr socketpair 2 , 89.Xr socketpair 2 ,
90.Xr rcmd 3 , 90.Xr rcmd 3 ,
91.Xr rshd 8 91.Xr rshd 8
92.Sh BUGS
93If
94.Xr rsh 1
95encounters an error, a file descriptor is still returned instead of \-1.
96.Sh HISTORY 92.Sh HISTORY
97The 93The
98.Fn rcmdsh 94.Fn rcmdsh
99function first appeared in 95function first appeared in
100.Ox 2.0 . 96.Ox 2.0 .
97.Sh BUGS
98If
99.Xr rsh 1
100encounters an error, a file descriptor is still returned instead of \-1.