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