This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3048] New: sysctl syscall has been removed from 2.6.18+ kernels
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Aug 2006 20:31:34 -0000
- Subject: [Bug libc/3048] New: sysctl syscall has been removed from 2.6.18+ kernels
- Reply-to: sourceware-bugzilla at sourceware dot org
The sysctl syscall has been removed from 2.6.18+ kernels. See
http://lkml.org/lkml/2006/7/15/54 for more information.
I think it would be good to print a warning at link time. The patch below does
that.
diff -Nurd glibc-2.3.6.orig/sysdeps/unix/sysv/linux/sysctl.c
glibc-2.3.6/sysdeps/unix/sysv/linux/sysctl.c
--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/sysctl.c 2005-07-18
05:37:20.000000000 +0200
+++ glibc-2.3.6/sysdeps/unix/sysv/linux/sysctl.c 2006-08-14
22:12:28.454345256 +0200
@@ -47,3 +47,4 @@
}
libc_hidden_def (__sysctl)
weak_alias (__sysctl, sysctl)
+link_warning (__sysctl, "the `sysctl' syscall has been removed from 2.6.18+
kernels, direct access to `/proc/sys' should be used instead.")
--
Summary: sysctl syscall has been removed from 2.6.18+ kernels
Product: glibc
Version: 2.4
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=3048
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.