summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authorschwarze <>2017-11-28 18:10:59 +0000
committerschwarze <>2017-11-28 18:10:59 +0000
commitef5009a6513a12d5b012a660db518b01e8579d92 (patch)
tree66f8fa38a299df97a4d9653704b4358fb685f5cd /src/lib/libc
parenta48afd8464de363faf0ccc7202d92dc5b8e148d7 (diff)
downloadopenbsd-ef5009a6513a12d5b012a660db518b01e8579d92.tar.gz
openbsd-ef5009a6513a12d5b012a660db518b01e8579d92.tar.bz2
openbsd-ef5009a6513a12d5b012a660db518b01e8579d92.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 'src/lib/libc')
-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 ,