__socketcall.c 579 B

123456789101112131415161718192021222324
  1. /*
  2. * __socketcall() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. /* At the time of this writing,
  10. * several arches provide the individual calls and do _not_ go through
  11. * this demuxer.
  12. *
  13. * Verify all arches supported by your kernel before you remove the
  14. * guard below!
  15. */
  16. #ifdef __NR_socketcall
  17. #include <sys/socket.h>
  18. #define __NR___socketcall __NR_socketcall
  19. _syscall2(int, __socketcall, int, call, unsigned long *, args)
  20. #endif