X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/50159ed74700729c17f702bd3a2e78e1b67e2e62..9e7fde9481fa434bbeddd196f461ab65e8f12240:/usr/src/lib/libc/net/getservent.3?ds=inline diff --git a/usr/src/lib/libc/net/getservent.3 b/usr/src/lib/libc/net/getservent.3 index 2c0dea3719..b7085d7d2e 100644 --- a/usr/src/lib/libc/net/getservent.3 +++ b/usr/src/lib/libc/net/getservent.3 @@ -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 -getservent, getservbyport, getservbyname, setservent, endservent \- get service entry +getservent, getservbyport, getservbyname, setservent, +endservent \- get service entry .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 getservent -(either directly, or indirectly through one of -the other \*(lqgetserv\*(rq calls). +.I getservbyname +or .IR getservbyport . .PP .I Endservent closes the file. @@ -99,7 +110,7 @@ searches must also match the protocol. .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.