getprotoent.3 (84306) | getprotoent.3 (131504) |
---|---|
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 84306 2001-10-01 16:09:29Z ru $ | 33.\" $FreeBSD: head/lib/libc/net/getprotoent.3 131504 2004-07-02 23:52:20Z ru $ |
34.\" 35.Dd June 4, 1993 36.Dt GETPROTOENT 3 37.Os 38.Sh NAME 39.Nm getprotoent , 40.Nm getprotobynumber , 41.Nm getprotobyname , --- 48 unchanged lines hidden (view full) --- 90The 91.Fn getprotoent 92function 93reads the next line of the file, opening the file if necessary. 94.Pp 95The 96.Fn setprotoent 97function | 34.\" 35.Dd June 4, 1993 36.Dt GETPROTOENT 3 37.Os 38.Sh NAME 39.Nm getprotoent , 40.Nm getprotobynumber , 41.Nm getprotobyname , --- 48 unchanged lines hidden (view full) --- 90The 91.Fn getprotoent 92function 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 | 98opens and rewinds the file. 99If the |
99.Fa stayopen 100flag is non-zero, 101the net data base will not be closed after each call to 102.Fn getprotobyname 103or 104.Fn getprotobynumber . 105.Pp 106The --- 43 unchanged lines hidden --- | 100.Fa stayopen 101flag is non-zero, 102the net data base will not be closed after each call to 103.Fn getprotobyname 104or 105.Fn getprotobynumber . 106.Pp 107The --- 43 unchanged lines hidden --- |