| Commit message (Expand) | Author | Age | Files | Lines |
| * | fix signal.h breakage from moving stack_t to arch-specific bits•••in the previous changes, I missed the fact that both the prototype of
the sigaltstack function and the definition of ucontext_t depend on
stack_t.
| Rich Felker | 2014-03-18 | 1 | -6/+6 |
| * | fix mips stack_t•••like almost everything on mips, this is gratuitously different.
| Rich Felker | 2014-03-18 | 1 | -1/+1 |
| * | move signal.h definition of stack_t to arch-specific bits•••it's different at least on mips. mips version will be fixed in a
separate commit to show the change.
| Rich Felker | 2014-03-18 | 1 | -0/+6 |
| * | remove useless and incorrect uc_regspace member from mips ucontext_t•••this seems to have been copied erroneously from the arm version of the
file. it's fairly harmless but it's a mistake and better to fix now
than later.
| Rich Felker | 2014-03-18 | 1 | -1/+0 |
| * | fix _NSIG and SIGRTMAX on mips•••a mips signal mask contains 128 bits, enough for signals 1 through
128. however, the exit status obtained from the wait-family functions
only has room for values up to 127. reportedly signal 128 was causing
kernelspace bugs, so it was removed from the kernel recently; even
without that issue, however, it was impossible to support it correctly
in userspace.
at the same time, the bug was masked on musl by SIGRTMAX incorrectly
yielding 64 on mips, rather than the "correct" value of 128. now that
the _NSIG issue is fixed, SIGRTMAX can be fixed at the same time,
exposing the full range of signals for application use.
note that the (nonstandardized) libc _NSIG value is actually one
greater than the max signal number, and also one greater than the
kernel headers' idea of _NSIG. this is the reason for the discrepency
with the recent kernel changes. since reducing _NSIG by one brought it
down from 129 to 128, rather than from 128 to 127, _NSIG/8, used
widely in the musl sources, is unchanged.
| Rich Felker | 2013-08-10 | 1 | -1/+1 |
| * | fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate | Rich Felker | 2012-11-25 | 1 | -1/+19 |
| * | sigcontext/mcontext cleanup for arch-specific bits•••with these changes, the members/types of mcontext_t and related stuff
should closely match the glibc definitions. unlike glibc, however, the
definitions here avoid using typedefs as much as possible and work
directly with the underlying types, to minimize namespace pollution
from signal.h in the default (_BSD_SOURCE) profile.
this is a first step in improving compatibility with applications
which poke at context/register information -- mainly debuggers, trace
utilities, etc. additional definitions in ucontext.h and other headers
may be needed later.
if feature test macros are used to request a conforming namespace,
mcontext_t is replaced with an opaque structure of the equivalent size
and alignment; conforming programs cannot examine its contents anyway.
| Rich Felker | 2012-11-23 | 1 | -11/+11 |
| * | fix up leftover, incorrect NSIG definitions in arch-specific signal.h | Rich Felker | 2012-11-23 | 1 | -1/+0 |
| * | add back NSIG, removed from powerpc in last commit, but for all archs•••unlike the previous definition, NSIG/_NSIG is supposed to be one more
than the highest signal number. adding this will allow simplifying
libc-internal code that makes signal-related syscalls, which can be
done as a later step. some apps might use it too; while this usage is
questionable, it's at least not insane.
| Rich Felker | 2012-11-21 | 1 | -0/+2 |
| * | fix redef of sigprocmask constants on mips•••this fix is easier than trying to reorder the header stuff
| Rich Felker | 2012-07-12 | 1 | -0/+3 |
| * | more mips bits-header fixes•••signal handling was very broken because of this
| Rich Felker | 2012-07-12 | 1 | -2/+6 |
| * | fix mips mcontext_t structure size•••otherwise offs in ucontext_t will be wrong, and break code that
inspects or modifies the signal makes (including cancellation code).
| Rich Felker | 2012-07-12 | 1 | -1/+5 |
| * | initial version of mips (o32) port, based on work by Richard Pennington (rdp)•••basically, this version of the code was obtained by starting with
rdp's work from his ellcc source tree, adapting it to musl's build
system and coding style, auditing the bits headers for discrepencies
with kernel definitions or glibc/LSB ABI or large file issues, fixing
up incompatibility with the old binutils from aboriginal linux, and
adding some new special cases to deal with the oddities of sigaction
and pipe syscall interfaces on mips.
at present, minimal test programs work, but some interfaces are broken
or missing. threaded programs probably will not link.
| Rich Felker | 2012-07-11 | 1 | -0/+73 |