epoll.c 668 B

1234567891011121314151617181920212223242526272829303132
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * epoll_create() / epoll_ctl() / epoll_wait() for uClibc
  4. *
  5. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  6. *
  7. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  8. */
  9. #include <sys/syscall.h>
  10. #include <sys/epoll.h>
  11. /*
  12. * epoll_create()
  13. */
  14. #ifdef __NR_epoll_create
  15. _syscall1(int, epoll_create, int, size)
  16. #endif
  17. /*
  18. * epoll_ctl()
  19. */
  20. #ifdef __NR_epoll_ctl
  21. _syscall4(int,epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event *, event)
  22. #endif
  23. /*
  24. * epoll_wait()
  25. */
  26. #ifdef __NR_epoll_wait
  27. _syscall4(int, epoll_wait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout)
  28. #endif