diff options
Diffstat (limited to 'src/lib/libc/net/getnetent.3')
-rw-r--r-- | src/lib/libc/net/getnetent.3 | 23 |
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 | |||
111 | function | 111 | function |
112 | and | 112 | and |
113 | .Fn getnetbyaddr | 113 | .Fn getnetbyaddr |
114 | sequentially search from the beginning | 114 | search the domain name server if the system is configured to use one. |
115 | of the file until a matching | 115 | If the search fails, or no name server is configured, they sequentially |
116 | net name or | 116 | search from the beginning of the file until a matching net name or |
117 | net address and type is found, | 117 | net address and type is found, or until |
118 | or until | ||
119 | .Dv EOF | 118 | .Dv EOF |
120 | is encountered. | 119 | is encountered. |
121 | Network numbers are supplied in host order. | 120 | Network numbers are supplied in host order. |
@@ -129,7 +128,8 @@ Null pointer | |||
129 | .Dv EOF | 128 | .Dv EOF |
130 | or error. | 129 | or 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 |
134 | The | 134 | The |
135 | .Fn getnetent , | 135 | .Fn getnetent , |
@@ -147,5 +147,4 @@ copied before any subsequent calls to these functions overwrite it. | |||
147 | Only Internet network | 147 | Only Internet network |
148 | numbers are currently understood. | 148 | numbers are currently understood. |
149 | Expecting network numbers to fit | 149 | Expecting network numbers to fit |
150 | in no more than 32 bits is probably | 150 | in no more than 32 bits is naive. |
151 | naive. | ||