MCPcopy Create free account
hub / github.com/F-Stack/f-stack / accept4

Function accept4

app/redis-6.2.6/src/anet_ff.c:279–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279int
280accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
281{
282 if (unlikely(inited == 0)) {
283 INIT_FUNCTION(accept4);
284 return real_accept4(sockfd, addr, addrlen, flags);
285 }
286
287 if (ff_fdisused(sockfd)) {
288 return ff_accept(sockfd, (struct linux_sockaddr *)addr, addrlen);
289 } else {
290 return real_accept4(sockfd, addr, addrlen, flags);
291 }
292}
293
294int
295close(int sockfd)

Callers 4

conn_req_pollFunction · 0.50
conn_poll_for_connFunction · 0.50
conn_poll_for_connFunction · 0.50

Calls 2

ff_fdisusedFunction · 0.85
ff_acceptFunction · 0.85

Tested by

no test coverage detected