From 8e3da22d9e96b1f66fa86b077a8226eff4b85e17 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Tue, 28 Nov 2017 18:10:59 +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. --- src/lib/libc/net/getnetent.3 | 20 ++++++++++++++------ 1 file 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 @@ -.\" $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-55-g6feb