diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rpc/rpc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index 4c9ee82617..60c78968de 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -57,6 +57,12 @@ libc_hidden_proto (__rpc_thread_svc_pollfd) libc_hidden_proto (__rpc_thread_svc_fdset) libc_hidden_proto (__rpc_thread_createerr) +/* Perform a host name lookup for NAME and return the first IPv4 + address in *ADDR. Return 0 on success and -1 on error (and set an + RPC error). */ +int __libc_rpc_gethostbyname (const char *host, struct sockaddr_in *addr) + attribute_hidden; + #endif /* _RPC_THREAD_SAFE_ */ # endif /* !_ISOMAC */ |