Back to index

glibc  2.9
sysctl.h
Go to the documentation of this file.
00001 /* Copyright (C) 1996, 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef       _SYS_SYSCTL_H
00020 #define       _SYS_SYSCTL_H 1
00021 
00022 #include <features.h>
00023 #define __need_size_t
00024 #include <stddef.h>
00025 /* Prevent more kernel headers than necessary to be included.  */
00026 #ifndef _LINUX_KERNEL_H
00027 # define _LINUX_KERNEL_H    1
00028 # define __undef_LINUX_KERNEL_H
00029 #endif
00030 #ifndef _LINUX_TYPES_H
00031 # define _LINUX_TYPES_H            1
00032 # define __undef_LINUX_TYPES_H
00033 #endif
00034 #ifndef _LINUX_LIST_H
00035 # define _LINUX_LIST_H             1
00036 # define __undef_LINUX_LIST_H
00037 #endif
00038 #ifndef __LINUX_COMPILER_H
00039 # define __LINUX_COMPILER_H 1
00040 # define __user
00041 # define __undef__LINUX_COMPILER_H
00042 #endif
00043 
00044 #include <linux/sysctl.h>
00045 
00046 #ifdef __undef_LINUX_KERNEL_H
00047 # undef _LINUX_KERNEL_H
00048 # undef __undef_LINUX_KERNEL_H
00049 #endif
00050 #ifdef __undef_LINUX_TYPES_H
00051 # undef _LINUX_TYPES_H
00052 # undef __undef_LINUX_TYPES_H
00053 #endif
00054 #ifdef __undef_LINUX_LIST_H
00055 # undef _LINUX_LIST_H
00056 # undef __undef_LINUX_LIST_H
00057 #endif
00058 #ifdef __undef__LINUX_COMPILER_H
00059 # undef __LINUX_COMPILER_H
00060 # undef __user
00061 # undef __undef__LINUX_COMPILER_H
00062 #endif
00063 
00064 __BEGIN_DECLS
00065 
00066 /* Read or write system parameters.  */
00067 extern int sysctl (int *__name, int __nlen, void *__oldval,
00068                  size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;
00069 
00070 __END_DECLS
00071 
00072 #endif /* _SYS_SYSCTL_H */