getnetent.3 (0d9deed52c5ed3b24d2da5ec3a0a172fe9092a96) getnetent.3 (5744601120ac8a73215df499be15e47f16d594bb)
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.

--- 59 unchanged lines hidden (view full) ---

68.Pa /etc/networks ,
69or entries supplied by the
70.Xr yp 8
71system.
72The order of the lookups is controlled by the
73`networks' entry in
74.Xr nsswitch.conf 5 .
75.Bd -literal -offset indent
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.

--- 59 unchanged lines hidden (view full) ---

68.Pa /etc/networks ,
69or entries supplied by the
70.Xr yp 8
71system.
72The order of the lookups is controlled by the
73`networks' entry in
74.Xr nsswitch.conf 5 .
75.Bd -literal -offset indent
76struct netent {
76struct netent {
77 char *n_name; /* official name of net */
78 char **n_aliases; /* alias list */
79 int n_addrtype; /* net number type */
80 uint32_t n_net; /* net number */
81};
82.Ed
83.Pp
84The members of this structure are:

--- 52 unchanged lines hidden (view full) ---

137Network numbers are supplied in host order.
138.Sh FILES
139.Bl -tag -width /etc/nsswitch.conf -compact
140.It Pa /etc/networks
141.It Pa /etc/nsswitch.conf
142.It Pa /etc/resolv.conf
143.El
144.Sh DIAGNOSTICS
77 char *n_name; /* official name of net */
78 char **n_aliases; /* alias list */
79 int n_addrtype; /* net number type */
80 uint32_t n_net; /* net number */
81};
82.Ed
83.Pp
84The members of this structure are:

--- 52 unchanged lines hidden (view full) ---

137Network numbers are supplied in host order.
138.Sh FILES
139.Bl -tag -width /etc/nsswitch.conf -compact
140.It Pa /etc/networks
141.It Pa /etc/nsswitch.conf
142.It Pa /etc/resolv.conf
143.El
144.Sh DIAGNOSTICS
145Null pointer
146(0) returned on
145Null pointer returned on
147.Dv EOF
148or error.
149.Sh SEE ALSO
150.Xr networks 5
151.Pp
152.%T RFC 1101
153.Sh HISTORY
154The

--- 17 unchanged lines hidden ---
146.Dv EOF
147or error.
148.Sh SEE ALSO
149.Xr networks 5
150.Pp
151.%T RFC 1101
152.Sh HISTORY
153The

--- 17 unchanged lines hidden ---