From: Ariadne Conill <ariadne@dereferenced.org>
To: Rich Felker <dalias@libc.org>
Cc: Szabolcs Nagy <nsz@port70.net>,
musl@lists.openwall.com, Drew DeVault <sir@cmpwn.com>
Subject: Re: [musl] [PATCH v2] riscv64: correct struct __ucontext name
Date: Sun, 06 Dec 2020 17:10:25 GMT [thread overview]
Message-ID: <2178772.BdMzd0Z1jD@nanabozho> (raw)
In-Reply-To: <20201206170647.GF534@brightrain.aerifal.cx>
On Sunday, December 6, 2020 10:06:49 AM MST Rich Felker wrote:
> On Sun, Dec 06, 2020 at 04:55:39PM +0000, Ariadne Conill wrote:
> > Hello,
> >
> > On Sunday, December 6, 2020 5:49:25 AM MST Drew DeVault wrote:
> > > On Sun Dec 6, 2020 at 3:51 AM EST, Szabolcs Nagy wrote:
> > > > * Drew DeVault <sir@cmpwn.com> [2020-12-05 18:10:06 +0000]:
> > > > > This makes it consistent with other architectures and fixes some
> > > > > issues
> > > > > with downstream software.
> > > >
> > > > which software?
> > > >
> > > > glibc uses struct ucontext_t too and user code should use ucontext_t
> > > > without struct.
> >
> > Some glibc architecture ports use the struct __ucontext and even struct
> > ucontext names, or at least did in the past.
> >
> > > libucontext, which does use ucontext_t.
> > >
> > > In fact, the issue was more related to the type conflict with
> > > ucontext.h, which declared struct __ucontext in the scope of its
> > > function declarations due to the naming mismatch.
> >
> > glibc uses the POSIX 2004 standardized ucontext_t type in its public
> > definitions. I believe musl should do the same.
>
> This produces a compile-time error is ucontext.h is included without
> the right feature test macros, since signal.h will not have defined
> ucontext_t in that case. That's why the public declarations must use
> the struct tag.
Bummer. In that case, I suggest musl use the same struct tag consistently. It
should probably be struct ucontext_t for consistency with glibc.
Ariadne
next prev parent reply other threads:[~2020-12-06 17:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 18:10 Drew DeVault
2020-12-06 8:51 ` Szabolcs Nagy
2020-12-06 12:49 ` Drew DeVault
2020-12-06 16:55 ` Ariadne Conill
2020-12-06 17:06 ` Rich Felker
2020-12-06 17:10 ` Ariadne Conill [this message]
2020-12-06 17:19 ` Rich Felker
2020-12-06 17:32 ` Szabolcs Nagy
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=2178772.BdMzd0Z1jD@nanabozho \
--to=ariadne@dereferenced.org \
--cc=dalias@libc.org \
--cc=musl@lists.openwall.com \
--cc=nsz@port70.net \
--cc=sir@cmpwn.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).