query_module.c 770 B

1234567891011121314151617181920212223
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * query_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 "syscalls.h"
  10. int query_module(const char *name attribute_unused, int which attribute_unused,
  11. void *buf attribute_unused, size_t bufsize attribute_unused, size_t * ret attribute_unused);
  12. #ifdef __NR_query_module
  13. _syscall5(int, query_module, const char *, name, int, which,
  14. void *, buf, size_t, bufsize, size_t *, ret);
  15. #else
  16. int query_module(const char *name attribute_unused, int which attribute_unused,
  17. void *buf attribute_unused, size_t bufsize attribute_unused, size_t * ret attribute_unused)
  18. {
  19. __set_errno(ENOSYS);
  20. return -1;
  21. }
  22. #endif