1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" References consulted:
24 .\" Linux libc source code
25 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
27 .\" Modified Sat Jul 24 21:48:06 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" Translated to German Fri Nov 1 1996 by Patrick Rother <krd@gulu.net>
30 .TH GETNETENT 3 "1. November 1996" "BSD" "Bibliotheksfunktionen"
32 getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent \-
38 .B struct netent *getnetent(void);
40 .BI "struct netent *getnetbyname(const char *" name );
42 .BI "struct netent *getnetbyaddr(long " net ", int " type );
44 .BI "void setnetent(int " stayopen );
46 .B void endnetent(void);
51 liest die nächste Zeile der Datei
53 und gibt eine Struktur
55 zurück, die die Felder der Zeile enthält. Die Datei
57 wird geöffnet, falls nötig.
63 zurück für die Zeile aus
73 zurück für die Zeile, die der Netznummer
83 und setzt den Dateizeiger auf den Anfang. Wenn
85 wahr ist (1), dann wird die Datei nicht geschlossen zwischen Aufrufen von
86 .BR getnetbyname() " und " getnetbyaddr() .
89 .BR endservent() " schließt " /etc/networks .
102 char *n_name; /* offizieller Netzname */
103 char **n_aliases; /* Aliasliste */
104 int n_addrtype; /* Netzadressentyp */
105 unsigned long int n_net; /* Netznummer */
111 Die Einträge der Struktur
116 Der offizielle Name der Netzes.
119 Eine mit Null beendete Liste von alternativen Namen für das Netz.
122 Der Typ der Netznummer; immer AF_INET.
125 Die Netznummer in Host-Byte-Ordnung.
128 .BR getnetent() ", " getnetbyname() " und " getnetbyaddr()
131 zurück, oder einen NULL-Zeiger wenn ein Fehler auftritt oder das Ende
132 der Liste erreicht ist.
136 Netzwerkdatenbankdatei