]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
misc: Turn sstk into a compat symbol
authorFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2020 10:04:23 +0000 (12:04 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2020 10:07:30 +0000 (12:07 +0200)
It is not implemented anywhere.  There is an osf_sstk system call on
alpha, but it is not used to implement sstk, and the system call
is not implemented on Linux, either.

misc/sstk.c

index ad2010b5dd15ee1a33c983101b7b46f9a1744786..0a2a967917a2852fb50bc30185f266da400731d7 100644 (file)
    <https://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <shlib-compat.h>
 
-/* Increase the size of the stack by INCREMENT,
-   and return the address of the bottom of the stack.  */
-
-void *sstk (int increment) __THROW;
-
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_32)
 void *
 sstk (int increment)
 {
   __set_errno (ENOSYS);
   return (void *) -1;
 }
-
-stub_warning (sstk)
+compat_symbol (libc, sstk, sstk, GLIBC_2_0);
+#endif