From: Costin Lupu Date: Fri, 16 Aug 2019 07:09:43 +0000 (+0300) Subject: netdb.h: Add getservbyname() and getservbyport() declarations X-Git-Tag: RELEASE-0.4~42 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=66a19b262c1aa610ea83f237dd08ec46e149453d;p=unikraft%2Flibs%2Flwip.git netdb.h: Add getservbyname() and getservbyport() declarations The stubs were already defined, but the declarations were missing. Signed-off-by: Costin Lupu Reviewed-by: Felipe Huici --- diff --git a/include/netdb.h b/include/netdb.h index d31624c..d650499 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -49,3 +49,6 @@ const char *gai_strerror(int errcode); int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags); + +struct servent *getservbyname(const char *name, const char *proto); +struct servent *getservbyport(int port, const char *proto);