diff options
Diffstat (limited to 'Libraries/LibC/netdb.h')
-rw-r--r-- | Libraries/LibC/netdb.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Libraries/LibC/netdb.h b/Libraries/LibC/netdb.h index 802c89a39d..c2bd5a130f 100644 --- a/Libraries/LibC/netdb.h +++ b/Libraries/LibC/netdb.h @@ -55,6 +55,19 @@ struct servent* getservbyname(const char* name, const char* protocol); struct servent* getservbyport(int port, const char* protocol); void setservent(int stay_open); void endservent(); + +struct protoent { + char* p_name; + char** p_aliases; + int p_proto; +}; + +void endprotoent(); +struct protoent* getprotobyname(const char* name); +struct protoent* getprotobynumber(int proto); +struct protoent* getprotoent(); +void setprotoent(int stay_open); + extern int h_errno; #define HOST_NOT_FOUND 101 |