sysctl.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Copyright (C) 1996, 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _SYS_SYSCTL_H
  15. #define _SYS_SYSCTL_H 1
  16. #include <features.h>
  17. #define __need_size_t
  18. #include <stddef.h>
  19. /* Prevent more kernel headers than necessary to be included. */
  20. #ifndef _LINUX_KERNEL_H
  21. # define _LINUX_KERNEL_H 1
  22. # define __undef_LINUX_KERNEL_H
  23. #endif
  24. #ifndef _LINUX_TYPES_H
  25. # define _LINUX_TYPES_H 1
  26. # define __undef_LINUX_TYPES_H
  27. #endif
  28. #ifndef _LINUX_LIST_H
  29. # define _LINUX_LIST_H 1
  30. # define __undef_LINUX_LIST_H
  31. #endif
  32. #ifndef __LINUX_COMPILER_H
  33. # define __LINUX_COMPILER_H 1
  34. # define __user
  35. # define __undef__LINUX_COMPILER_H
  36. #endif
  37. #include <linux/sysctl.h>
  38. #ifdef __undef_LINUX_KERNEL_H
  39. # undef _LINUX_KERNEL_H
  40. # undef __undef_LINUX_KERNEL_H
  41. #endif
  42. #ifdef __undef_LINUX_TYPES_H
  43. # undef _LINUX_TYPES_H
  44. # undef __undef_LINUX_TYPES_H
  45. #endif
  46. #ifdef __undef_LINUX_LIST_H
  47. # undef _LINUX_LIST_H
  48. # undef __undef_LINUX_LIST_H
  49. #endif
  50. #ifdef __undef__LINUX_COMPILER_H
  51. # undef __LINUX_COMPILER_H
  52. # undef __user
  53. # undef __undef__LINUX_COMPILER_H
  54. #endif
  55. __BEGIN_DECLS
  56. /* Read or write system parameters. */
  57. extern int sysctl (int *__name, int __nlen, void *__oldval,
  58. size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;
  59. __END_DECLS
  60. #endif /* _SYS_SYSCTL_H */