summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnetent.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/getnetent.3')
-rw-r--r--src/lib/libc/net/getnetent.323
1 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/libc/net/getnetent.3 b/src/lib/libc/net/getnetent.3
index 9cd54a817c..a3aebf4310 100644
--- a/src/lib/libc/net/getnetent.3
+++ b/src/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnetent.3,v 1.2 1996/08/19 08:28:45 tholo Exp $ 1.\" $OpenBSD: getnetent.3,v 1.3 1997/03/13 19:07:26 downsj 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.
@@ -31,9 +31,9 @@
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.Dd June 4, 1993 34.Dd March 13, 1997
35.Dt GETNETENT 3 35.Dt GETNETENT 3
36.Os BSD 4.2 36.Os
37.Sh NAME 37.Sh NAME
38.Nm getnetent , 38.Nm getnetent ,
39.Nm getnetbyaddr , 39.Nm getnetbyaddr ,
@@ -48,7 +48,7 @@
48.Ft struct netent * 48.Ft struct netent *
49.Fn getnetbyname "char *name" 49.Fn getnetbyname "char *name"
50.Ft struct netent * 50.Ft struct netent *
51.Fn getnetbyaddr "long net" "int type" 51.Fn getnetbyaddr "unsigned long net" "int type"
52.Fn setnetent "int stayopen" 52.Fn setnetent "int stayopen"
53.Fn endnetent 53.Fn endnetent
54.Sh DESCRIPTION 54.Sh DESCRIPTION
@@ -111,11 +111,10 @@ The
111function 111function
112and 112and
113.Fn getnetbyaddr 113.Fn getnetbyaddr
114sequentially search from the beginning 114search the domain name server if the system is configured to use one.
115of the file until a matching 115If the search fails, or no name server is configured, they sequentially
116net name or 116search from the beginning of the file until a matching net name or
117net address and type is found, 117net address and type is found, or until
118or until
119.Dv EOF 118.Dv EOF
120is encountered. 119is encountered.
121Network numbers are supplied in host order. 120Network numbers are supplied in host order.
@@ -129,7 +128,8 @@ Null pointer
129.Dv EOF 128.Dv EOF
130or error. 129or error.
131.Sh SEE ALSO 130.Sh SEE ALSO
132.Xr networks 5 131.Xr networks 5 ,
132.Xr resolver 3
133.Sh HISTORY 133.Sh HISTORY
134The 134The
135.Fn getnetent , 135.Fn getnetent ,
@@ -147,5 +147,4 @@ copied before any subsequent calls to these functions overwrite it.
147Only Internet network 147Only Internet network
148numbers are currently understood. 148numbers are currently understood.
149Expecting network numbers to fit 149Expecting network numbers to fit
150in no more than 32 bits is probably 150in no more than 32 bits is naive.
151naive.