Module Name: src
Committed By: ginsbach
Date: Fri Jul 20 19:18:09 UTC 2012
Modified Files:
src/lib/libc/inet: inet.3
Log Message:
- Add ERRORS section covering errno values set by inet_ntop() and
inet_pton()
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/inet/inet.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/inet/inet.3
diff -u src/lib/libc/inet/inet.3:1.3 src/lib/libc/inet/inet.3:1.4
--- src/lib/libc/inet/inet.3:1.3 Fri Jul 20 14:25:38 2012
+++ src/lib/libc/inet/inet.3 Fri Jul 20 19:18:08 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: inet.3,v 1.3 2012/07/20 14:25:38 ginsbach Exp $
+.\" $NetBSD: inet.3,v 1.4 2012/07/20 19:18:08 ginsbach Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)inet.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd September 22, 2011
+.Dd July 20, 2012
.Dt INET 3
.Os
.Sh NAME
@@ -285,6 +285,33 @@ is returned by
and
.Fn inet_network
for malformed requests.
+.Sh ERRORS
+The
+.Fn inet_ntop
+and
+.Fn inet_pton
+functions may fail with
+.Bl -tag -width Er
+.It Bq Er EAFNOSUPPORT
+The value of
+.Fa af
+was not
+.Dv AF_INET
+or
+.Dv AF_INET6 .
+.El
+.Pp
+The
+.Fn inet_ntop
+function may fail with
+.Bl -tag -width Er
+.It Bq Er ENOSPC
+The
+.Fa size
+indicated for
+.Fa dst
+was too small to store the presentation form of the network address.
+.El
.Sh SEE ALSO
.Xr byteorder 3 ,
.Xr gethostbyname 3 ,
@@ -362,6 +389,7 @@ The string returned by
.Fn inet_ntoa
resides in a static memory area.
.Pp
+The function
.Fn inet_addr
should return a
.Vt struct in_addr .