We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f2306 commit d138835Copy full SHA for d138835
co_hook_sys_call.cpp
@@ -822,6 +822,18 @@ struct hostent *gethostbyname(const char *name)
822
}
823
824
825
+struct hostent* co_gethostbyname(const char *name);
826
+
827
+struct hostent *gethostbyname(const char *name)
828
+{
829
+ HOOK_SYS_FUNC( gethostbyname );
830
+ if (!co_is_enable_sys_hook())
831
+ {
832
+ return g_sys_gethostbyname_func(name);
833
+ }
834
+ return co_gethostbyname(name);
835
+}
836
837
struct res_state_wrap
838
{
839
struct __res_state state;
0 commit comments