summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2017-11-28 18:10:59 +0000
committerschwarze <>2017-11-28 18:10:59 +0000
commit8e3da22d9e96b1f66fa86b077a8226eff4b85e17 (patch)
tree66f8fa38a299df97a4d9653704b4358fb685f5cd
parenta2923d77ad66abdec14564d2310edca22c7a6024 (diff)
downloadopenbsd-8e3da22d9e96b1f66fa86b077a8226eff4b85e17.tar.gz
openbsd-8e3da22d9e96b1f66fa86b077a8226eff4b85e17.tar.bz2
openbsd-8e3da22d9e96b1f66fa86b077a8226eff4b85e17.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.
-rw-r--r--src/lib/libc/net/getnetent.320
1 files changed, 14 insertions, 6 deletions
diff --git a/src/lib/libc/net/getnetent.3 b/src/lib/libc/net/getnetent.3
index e0344e2dd0..f45526ec1d 100644
--- a/src/lib/libc/net/getnetent.3
+++ b/src/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnetent.3,v 1.16 2013/06/05 03:39:23 tedu Exp $ 1.\" $OpenBSD: getnetent.3,v 1.17 2017/11/28 18:10:59 schwarze 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.
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.Dd $Mdocdate: June 5 2013 $ 30.Dd $Mdocdate: November 28 2017 $
31.Dt GETNETENT 3 31.Dt GETNETENT 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
@@ -111,17 +111,25 @@ net address and type is found, or until
111.Dv EOF 111.Dv EOF
112is encountered. 112is encountered.
113Network numbers are supplied in host order. 113Network numbers are supplied in host order.
114.Sh RETURN VALUES
115The
116.Fn getnetent ,
117.Fn getnetbyaddr ,
118and
119.Fn getnetbyname
120functions return
121.Dv NULL
122if the requested entry is not found.
114.Sh FILES 123.Sh FILES
115.Bl -tag -width /etc/networks -compact 124.Bl -tag -width /etc/networks -compact
116.It Pa /etc/networks 125.It Pa /etc/networks
117.El 126.El
118.Sh DIAGNOSTICS
119Null pointer (0) returned on
120.Dv EOF
121or error.
122.Sh SEE ALSO 127.Sh SEE ALSO
123.Xr resolver 3 , 128.Xr resolver 3 ,
124.Xr networks 5 129.Xr networks 5
130.Sh STANDARDS
131These functions conform to
132.St -p1003.1-2008 .
125.Sh HISTORY 133.Sh HISTORY
126The 134The
127.Fn getnetent , 135.Fn getnetent ,