From: Florian Weimer <fweimer@redhat.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH 3/3] Misc: Add <sys/cstack.h> and the cstack_* family of functions
Date: Thu, 20 May 2021 15:14:49 +0200 [thread overview]
Message-ID: <87fsyhpmwm.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <87mtspy3fm.fsf@igel.home> (Andreas Schwab's message of "Thu, 20 May 2021 14:50:37 +0200")
* 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
>> + <https://www.gnu.org/licenses/>. */
>> +
>> +#include <assert.h>
>> +#include <errno.h>
>> +#include <ldsodefs.h>
>> +#include <stdlib.h>
>> +#include <sys/cstack.h>
>> +#include <sys/mman.h>
>> +
>> +#if __has_include (<sysconf-sigstksz.h>)
>> +# include <sysconf-sigstksz.h>
>> +#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
next prev parent reply other threads:[~2021-05-20 13:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-20 12:11 [PATCH 0/3] Convenience function for allocating (alternate signal) stacks Florian Weimer
2021-05-20 12:13 ` [PATCH 1/3] elf: Initialize GLRO (dl_minsigstacksize) after static dlopen Florian Weimer
2021-05-20 14:40 ` H.J. Lu
2021-05-20 12:13 ` [PATCH 2/3] Hurd: Define ARCH_MIN_GUARD_SIZE in internal <pthread.h> Florian Weimer
2021-05-20 14:41 ` H.J. Lu
2021-05-20 12:13 ` [PATCH 3/3] Misc: Add <sys/cstack.h> and the cstack_* family of functions Florian Weimer
2021-05-20 12:21 ` Florian Weimer
2021-05-20 12:50 ` Andreas Schwab
2021-05-20 13:14 ` Florian Weimer [this message]
2021-05-24 14:58 Bruno Haible
2021-05-24 15:28 ` Bruno Haible
2021-05-25 7:42 ` Florian Weimer
2021-05-24 19:11 ` Adhemerval Zanella
2021-05-24 23:41 ` Paul Eggert
2021-05-25 7:40 ` Florian Weimer
2021-05-25 12:17 ` Adhemerval Zanella
2021-05-25 12:23 ` Florian Weimer
2021-05-25 12:25 ` Adhemerval Zanella
2021-05-25 12:29 ` Adhemerval Zanella
2021-05-25 8:41 ` Florian Weimer
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=87fsyhpmwm.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=schwab@linux-m68k.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: link
Be 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).