mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
15 lines
258 B
C
15 lines
258 B
C
|
#include "wrap.h"
|
||
|
#include <netdb.h>
|
||
|
|
||
|
struct hostent *
|
||
|
m3_gethostbyaddr(const char *addr, int len, int type)
|
||
|
{
|
||
|
struct hostent *result;
|
||
|
|
||
|
ENTER_CRITICAL;
|
||
|
MAKE_READABLE(addr);
|
||
|
result = gethostbyaddr(addr, len, type);
|
||
|
EXIT_CRITICAL;
|
||
|
return result;
|
||
|
}
|