sysctl.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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, write to the Free
  13. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14. 02111-1307 USA. */
  15. #ifndef _SYS_SYSCTL_H
  16. #define _SYS_SYSCTL_H 1
  17. #include <features.h>
  18. #define __need_size_t
  19. #include <stddef.h>
  20. /* Prevent more kernel headers than necessary to be included. */
  21. #ifndef _LINUX_KERNEL_H
  22. # define _LINUX_KERNEL_H 1
  23. # define __undef_LINUX_KERNEL_H
  24. #endif
  25. #ifndef _LINUX_TYPES_H
  26. # define _LINUX_TYPES_H 1
  27. # define __undef_LINUX_TYPES_H
  28. #endif
  29. #ifndef _LINUX_LIST_H
  30. # define _LINUX_LIST_H 1
  31. # define __undef_LINUX_LIST_H
  32. #endif
  33. #ifndef __LINUX_COMPILER_H
  34. # define __LINUX_COMPILER_H 1
  35. # define __user
  36. # define __undef__LINUX_COMPILER_H
  37. #endif
  38. #include <linux/sysctl.h>
  39. #ifdef __undef_LINUX_KERNEL_H
  40. # undef _LINUX_KERNEL_H
  41. # undef __undef_LINUX_KERNEL_H
  42. #endif
  43. #ifdef __undef_LINUX_TYPES_H
  44. # undef _LINUX_TYPES_H
  45. # undef __undef_LINUX_TYPES_H
  46. #endif
  47. #ifdef __undef_LINUX_LIST_H
  48. # undef _LINUX_LIST_H
  49. # undef __undef_LINUX_LIST_H
  50. #endif
  51. #ifdef __undef__LINUX_COMPILER_H
  52. # undef __LINUX_COMPILER_H
  53. # undef __user
  54. # undef __undef__LINUX_COMPILER_H
  55. #endif
  56. __BEGIN_DECLS
  57. /* Read or write system parameters. */
  58. extern int sysctl (int *__name, int __nlen, void *__oldval,
  59. size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;
  60. __END_DECLS
  61. #endif /* _SYS_SYSCTL_H */