musl/include/sys
Rich Felker 41c632824c fix definitions of WIFSTOPPED and WIFSIGNALED to support up to signal 127
mips has signal numbers up to 127 (formerly, up to 128, but the last
one never worked right and caused kernel panic when used), so 127 in
the "signal number" field of the wait status is insufficient for
determining that the process was stopped. in addition, a nonzero value
in the upper bits must be present, indicating the signal number which
caused the process to be stopped.

details on this issue can be seen in the email with message id
CAAG0J9-d4BfEhbQovFqUAJ3QoOuXScrpsY1y95PrEPxA5DWedQ@mail.gmail.com on
the linux-mips mailing list, archived at:
http://www.linux-mips.org/archives/linux-mips/2013-06/msg00552.html
and in the associated thread about fixing the mips kernel bug.

commit 4a96b948687166da26a6c327e6c6733ad2336c5c fixed the
corresponding issue in uClibc, but introduced a multiple-evaluation
issue for the WIFSTOPPED macro.

for the most part, none of these issues affected pure musl systems,
since musl has up until now (incorrectly) defined SIGRTMAX as 64 on
all archs, even mips. however, interpreting status of non-musl
programs on mips may have caused problems. with this change, the full
range of signal numbers can be made available on mips.
2013-08-10 23:33:54 -04:00
..
acct.h add acct, accept4, setns, and dup3 syscalls (linux extensions) 2012-09-08 20:22:08 -04:00
cachectl.h mips cache flush/ctl syscall support and header 2012-11-04 17:06:31 -05:00
dir.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
epoll.h fix epoll structure alignment on non-x86_64 archs 2013-03-06 23:57:39 -05:00
errno.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
eventfd.h fix eventfd and inotify nonblock/cloexec flags to match arch values 2012-11-26 13:00:58 -05:00
fcntl.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
file.h various header cleanups, some related to _BSD_SOURCE addition 2012-05-22 22:04:55 -04:00
fsuid.h header file fixes: multiple include guard consistency and correctness 2012-06-15 21:52:53 -04:00
inotify.h add IN_EXCL_UNLINK to sys/inotify.h 2013-01-12 19:42:39 +01:00
io.h fix breakage from introducing bits header for sys/io.h 2012-11-18 19:58:15 -05:00
ioctl.h
ipc.h fix regressions in app compatibility from previous sys/ipc.h changes 2012-12-10 21:36:12 -05:00
kd.h
klog.h
mman.h add clock_adjtime, remap_file_pages, and syncfs syscall wrappers 2012-09-16 22:26:23 -04:00
mount.h add mount flags to sys/mount.h 2013-01-12 19:42:39 +01:00
msg.h add struct msgbuf to sys/msg.h 2012-12-06 20:27:54 +01:00
mtio.h add cleaned-up sys/mtio.h 2012-11-17 19:51:49 -05:00
param.h fix missing parens in bit op macros (param.h) 2012-05-10 12:10:44 -04:00
personality.h sys/personality.h: add missing C++ compat 2013-08-08 20:57:35 +02:00
poll.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
prctl.h add macros for new(ish) prctl commands 2013-07-30 18:15:50 -04:00
procfs.h make sys/procfs.h mostly work on most archs 2012-11-25 22:28:18 -05:00
ptrace.h add PTRACE_PEEKSIGINFO to ptrace.h 2013-07-24 22:17:24 +00:00
reboot.h add RB_SW_SUSPEND and RB_KEXEC to sys/reboot.h 2013-01-12 19:42:39 +01:00
reg.h
resource.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
select.h add NFDBITS in sys/select.h with appropriate feature tests 2013-07-06 01:12:28 -04:00
sem.h work around wrong kernel type for sem_nsems member of struct semid_ds 2013-06-28 23:57:58 -04:00
sendfile.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
shm.h add missing type shmatt_t in sys/shm.h 2013-06-28 23:39:50 -04:00
signal.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
signalfd.h fix another case of cloexec/nonblock flags not matching arch values 2013-01-10 17:57:30 -05:00
socket.h add protocol families PF_IB and PF_VSOCK to socket.h 2013-07-25 00:22:05 +00:00
soundcard.h
stat.h feature test macros: make _GNU_SOURCE enable everything 2012-12-03 16:57:01 -05:00
statfs.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
statvfs.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
stropts.h
swap.h add SWAP_FLAG_DISCARD to sys/swap.h 2013-01-12 19:42:39 +01:00
syscall.h syscall() declaration belongs in unistd.h, not sys/syscall.h 2012-12-10 16:40:45 -05:00
sysctl.h
sysinfo.h fix sysinfo, try 2. it seems to work this time. 2012-06-07 23:06:04 -04:00
syslog.h
sysmacros.h fix shifts possibly larger than type in major() macro 2013-06-29 13:57:13 -04:00
termios.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
time.h fix the prototype of settimeofday to follow the original BSD declaration 2013-05-26 16:01:38 +00:00
timerfd.h add missing flags in sys/timerfd.h 2012-12-13 14:15:11 -05:00
times.h
timex.h add ADJ_SETOFFSET timex mode bit (new in linux v2.6.39) 2013-04-01 16:24:12 +00:00
ttydefaults.h add legacy sys/ttydefaults.h header 2013-07-03 18:07:51 +02:00
types.h move register_t and u_int64_t (back) to alltypes 2013-07-22 16:40:35 -04:00
ucontext.h
uio.h add UIO_MAXIOV macro in sys/uio.h 2013-07-19 19:57:52 -04:00
un.h
user.h
utsname.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
vfs.h
vt.h
wait.h fix definitions of WIFSTOPPED and WIFSIGNALED to support up to signal 127 2013-08-10 23:33:54 -04:00
xattr.h add missing xattr functions 2012-08-15 08:31:44 -04:00