diff options
Diffstat (limited to 'src/lib/libc/net/getprotoent.3')
-rw-r--r-- | src/lib/libc/net/getprotoent.3 | 14 |
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 |
88 | The official name of the protocol. | 88 | The official name of the protocol. |
89 | .It Fa p_aliases | 89 | .It Fa p_aliases |
90 | A zero-terminated list of alternate names for the protocol. | 90 | A null-terminated list of alternate names for the protocol. |
91 | .It Fa p_proto | 91 | .It Fa p_proto |
92 | The protocol number. | 92 | The protocol number. |
93 | .El | 93 | .El |
@@ -102,7 +102,7 @@ function opens and rewinds the file. | |||
102 | If the | 102 | If the |
103 | .Fa stayopen | 103 | .Fa stayopen |
104 | flag is non-zero, | 104 | flag is non-zero, |
105 | the net database will not be closed after each call to | 105 | the protocol database will not be closed after each call to |
106 | .Fn getprotobyname | 106 | .Fn getprotobyname |
107 | or | 107 | or |
108 | .Fn getprotobynumber . | 108 | .Fn getprotobynumber . |
@@ -129,7 +129,7 @@ and | |||
129 | .Fn endprotoent_r | 129 | .Fn endprotoent_r |
130 | functions are reentrant versions of the above functions that take a | 130 | functions are reentrant versions of the above functions that take a |
131 | pointer to a | 131 | pointer to a |
132 | .Fa protoent_data | 132 | .Vt protoent_data |
133 | structure which is used to store state information. | 133 | structure which is used to store state information. |
134 | The structure must be zero-filled before it is used | 134 | The structure must be zero-filled before it is used |
135 | and should be considered opaque for the sake of portability. | 135 | and should be considered opaque for the sake of portability. |
@@ -141,7 +141,7 @@ and | |||
141 | .Fn getprotobyname_r | 141 | .Fn getprotobyname_r |
142 | functions | 142 | functions |
143 | also take a pointer to a | 143 | also take a pointer to a |
144 | .Fa protoent | 144 | .Vt protoent |
145 | structure which is used to store the results of the database lookup. | 145 | structure which is used to store the results of the database lookup. |
146 | .Sh RETURN VALUES | 146 | .Sh RETURN VALUES |
147 | The | 147 | The |
@@ -150,7 +150,7 @@ The | |||
150 | and | 150 | and |
151 | .Fn getprotobyname | 151 | .Fn getprotobyname |
152 | functions return a pointer to a | 152 | functions return a pointer to a |
153 | .Fa servent | 153 | .Vt protoent |
154 | structure on success or a null pointer if end-of-file | 154 | structure on success or a null pointer if end-of-file |
155 | is reached or an error occurs. | 155 | is reached or an error occurs. |
156 | .Pp | 156 | .Pp |
@@ -186,7 +186,7 @@ The | |||
186 | and | 186 | and |
187 | .Fn endprotoent_r | 187 | .Fn endprotoent_r |
188 | functions are not currently standardized. | 188 | functions are not currently standardized. |
189 | This implementation follows the API used by HP, IBM and Digital. | 189 | This implementation follows the API used by HP, IBM, and Digital. |
190 | .Sh HISTORY | 190 | .Sh HISTORY |
191 | The | 191 | The |
192 | .Fn getprotoent , | 192 | .Fn getprotoent , |