This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3048] New: sysctl syscall has been removed from 2.6.18+ kernels


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]