From f2f8b3101d65123eeeb017e04b80e215da6bdbf2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 28 Nov 2017 18:11:00 +0000 Subject: 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. --- lib/libc/net/getnetent.3 | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'lib') 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 , -- cgit v1.2.3