-.\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved. The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1983 The Regents of the University of California.
+.\" All rights reserved.
.\"
-.\" @(#)getservent.3 6.2 (Berkeley) %G%
+.\" Redistribution and use in source and binary forms are permitted
+.\" provided that the above copyright notice and this paragraph are
+.\" duplicated in all such forms and that any documentation,
+.\" advertising materials, and other materials related to such
+.\" distribution and use acknowledge that the software was developed
+.\" by the University of California, Berkeley. The name of the
+.\" University may not be used to endorse or promote products derived
+.\" from this software without specific prior written permission.
+.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH GETSERVENT 3N ""
+.\" @(#)getservent.3 6.4 (Berkeley) %G%
+.\"
+.TH GETSERVENT 3 ""
.UC 5
.SH NAME
-getservent, getservbyport, getservbyname, setservent, endservent \- get service entry
+getservent, getservbyport, getservbyname, setservent,
+endservent \- get service entry
.SH SYNOPSIS
.nf
.ft B
.I stayopen
flag is non-zero,
the net data base will not be closed after each call to
-.I getservent
-(either directly, or indirectly through one of
-the other \*(lqgetserv\*(rq calls).
+.I getservbyname
+or .IR getservbyport .
.PP
.I Endservent
closes the file.
.SH FILES
/etc/services
.SH "SEE ALSO"
-getprotoent(3N), services(5)
+getprotoent(3), services(5)
.SH DIAGNOSTICS
Null pointer
(0) returned on EOF or error.