0

I was looking at the libevent code, and saw some code like this:

 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) {
        return (syscall(__NR_epoll_ctl, epfd, op, fd, event));
 }

What are the reasons to use it? Why would this be better than a direct call to the function?

 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
Necreaux
  • 9,451
  • 7
  • 26
  • 43
zhang will
  • 29
  • 1
  • 2

0 Answers0