From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by sourceware.org (Postfix) with ESMTPS id 21442385481F for ; Thu, 20 May 2021 12:50:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 21442385481F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=whitebox@nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Fm8jV6qV5z1s7mc; Thu, 20 May 2021 14:50:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Fm8jV6Bvcz1qsZF; Thu, 20 May 2021 14:50:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id BwmmKv_Lyret; Thu, 20 May 2021 14:50:37 +0200 (CEST) X-Auth-Info: e2sP0dm0ZicecyCt1r2OWuWoz6vIyqK0mDxIsoZNpGrAKHLbeYaON1lyxixMYGvW Received: from igel.home (ppp-46-244-177-18.dynamic.mnet-online.de [46.244.177.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 20 May 2021 14:50:37 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 155B02C36A3; Thu, 20 May 2021 14:50:37 +0200 (CEST) From: Andreas Schwab To: Florian Weimer via Libc-alpha Cc: Florian Weimer Subject: Re: [PATCH 3/3] Misc: Add and the cstack_* family of functions References: X-Yow: Ask me the DIFFERENCE between PHIL SILVERS and ALEXANDER HAIG!! Date: Thu, 20 May 2021 14:50:37 +0200 In-Reply-To: (Florian Weimer via Libc-alpha's message of "Thu, 20 May 2021 14:13:24 +0200") Message-ID: <87mtspy3fm.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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: , X-List-Received-Date: Thu, 20 May 2021 12:50:43 -0000 On Mai 20 2021, Florian Weimer via Libc-alpha wrote: > diff --git a/misc/cstack_allocate.c b/misc/cstack_allocate.c > new file mode 100644 > index 0000000000..cbd9e6313c > --- /dev/null > +++ b/misc/cstack_allocate.c > @@ -0,0 +1,125 @@ > +/* Allocating a call stack. > + Copyright (C) 2021 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library; if not, see > + . */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#if __has_include () > +# include > +#else > +static long int > +sysconf_sigstksz (void) > +{ > + return SIGSTKSZ; > +} > +#endif How about putting that in sysdeps/generic/sysconf-sigstksz.h? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."