summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-11-28 18:10:59 +0000
committerschwarze <schwarze@openbsd.org>2017-11-28 18:10:59 +0000
commit93ca0b48b5c785d77cd2834fdb109edf7ce46abf (patch)
tree291dfde57bd2499dee07ea8c4b26b1dc1da5c025 /lib/libc
parentzap newline in warn(); from kshe (diff)
downloadwireguard-openbsd-93ca0b48b5c785d77cd2834fdb109edf7ce46abf.tar.xz
wireguard-openbsd-93ca0b48b5c785d77cd2834fdb109edf7ce46abf.zip
Add the missing STANDARDS section (kettenis@ noticed that these are
POSIX functions) and turn the weird DIAGNOSTICS section into a normal RETURN VALUES section while here.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getnetent.320
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3
index e0344e2dd09..f45526ec1db 100644
--- a/lib/libc/net/getnetent.3
+++ b/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getnetent.3,v 1.16 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: getnetent.3,v 1.17 2017/11/28 18:10:59 schwarze Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: November 28 2017 $
.Dt GETNETENT 3
.Os
.Sh NAME
@@ -111,17 +111,25 @@ net address and type is found, or until
.Dv EOF
is encountered.
Network numbers are supplied in host order.
+.Sh RETURN VALUES
+The
+.Fn getnetent ,
+.Fn getnetbyaddr ,
+and
+.Fn getnetbyname
+functions return
+.Dv NULL
+if the requested entry is not found.
.Sh FILES
.Bl -tag -width /etc/networks -compact
.It Pa /etc/networks
.El
-.Sh DIAGNOSTICS
-Null pointer (0) returned on
-.Dv EOF
-or error.
.Sh SEE ALSO
.Xr resolver 3 ,
.Xr networks 5
+.Sh STANDARDS
+These functions conform to
+.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn getnetent ,