X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fposix%2Fnetdb.m4;h=e384ef7b332ce6c7f53d2fedb2faf73c3346bae9;hb=8d1d1243a8a42b0046ac670808913b3bb06c994b;hp=8d5b49a72082042761f9a6fe03d40431ad8aa060;hpb=c9b3436bd51a4dcf7d6cc6817d4c7a8ad99538d4;p=m6w6%2Fext-psi diff --git a/m4/posix/netdb.m4 b/m4/posix/netdb.m4 index 8d5b49a..e384ef7 100644 --- a/m4/posix/netdb.m4 +++ b/m4/posix/netdb.m4 @@ -1,5 +1,4 @@ PSI_CHECK_NETDB() { - PSI_CONFIG_POSIX(netdb, netdb.h) PSI_STRUCT(struct hostent, [ char *h_name, @@ -93,4 +92,17 @@ PSI_CHECK_NETDB() { PSI_DECL(void setnetent, [(int stayopen)]) PSI_DECL(void setprotoent, [(int stayopen)]) PSI_DECL(void setservent, [(int stayopen)]) + + PSI_STRUCT(struct gaicb, [ + const char *ar_name, + const char *ar_service, + const struct addrinfo *ar_request, + struct addrinfo *ar_result] + ) + + PSI_DECL(int getaddrinfo_a, [(int mode, struct gaicb *list@<:@@:>@, int nitems, struct sigevent *sevp)], [], [-lanl]) + PSI_DECL(int gai_suspend, [(const struct gaicb *list@<:@@:>@, int nitems, const struct timespec *timeout)], [], [-lanl]) + PSI_DECL(int gai_error, [(struct gaicb *req)], [], [-lanl]) + PSI_DECL(int gai_cancel, [(struct gaicb *req)], [], [-lanl]) + }