summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getservent.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/getservent.3')
-rw-r--r--lib/libc/net/getservent.313
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libc/net/getservent.3 b/lib/libc/net/getservent.3
index f90571e..79c18a3 100644
--- a/lib/libc/net/getservent.3
+++ b/lib/libc/net/getservent.3
@@ -29,9 +29,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)getservent.3 8.4 (Berkeley) 5/25/95
+.\" From: @(#)getservent.3 8.3 (Berkeley) 1/12/94
+.\" $Id$
.\"
-.Dd May 25, 1995
+.Dd July 9, 1995
.Dt GETSERVENT 3
.Os BSD 4.2
.Sh NAME
@@ -46,9 +47,9 @@
.Ft struct servent *
.Fn getservent
.Ft struct servent *
-.Fn getservbyname "char *name" "char *proto"
+.Fn getservbyname "const char *name" "const char *proto"
.Ft struct servent *
-.Fn getservbyport "int port" proto
+.Fn getservbyport "int port" "const char *proto"
.Ft void
.Fn setservent "int stayopen"
.Ft void
@@ -79,7 +80,7 @@ The members of this structure are:
.It Fa s_name
The official name of the service.
.It Fa s_aliases
-A NULL-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.
@@ -121,7 +122,7 @@ port number is found,
or until
.Dv EOF
is encountered.
-If a protocol name is also supplied (non-\c
+If a protocol name is also supplied (non-
.Dv NULL ) ,
searches must also match the protocol.
.ne 1i
OpenPOWER on IntegriCloud