query_module.c 587 B

123456789101112131415161718192021
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * query_module() for uClibc
  4. *
  5. * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
  6. *
  7. * GNU Library General Public License (LGPL) version 2 or later.
  8. */
  9. #include "syscalls.h"
  10. #ifdef __NR_query_module
  11. _syscall5(int, query_module, const char *, name, int, which,
  12. void *, buf, size_t, bufsize, size_t *, ret);
  13. #else
  14. int query_module(const char *name attribute_unused, int which attribute_unused,
  15. void *buf attribute_unused, size_t bufsize attribute_unused, size_t * ret attribute_unused)
  16. {
  17. __set_errno(ENOSYS);
  18. return -1;
  19. }
  20. #endif