gint system_accept4(gint fd, struct sockaddr* addr, socklen_t* len, gint flags) { /* just ignore the flags and call accept */ if(flags) { Host* node = _system_switchInShadowContext(); debug("accept4 ignoring flags argument"); _system_switchOutShadowContext(node); } return system_accept(fd, addr, len); }
gint intercept_accept(gint fd, struct sockaddr* addr, socklen_t* addr_len) { return system_accept(fd, addr, addr_len); }
gint system_accept4(gint fd, struct sockaddr* addr, socklen_t* len, gint flags) { /* just ignore the flags and call accept */ return system_accept(fd, addr, len); }