MCPcopy Index your code
hub / github.com/F-Stack/f-stack / close

Function close

adapter/micro_thread/mt_sys_hook.cpp:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int close(int fd)
148{
149 mt_hook_syscall(close);
150 if (!ff_hook_active())
151 {
152 return mt_real_func(close)(fd);
153 }
154
155 mt_hook_free_fd(fd);
156 return ff_hook_close(fd);
157}
158
159int connect(int fd, const struct sockaddr *address, socklen_t address_len)
160{

Callers 15

CreateSocketMethod · 0.70
CloseSocketMethod · 0.70
CloseMethod · 0.70
CreateSockMethod · 0.70
CreateSocketMethod · 0.70
CloseSocketMethod · 0.70
echoFunction · 0.70
echo_serverFunction · 0.70
TermKqueueMethod · 0.70
mt_udpsendrcvFunction · 0.70
mt_tcp_create_sockFunction · 0.70
mt_tcpsendrcv_shortFunction · 0.70

Calls 2

mt_hook_free_fdFunction · 0.85
ff_hook_closeFunction · 0.70

Tested by

no test coverage detected