summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getprotoent.3
diff options
context:
space:
mode:
authoraaron <>1999-07-05 04:41:00 +0000
committeraaron <>1999-07-05 04:41:00 +0000
commitc47037b066169c61c5eefad3368f2da73ca4be54 (patch)
treefa80157fecd0fbb57811f82d8f3ce1366b44a203 /src/lib/libc/net/getprotoent.3
parent5f78a44df1a8e524a82445f2fedb382128869a2a (diff)
downloadopenbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.gz
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.tar.bz2
openbsd-c47037b066169c61c5eefad3368f2da73ca4be54.zip
repairs; better English, formatting, etc.
Diffstat (limited to 'src/lib/libc/net/getprotoent.3')
-rw-r--r--src/lib/libc/net/getprotoent.311
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/libc/net/getprotoent.3 b/src/lib/libc/net/getprotoent.3
index 46ab239c50..01f752ad5f 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.4 1999/05/25 01:50:58 aaron Exp $ 1.\" $OpenBSD: getprotoent.3,v 1.5 1999/07/05 04:40:59 aaron 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.
@@ -79,7 +79,7 @@ The members of this structure are:
79.It Fa p_name 79.It Fa p_name
80The official name of the protocol. 80The official name of the protocol.
81.It Fa p_aliases 81.It Fa p_aliases
82A zero terminated list of alternate names for the protocol. 82A zero-terminated list of alternate names for the protocol.
83.It Fa p_proto 83.It Fa p_proto
84The protocol number. 84The protocol number.
85.El 85.El
@@ -95,7 +95,7 @@ function
95opens and rewinds the file. If the 95opens and rewinds the file. If the
96.Fa stayopen 96.Fa stayopen
97flag is non-zero, 97flag is non-zero,
98the net data base will not be closed after each call to 98the net data base will not be closed after each call to
99.Fn getprotobyname 99.Fn getprotobyname
100or 100or
101.Fn getprotobynumber . 101.Fn getprotobynumber .
@@ -136,11 +136,10 @@ The
136.Fn setprotoent , 136.Fn setprotoent ,
137and 137and
138.Fn endprotoent 138.Fn endprotoent
139functions appeared in 139functions appeared in
140.Bx 4.2 . 140.Bx 4.2 .
141.Sh BUGS 141.Sh BUGS
142These functions use a static data space; 142These functions use a static data space;
143if the data is needed for future use, it should be 143if the data is needed for future use, it should be
144copied before any subsequent calls overwrite it. 144copied before any subsequent calls overwrite it.
145Only the Internet 145Only the Internet protocols are currently understood.
146protocols are currently understood.