public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Florian Weimer <fw@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] misc: Turn sstk into a compat symbol Date: Mon, 27 Apr 2020 10:44:48 +0000 (GMT) [thread overview] Message-ID: <20200427104448.7C11B3870886@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9cc93ba0973ad04ee26c515a1552afb85e73c6ba commit 9cc93ba0973ad04ee26c515a1552afb85e73c6ba Author: Florian Weimer <fweimer@redhat.com> Date: Mon Apr 27 12:04:23 2020 +0200 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. Diff: --- misc/sstk.c | 11 ++++------- 1 file 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
reply other threads:[~2020-04-27 10:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200427104448.7C11B3870886@sourceware.org \ --to=fw@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).