getservent.3 (348238dbd42306d9fb5d89ab393b840572cfeb0f) | getservent.3 (0393604aa86c7177162a0e6a288a8542a139273e) |
---|---|
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. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" From: @(#)getservent.3 8.3 (Berkeley) 1/12/94 29.\" $FreeBSD$ 30.\" | 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. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" From: @(#)getservent.3 8.3 (Berkeley) 1/12/94 29.\" $FreeBSD$ 30.\" |
31.Dd July 9, 1995 | 31.Dd December 7, 2020 |
32.Dt GETSERVENT 3 33.Os 34.Sh NAME 35.Nm getservent , 36.Nm getservbyport , 37.Nm getservbyname , 38.Nm setservent , 39.Nm endservent --- 83 unchanged lines hidden (view full) --- 123.Dv EOF 124is encountered. 125If a protocol name is also supplied (non- 126.Dv NULL ) , 127searches must also match the protocol. 128.Sh FILES 129.Bl -tag -width /etc/services -compact 130.It Pa /etc/services | 32.Dt GETSERVENT 3 33.Os 34.Sh NAME 35.Nm getservent , 36.Nm getservbyport , 37.Nm getservbyname , 38.Nm setservent , 39.Nm endservent --- 83 unchanged lines hidden (view full) --- 123.Dv EOF 124is encountered. 125If a protocol name is also supplied (non- 126.Dv NULL ) , 127searches must also match the protocol. 128.Sh FILES 129.Bl -tag -width /etc/services -compact 130.It Pa /etc/services |
131.It Pa /var/db/services.db |
|
131.El 132.Sh DIAGNOSTICS 133Null pointer returned on 134.Dv EOF 135or error. 136.Sh SEE ALSO 137.Xr getprotoent 3 , | 132.El 133.Sh DIAGNOSTICS 134Null pointer returned on 135.Dv EOF 136or error. 137.Sh SEE ALSO 138.Xr getprotoent 3 , |
138.Xr services 5 | 139.Xr services 5 , 140.Xr services_mkdb 8 |
139.Sh HISTORY 140The 141.Fn getservent , 142.Fn getservbyport , 143.Fn getservbyname , 144.Fn setservent , 145and 146.Fn endservent 147functions appeared in 148.Bx 4.2 . 149.Sh BUGS 150These functions use a thread-specific data storage; 151if the data is needed for future use, it should be 152copied before any subsequent calls overwrite it. 153Expecting port numbers to fit in a 32 bit 154quantity is probably naive. | 141.Sh HISTORY 142The 143.Fn getservent , 144.Fn getservbyport , 145.Fn getservbyname , 146.Fn setservent , 147and 148.Fn endservent 149functions appeared in 150.Bx 4.2 . 151.Sh BUGS 152These functions use a thread-specific data storage; 153if the data is needed for future use, it should be 154copied before any subsequent calls overwrite it. 155Expecting port numbers to fit in a 32 bit 156quantity is probably naive. |