From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 7C11B3870886; Mon, 27 Apr 2020 10:44:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C11B3870886 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] misc: Turn sstk into a compat symbol X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: 6771af1123d55e08450ccf4553dd0d674b7f099b X-Git-Newrev: 9cc93ba0973ad04ee26c515a1552afb85e73c6ba Message-Id: <20200427104448.7C11B3870886@sourceware.org> Date: Mon, 27 Apr 2020 10:44:48 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 10:44:48 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9cc93ba0973ad04ee26c515a1552afb85e73c6ba commit 9cc93ba0973ad04ee26c515a1552afb85e73c6ba Author: Florian Weimer 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 @@ . */ #include +#include -/* 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