From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id D29593851C36 for ; Thu, 20 May 2021 13:14:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D29593851C36 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-512-lVM0cpsMPH6-8Cbd2jqd5A-1; Thu, 20 May 2021 09:14:53 -0400 X-MC-Unique: lVM0cpsMPH6-8Cbd2jqd5A-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 52D02189C448; Thu, 20 May 2021 13:14:52 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-137.ams2.redhat.com [10.36.112.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 478081045E87; Thu, 20 May 2021 13:14:51 +0000 (UTC) From: Florian Weimer To: Andreas Schwab Cc: Florian Weimer via Libc-alpha Subject: Re: [PATCH 3/3] Misc: Add and the cstack_* family of functions References: <87mtspy3fm.fsf@igel.home> Date: Thu, 20 May 2021 15:14:49 +0200 In-Reply-To: <87mtspy3fm.fsf@igel.home> (Andreas Schwab's message of "Thu, 20 May 2021 14:50:37 +0200") Message-ID: <87fsyhpmwm.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, 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 13:15:07 -0000 * Andreas Schwab: > 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? Good idea. I will do that in the next version. Thanks, Florian