-.\" $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.
.\" 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
.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 ,