gint system_epollPWait(gint epollDescriptor, struct epoll_event* events, gint maxevents, gint timeout, const sigset_t* signalSet) { /* * this is the same as system_epollWait, except it catches signals in the * signal set. lets just assume we have no signals to worry about. * forward to our regular wait method. * * @warning we dont handle signals */ return system_epollWait(epollDescriptor, events, maxevents, timeout); }
gint system_epollPWait(gint epollDescriptor, struct epoll_event* events, gint maxevents, gint timeout, const sigset_t* signalSet) { /* * this is the same as system_epollWait, except it catches signals in the * signal set. lets just assume we have no signals to worry about. * forward to our regular wait method. * * @warning we dont handle signals */ if(signalSet) { Host* node = _system_switchInShadowContext(); warning("epollpwait using a signalset is not yet supported"); _system_switchOutShadowContext(node); } return system_epollWait(epollDescriptor, events, maxevents, timeout); }
gint intercept_epoll_wait(gint epfd, struct epoll_event *events, gint maxevents, gint timeout) { return system_epollWait(epfd, events, maxevents, timeout); }