]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
netdb.h: Add getservbyname() and getservbyport() declarations
authorCostin Lupu <costin.lupu@cs.pub.ro>
Fri, 16 Aug 2019 07:09:43 +0000 (10:09 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Tue, 20 Aug 2019 04:12:56 +0000 (06:12 +0200)
The stubs were already defined, but the declarations were missing.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/netdb.h

index d31624c12ff9b5c031ea8be92dfeaa8ef3f6780f..d650499c8cc36a9a51ef23e8753efcb82ceb646d 100644 (file)
@@ -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);