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.
This commit is contained in:
Florian Weimer 2020-04-27 12:04:23 +02:00
parent 6771af1123
commit 9cc93ba097

View File

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