about summary refs log tree commit diff
path: root/misc/sstk.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-04-27 12:04:23 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-04-27 12:07:30 +0200
commit9cc93ba0973ad04ee26c515a1552afb85e73c6ba (patch)
tree881911aedfdbcebe4d5b2847b16b1d4aae1ba40a /misc/sstk.c
parent6771af1123d55e08450ccf4553dd0d674b7f099b (diff)
downloadglibc-9cc93ba0973ad04ee26c515a1552afb85e73c6ba.tar.gz
glibc-9cc93ba0973ad04ee26c515a1552afb85e73c6ba.tar.xz
glibc-9cc93ba0973ad04ee26c515a1552afb85e73c6ba.zip
misc: Turn sstk into a compat symbol
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.
Diffstat (limited to 'misc/sstk.c')
-rw-r--r--misc/sstk.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/misc/sstk.c b/misc/sstk.c
index ad2010b5dd..0a2a967917 100644
--- a/misc/sstk.c
+++ b/misc/sstk.c
@@ -16,17 +16,14 @@
    <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