diff options
Diffstat (limited to 'mdk-stage1/dietlibc/include/netdb.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/netdb.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/netdb.h b/mdk-stage1/dietlibc/include/netdb.h index 887faa999..e90ea81ac 100644 --- a/mdk-stage1/dietlibc/include/netdb.h +++ b/mdk-stage1/dietlibc/include/netdb.h @@ -72,4 +72,19 @@ struct protoent *getprotobynumber(int proto) __THROW; void setprotoent(int stayopen) __THROW; void endprotoent(void) __THROW; + +/* Description of data base entry for a single network. NOTE: here a + poor assumption is made. The network number is expected to fit + into an unsigned long int variable. */ +struct netent +{ + char *n_name; /* Official name of network. */ + char **n_aliases; /* Alias list. */ + int n_addrtype; /* Net address type. */ + uint32_t n_net; /* Network number. */ +}; + +extern struct netent *getnetbyname (__const char *__name) __THROW; + + #endif |