| 862 | struct hostent* co_gethostbyname(const char *name); |
| 863 | |
| 864 | struct 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 | |
| 881 | struct res_state_wrap |
nothing calls this directly
no test coverage detected