summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-11-28 18:11:00 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-11-28 18:11:00 +0000
commitf2f8b3101d65123eeeb017e04b80e215da6bdbf2 (patch)
tree54e28c0302eeb94cb99e1aaac431fbf9965f0a88 /lib
parent19cbb871e724efc424ddff5ea755f02c15fa112b (diff)
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')
-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 ,