BSD 4_3 release
[unix-history] / usr / man / man3 / getnetent.3n
index 5d0c09f..3d7eb0b 100644 (file)
@@ -1,5 +1,11 @@
-.TH GETNETENT 3N "9 February 1983"
-.UC 4.2
+.\" Copyright (c) 1983 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)getnetent.3n        6.3 (Berkeley) 5/19/86
+.\"
+.TH GETNETENT 3N "May 19, 1986"
+.UC 5
 .SH NAME
 getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent \- get network entry
 .SH SYNOPSIS
 .SH NAME
 getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent \- get network entry
 .SH SYNOPSIS
@@ -15,12 +21,13 @@ struct netent *getnetbyname(name)
 char *name;
 .PP
 .ft B
 char *name;
 .PP
 .ft B
-struct netent *getnetbyaddr(net)
+struct netent *getnetbyaddr(net, type)
 long net;
 long net;
+int type;
 .PP
 .ft B
 setnetent(stayopen)
 .PP
 .ft B
 setnetent(stayopen)
-int stayopen
+int stayopen;
 .PP
 .ft B
 endnetent()
 .PP
 .ft B
 endnetent()
@@ -39,10 +46,10 @@ fields of a line in the network data base,
 .PP
 .nf
 struct netent {
 .PP
 .nf
 struct netent {
-       char    *n_name;        /* official name of net */
-       char    **n_aliases;    /* alias list */
-       int     n_addrtype;     /* net number type */
-       long    n_net;          /* net number */
+       char            *n_name;        /* official name of net */
+       char            **n_aliases;    /* alias list */
+       int             n_addrtype;     /* net number type */
+       unsigned long   n_net;          /* net number */
 };
 .ft R
 .ad
 };
 .ft R
 .ad
@@ -72,9 +79,9 @@ opens and rewinds the file.  If the
 .I stayopen
 flag is non-zero,
 the net data base will not be closed after each call to 
 .I stayopen
 flag is non-zero,
 the net data base will not be closed after each call to 
-.I getnetent
-(either directly, or indirectly through one of
-the other \*(lqgetnet\*(rq calls).
+.I getnetbyname
+or
+.IR getnetbyaddr .
 .PP
 .I Endnetent
 closes the file.
 .PP
 .I Endnetent
 closes the file.
@@ -85,7 +92,7 @@ and
 sequentially search from the beginning
 of the file until a matching
 net name or
 sequentially search from the beginning
 of the file until a matching
 net name or
-net address is found,
+net address and type is found,
 or until EOF is encountered.
 Network numbers are supplied in host order.
 .SH FILES
 or until EOF is encountered.
 Network numbers are supplied in host order.
 .SH FILES