Deleted Added
full compact
getprotoent.3 (79531) getprotoent.3 (79754)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getprotoent.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getprotoent.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/net/getprotoent.3 79531 2001-07-10 13:41:46Z ru $
33.\" $FreeBSD: head/lib/libc/net/getprotoent.3 79754 2001-07-15 07:53:42Z dd $
34.\"
35.Dd June 4, 1993
36.Dt GETPROTOENT 3
37.Os
38.Sh NAME
39.Nm getprotoent ,
40.Nm getprotobynumber ,
41.Nm getprotobyname ,

--- 51 unchanged lines hidden (view full) ---

93reads the next line of the file, opening the file if necessary.
94.Pp
95The
96.Fn setprotoent
97function
98opens and rewinds the file. If the
99.Fa stayopen
100flag is non-zero,
34.\"
35.Dd June 4, 1993
36.Dt GETPROTOENT 3
37.Os
38.Sh NAME
39.Nm getprotoent ,
40.Nm getprotobynumber ,
41.Nm getprotobyname ,

--- 51 unchanged lines hidden (view full) ---

93reads the next line of the file, opening the file if necessary.
94.Pp
95The
96.Fn setprotoent
97function
98opens and rewinds the file. If the
99.Fa stayopen
100flag is non-zero,
101the net data base will not be closed after each call to
101the net data base will not be closed after each call to
102.Fn getprotobyname
103or
104.Fn getprotobynumber .
105.Pp
106The
107.Fn endprotoent
108function
109closes the file.

--- 24 unchanged lines hidden (view full) ---

134.Sh HISTORY
135The
136.Fn getprotoent ,
137.Fn getprotobynumber ,
138.Fn getprotobyname ,
139.Fn setprotoent ,
140and
141.Fn endprotoent
102.Fn getprotobyname
103or
104.Fn getprotobynumber .
105.Pp
106The
107.Fn endprotoent
108function
109closes the file.

--- 24 unchanged lines hidden (view full) ---

134.Sh HISTORY
135The
136.Fn getprotoent ,
137.Fn getprotobynumber ,
138.Fn getprotobyname ,
139.Fn setprotoent ,
140and
141.Fn endprotoent
142functions appeared in
142functions appeared in
143.Bx 4.2 .
144.Sh BUGS
145These functions use a static data space;
146if the data is needed for future use, it should be
147copied before any subsequent calls overwrite it.
148Only the Internet
149protocols are currently understood.
143.Bx 4.2 .
144.Sh BUGS
145These functions use a static data space;
146if the data is needed for future use, it should be
147copied before any subsequent calls overwrite it.
148Only the Internet
149protocols are currently understood.