MCPcopy Create free account
hub / github.com/acl-dev/acl / should_check

Function should_check

lib_acl/samples/hook_close/hook_close.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static int should_check(int port)
111{
112 int i;
113
114 if (port <= 0) {
115 acl_msg_error("%s(%d), %s: invalid port: %d",
116 __FILE__, __LINE__, __FUNCTION__, port);
117 return 0;
118 }
119
120 for (i = 0; i < __monitor_ports_cur; i++) {
121 if (__monitor_ports[i] == port)
122 return 1;
123 }
124
125 return 0;
126}
127
128int close(int fd)
129{

Callers 1

closeFunction · 0.85

Calls 1

acl_msg_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…