diff options
Diffstat (limited to 'lib/libc/net/getservent.3')
-rw-r--r-- | lib/libc/net/getservent.3 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libc/net/getservent.3 b/lib/libc/net/getservent.3 index 477d34249d3..3ef95fb817a 100644 --- a/lib/libc/net/getservent.3 +++ b/lib/libc/net/getservent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getservent.3,v 1.7 1999/07/04 18:59:43 aaron Exp $ +.\" $OpenBSD: getservent.3,v 1.8 1999/07/05 04:40:59 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -79,7 +79,7 @@ The members of this structure are: .It Fa s_name The official name of the service. .It Fa s_aliases -A zero terminated list of alternate names for the service. +A zero-terminated list of alternate names for the service. .It Fa s_port The port number at which the service resides. Port numbers are returned in network byte order. @@ -99,7 +99,7 @@ function opens and rewinds the file. If the .Fa stayopen flag is non-zero, -the net data base will not be closed after each call to +the net data base will not be closed after each call to .Fn getservbyname or .Fn getservbyport . @@ -121,8 +121,7 @@ port number (specified in network byte order) is found, or until .Dv EOF is encountered. -If a protocol name is also supplied (non- -.Dv NULL ) , +If a protocol name is also supplied (non-null), searches must also match the protocol. .Sh FILES .Bl -tag -width /etc/services -compact @@ -144,11 +143,10 @@ The .Fn setservent , and .Fn endservent -functions appeared in +functions appeared in .Bx 4.2 . .Sh BUGS These functions use static data storage; if the data is needed for future use, it should be copied before any subsequent calls overwrite it. -Expecting port numbers to fit in a 32 bit -quantity is probably naive. +Expecting port numbers to fit in a 32-bit quantity is probably naive. |