From: Rich Felker <dalias@libc.org>
To: Daniele GMail <d.dario76@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] pthread_sigqueue implementation
Date: Fri, 2 Aug 2024 10:04:57 -0400 [thread overview]
Message-ID: <20240802140456.GT10433@brightrain.aerifal.cx> (raw)
In-Reply-To: <d3a73c323d882e8458e9a9bdce393506a9a05778.camel@gmail.com>
On Fri, Aug 02, 2024 at 03:54:02PM +0200, Daniele GMail wrote:
> Hi,
> don't know if this is the right place to ask the question, if it's not,
> I'd hope someone points me out to the right list.
>
> I'm working on the porting of a C multithreaded application which, up
> to now, was running on GLibC based Linux distros. Such application is
> using the method pthread_sigqueue in order to deliver signals to
> certain threads and AFAICS, it is not present in 1.2.5 release.
>
> I see a discussion about the implementation dated back to 2020: see
> https://www.openwall.com/lists/musl/2020/02/05/5
>
> Would it be possible to reconsider the decision to drop the method?
> If not, do you have suggestions about what could be used in place of
> it?
I don't think it was really dropped, but things around it were just
never resolved. I re-read the thread and my main concern would be
namespacing, that it's not _np suffixed, while only glibc and recent
Solaris (or whatever it's called now) implement a function by this
name.
I think it would be noncontroversial to add with _np suffix, where
applications could probe for that and use it (or do their own #define
pthread_sigqueue pthread_sigqueue_np or whatever) if they need the
functionality. But I don't want to get locked into a situation where
we've added something POSIX may later define with possibly subtle
differences in signature or semantics.
Alternatively, if anyone wants to go ahead with proposing this as an
addition to POSIX, having it approved for POSIX-future with matching
signature and behavior should make it fine to add under the existing
name.
Rich
next prev parent reply other threads:[~2024-08-02 14:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 13:54 Daniele GMail
2024-08-02 14:04 ` Rich Felker [this message]
2024-08-02 14:13 ` enh
2024-08-02 17:38 ` enh
2024-09-06 13:58 ` Daniele GMail
2024-10-23 0:45 ` Rich Felker
2024-08-02 14:21 ` Daniele GMail
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=20240802140456.GT10433@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=d.dario76@gmail.com \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).