from the ANSI standard
[unix-history] / usr / src / lib / libc / net / getservent.3
index 2c0dea3..b7085d7 100644 (file)
@@ -1,13 +1,25 @@
-.\" 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
 .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
 .SH SYNOPSIS
 .nf
 .ft B
@@ -79,9 +91,8 @@ opens and rewinds the file.  If the
 .I stayopen
 flag is non-zero,
 the net data base will not be closed after each call to 
 .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.
 .PP
 .I Endservent
 closes the file.
@@ -99,7 +110,7 @@ searches must also match the protocol.
 .SH FILES
 /etc/services
 .SH "SEE ALSO"
 .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.
 .SH DIAGNOSTICS
 Null pointer
 (0) returned on EOF or error.