diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-09-29 18:20:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-09-29 18:53:32 -0400 |
commit | ab3eb89a8b83353cdaab12ed017a67a7730f90e9 (patch) | |
tree | b91deb687c7004417207e4b0a6077522211d2a95 /arch/riscv64/bits/user.h | |
parent | 33bc7f05fc856d8819083afe4668907a9d262e4c (diff) | |
download | musl-ab3eb89a8b83353cdaab12ed017a67a7730f90e9.tar.gz musl-ab3eb89a8b83353cdaab12ed017a67a7730f90e9.tar.bz2 musl-ab3eb89a8b83353cdaab12ed017a67a7730f90e9.tar.xz musl-ab3eb89a8b83353cdaab12ed017a67a7730f90e9.zip |
fix riscv64 signal.h namespace violations and ucontext API mismatches
the top-level mcontext_t member names were namespace-violating in
standards profiles before, and nested-level member names (some of them
single-letter) were egregiously bad namespace impositions even in
non-strict profiles. moreover, they mismatched those used in the
public API first defined in glibc, breaking any code making use of
them.
unlike most archs, the public API used in glibc for riscv mcontext_t
members was designed to be namespace-safe, so we can and should expose
the members regardless of feature test macros. only the typedefs for
greg_t, gregset_t, and fpregset_t need to be protected behind FTMs.
the struct tags for mcontext_t and ucontext_t are also changed. for
mcontext_t this is necessary to make the common definition across
profiles namespace-safe. for ucontext_t, it's just a matter of
matching the tag from the glibc-defined API.
these changes are split off and expanded from a patch by Khem Raj.
Diffstat (limited to 'arch/riscv64/bits/user.h')
0 files changed, 0 insertions, 0 deletions