init_module.c 697 B

123456789101112131415161718192021222324
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * init_module() for uClibc
  4. *
  5. * Copyright (C) 2000-2004 by Erik Andersen <andersen@codpoet.org>
  6. *
  7. * GNU Library General Public License (LGPL) version 2 or later.
  8. */
  9. #include "syscalls.h"
  10. #ifdef __NR_init_module
  11. /* This may have 5 arguments (for old 2.0 kernels) or 2 arguments
  12. * (for 2.2 and 2.4 kernels). Use the greatest common denominator,
  13. * and let the kernel cope with whatever it gets. It's good at that. */
  14. _syscall5(int, init_module, void *, first, void *, second, void *, third,
  15. void *, fourth, void *, fifth);
  16. #else
  17. int init_module(void *first, void *second, void *third, void *fourth, void *fifth)
  18. {
  19. __set_errno(ENOSYS);
  20. return -1;
  21. }
  22. #endif