summaryrefslogtreecommitdiff
path: root/arch/mips/bits/signal.h
AgeCommit message (Collapse)AuthorLines
2012-11-25fixup mcontext stuff to expost gregset_t/fpregset_t as appropriateRich Felker-1/+19
2012-11-23sigcontext/mcontext cleanup for arch-specific bitsRich Felker-11/+11
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.
2012-11-23fix up leftover, incorrect NSIG definitions in arch-specific signal.hRich Felker-1/+0
2012-11-21add back NSIG, removed from powerpc in last commit, but for all archsRich Felker-0/+2
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.
2012-07-12fix redef of sigprocmask constants on mipsRich Felker-0/+3
this fix is easier than trying to reorder the header stuff
2012-07-12more mips bits-header fixesRich Felker-2/+6
signal handling was very broken because of this
2012-07-12fix mips mcontext_t structure sizeRich Felker-1/+5
otherwise offs in ucontext_t will be wrong, and break code that inspects or modifies the signal makes (including cancellation code).
2012-07-11initial version of mips (o32) port, based on work by Richard Pennington (rdp)Rich Felker-0/+73
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.