]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Obsolete nfsservctl.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 18 May 2018 16:50:44 +0000 (16:50 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 18 May 2018 16:50:44 +0000 (16:50 +0000)
The Linux nfsservctl syscall was removed in Linux 3.1.  Since the
minimum kernel version for use with glibc is 3.2, the glibc wrapper
for this syscall can no longer usefully be called.  This patch makes
it into a compat symbol, not provided at all for static linking or new
ports.  (It was already the case that there was no header declaration
of this function.)

Tested for x86_64.

* sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
compat symbol, disabled for minimum symbol version GLIBC_2.28 and
later.

ChangeLog
NEWS
sysdeps/unix/sysv/linux/syscalls.list

index 4a2d9787c4d0a6ca57511e27a948fd4806088fef..62308b5aeeeac1e2a71eac81ccfb2486c3f678df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
+       compat symbol, disabled for minimum symbol version GLIBC_2.28 and
+       later.
+
        [BZ #22639]
        * time/tzset.c (SECSPERDAY): Cast to time_t.
        * time/tst-y2039.c: New file.
diff --git a/NEWS b/NEWS
index 4899a0acabaf7494f33f4f6008019889ba77b23a..bade9e4765f7af1b41bcac19aa4e477c05111f89 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -69,6 +69,11 @@ Deprecated and removed features, and other changes affecting compatibility:
   binaries; the headers <ustat.h> and <sys/ustat.h> have been removed.  This
   function has been deprecated in favor of fstatfs and statfs.
 
+* The obsolete function nfsservctl is no longer available to newly linked
+  binaries.  This function was specific to systems using the Linux kernel
+  and could not usefully be used with the GNU C Library on systems with
+  version 3.1 or later of the Linux kernel.
+
 Changes to build and runtime requirements:
 
   [Add changes to build and runtime requirements here]
index e3dfd0c8db2b5f9079716e69db8f49ac00a0a58d..e24ea29e352db4ae02e7d001e6e697dc5ab1ed51 100644 (file)
@@ -41,7 +41,7 @@ mount         EXTRA   mount           i:sssip __mount mount
 mremap         EXTRA   mremap          b:ainip __mremap        mremap
 munlock                -       munlock         i:ai    munlock
 munlockall     -       munlockall      i:      munlockall
-nfsservctl     EXTRA   nfsservctl      i:ipp   nfsservctl
+nfsservctl     EXTRA   nfsservctl      i:ipp   __compat_nfsservctl     nfsservctl@GLIBC_2.0:GLIBC_2.28
 pipe           -       pipe            i:f     __pipe          pipe
 pipe2          -       pipe2           i:fi    __pipe2         pipe2
 pivot_root     EXTRA   pivot_root      i:ss    pivot_root