MCPcopy Create free account
hub / github.com/Tencent/libco / gethostbyname

Function gethostbyname

co_hook_sys_call.cpp:864–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862struct hostent* co_gethostbyname(const char *name);
863
864struct hostent *gethostbyname(const char *name)
865{
866 HOOK_SYS_FUNC( gethostbyname );
867
868#if defined( __APPLE__ ) || defined( __FreeBSD__ )
869 return g_sys_gethostbyname_func( name );
870#else
871 if (!co_is_enable_sys_hook())
872 {
873 return g_sys_gethostbyname_func(name);
874 }
875 return co_gethostbyname(name);
876#endif
877
878}
879
880
881struct res_state_wrap

Callers

nothing calls this directly

Calls 2

co_is_enable_sys_hookFunction · 0.85
co_gethostbynameFunction · 0.85

Tested by

no test coverage detected