get rid of (incorrect for 512 byte frags) BLKING macro
[unix-history] / usr / src / include / netdb.h
CommitLineData
f3ac96de
SL
1/* netdb.h 4.1 82/10/05 */
2/*
3 * Structures returned by network
4 * data base library. All addresses
5 * are supplied in host order, and
6 * returned in network order (suitable
7 * for use in system calls).
8 */
9struct hostent {
10 char *h_name; /* official name of host */
11 char **h_aliases; /* alias list */
12 int h_addrtype; /* host address type */
13 int h_length; /* length of address */
14 char *h_addr; /* address */
15};
16
17/*
18 * Assumption here is that a network number
19 * fits in 32 bits -- probably a poor one.
20 */
21struct netent {
22 char *n_name; /* official name of net */
23 char **n_aliases; /* alias list */
24 int n_addrtype; /* net address type */
25 int n_net; /* network # */
26};
27
28struct servent {
29 char *s_name; /* official service name */
30 char **s_aliases; /* alias list */
31 int s_port; /* port # */
32 char *s_proto; /* protocol to use */
33};
34
35struct protoent {
36 char *p_name; /* official protocol name */
37 char **p_aliases; /* alias list */
38 int p_proto; /* protocol # */
39};
40
41struct hostent *gethostbyname(), *gethostbyaddr(), *gethostent();
42struct netent *getnetbyname(), *getnetbyaddr(), *getnetent();
43struct servent *getservbyname(), *getservbyport(), *getservent();
44struct protoent *getprotobyname(), *getprotobynumber(), *getprotoent();