From patchwork Mon Apr 27 10:21:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1277510 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 499gnd0Mf5z9sSb for ; Mon, 27 Apr 2020 20:22:29 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8BCD3983A4B; Mon, 27 Apr 2020 10:21:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id A70E839724BF for ; Mon, 27 Apr 2020 10:21:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A70E839724BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fw@deneb.enyo.de Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jT0tQ-00072G-H8 for libc-alpha@sourceware.org; Mon, 27 Apr 2020 10:21:40 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jT0tQ-0007Dv-Cz for libc-alpha@sourceware.org; Mon, 27 Apr 2020 12:21:40 +0200 From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] misc: Turn sstk into a compat symbol Date: Mon, 27 Apr 2020 12:21:40 +0200 Message-ID: <87wo61xm8b.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 X-Spam-Status: No, score=-21.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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 | 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