init_module.c 789 B

12345678910111213141516171819202122232425
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * init_module() 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. int init_module(void *first, void *second, void *third, void *fourth, void *fifth);
  11. #ifdef __NR_init_module
  12. /* This may have 5 arguments (for old 2.0 kernels) or 2 arguments
  13. * (for 2.2 and 2.4 kernels). Use the greatest common denominator,
  14. * and let the kernel cope with whatever it gets. It's good at that. */
  15. _syscall5(int, init_module, void *, first, void *, second, void *, third,
  16. void *, fourth, void *, fifth)
  17. #else
  18. int init_module(void *first, void *second, void *third, void *fourth, void *fifth)
  19. {
  20. __set_errno(ENOSYS);
  21. return -1;
  22. }
  23. #endif