summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getprotoent.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/getprotoent.3')
-rw-r--r--src/lib/libc/net/getprotoent.314
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/net/getprotoent.3 b/src/lib/libc/net/getprotoent.3
index 7b50952362..ea3644f6c9 100644
--- a/src/lib/libc/net/getprotoent.3
+++ b/src/lib/libc/net/getprotoent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getprotoent.3,v 1.15 2005/06/05 19:40:21 jmc Exp $ 1.\" $OpenBSD: getprotoent.3,v 1.16 2005/07/22 04:50:51 jaredy Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -87,7 +87,7 @@ The members of this structure are:
87.It Fa p_name 87.It Fa p_name
88The official name of the protocol. 88The official name of the protocol.
89.It Fa p_aliases 89.It Fa p_aliases
90A zero-terminated list of alternate names for the protocol. 90A null-terminated list of alternate names for the protocol.
91.It Fa p_proto 91.It Fa p_proto
92The protocol number. 92The protocol number.
93.El 93.El
@@ -102,7 +102,7 @@ function opens and rewinds the file.
102If the 102If the
103.Fa stayopen 103.Fa stayopen
104flag is non-zero, 104flag is non-zero,
105the net database will not be closed after each call to 105the protocol database will not be closed after each call to
106.Fn getprotobyname 106.Fn getprotobyname
107or 107or
108.Fn getprotobynumber . 108.Fn getprotobynumber .
@@ -129,7 +129,7 @@ and
129.Fn endprotoent_r 129.Fn endprotoent_r
130functions are reentrant versions of the above functions that take a 130functions are reentrant versions of the above functions that take a
131pointer to a 131pointer to a
132.Fa protoent_data 132.Vt protoent_data
133structure which is used to store state information. 133structure which is used to store state information.
134The structure must be zero-filled before it is used 134The structure must be zero-filled before it is used
135and should be considered opaque for the sake of portability. 135and should be considered opaque for the sake of portability.
@@ -141,7 +141,7 @@ and
141.Fn getprotobyname_r 141.Fn getprotobyname_r
142functions 142functions
143also take a pointer to a 143also take a pointer to a
144.Fa protoent 144.Vt protoent
145structure which is used to store the results of the database lookup. 145structure which is used to store the results of the database lookup.
146.Sh RETURN VALUES 146.Sh RETURN VALUES
147The 147The
@@ -150,7 +150,7 @@ The
150and 150and
151.Fn getprotobyname 151.Fn getprotobyname
152functions return a pointer to a 152functions return a pointer to a
153.Fa servent 153.Vt protoent
154structure on success or a null pointer if end-of-file 154structure on success or a null pointer if end-of-file
155is reached or an error occurs. 155is reached or an error occurs.
156.Pp 156.Pp
@@ -186,7 +186,7 @@ The
186and 186and
187.Fn endprotoent_r 187.Fn endprotoent_r
188functions are not currently standardized. 188functions are not currently standardized.
189This implementation follows the API used by HP, IBM and Digital. 189This implementation follows the API used by HP, IBM, and Digital.
190.Sh HISTORY 190.Sh HISTORY
191The 191The
192.Fn getprotoent , 192.Fn getprotoent ,