select.c 624 B

123456789101112131415161718192021222324
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * select() 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/select.h>
  11. extern __typeof(select) __libc_select;
  12. #ifdef __NR__newselect
  13. # define __NR___libc_select __NR__newselect
  14. #else
  15. # define __NR___libc_select __NR_select
  16. #endif
  17. _syscall5(int, __libc_select, int, n, fd_set *, readfds, fd_set *, writefds,
  18. fd_set *, exceptfds, struct timeval *, timeout);
  19. libc_hidden_proto(select)
  20. weak_alias(__libc_select,select)
  21. libc_hidden_weak(select)