musl/include/sys
Rich Felker ea3b40a321 fix integer overflow in WIFSTOPPED macro
the result of the 0xffff mask with the exit status could have bit 15
set, in which case multiplying by 0x10001 overflows 32-bit signed int.
making the multiply unsigned avoids the overflow. it also changes the
sign extension behavior of the subsequent >> operation, but the
affected bits are all unwanted anyway and all discarded by the cast to
short.
2023-02-08 16:42:28 -05:00
..
acct.h remove indirect use of endian.h from public headers 2019-10-17 16:03:42 -04:00
auxv.h add bits/hwcap.h and include it in sys/auxv.h 2016-10-20 01:28:25 -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 sys/epoll.h: add EPOLLNVAL from linux v4.16 2018-06-19 13:25:16 -04: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
fanotify.h sys/fanotify.h: add new FAN_* macros from linux v5.9 2020-11-29 00:54:36 -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 sys/inotify.h: add IN_MASK_CREATE from linux v4.19 2019-03-13 12:29:27 -04:00
io.h fix breakage from introducing bits header for sys/io.h 2012-11-18 19:58:15 -05:00
ioctl.h fix regression with applications that expect struct winsize in ioctl.h 2020-08-30 16:47:40 -04:00
ipc.h move IPC_STAT definition to a new bits/ipcstat.h file 2019-08-02 00:08:23 -04:00
kd.h move inclusion of linux headers for kd.h, soundcard.h, vt.h to bits 2018-07-20 01:06:41 -04:00
klog.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
membarrier.h sys/membarrier.h: add new constants from linux v5.10 2021-02-15 09:16:06 -05:00
mman.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
mount.h sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10 2021-02-15 09:16:06 -05:00
msg.h allow archs to define IPC_STAT, propagate time64 bit to other macros 2019-08-02 00:08:23 -04:00
mtio.h use 0 instead of NULL in headers where NULL is not defined 2013-11-24 00:34:07 +00:00
param.h fix misspelling of a legacy macro name in sys/param.h 2016-10-20 17:01:56 -04:00
personality.h add missing personality values 2020-11-29 00:52:36 -05:00
poll.h add wrapper headers, with warnings, for various incorrect names under sys 2013-07-27 17:11:34 -04:00
prctl.h sys/prctl.h: add PR_PAC_{SET,GET}_ENABLED_KEYS from linux v5.13 2022-03-08 17:21:26 -05:00
procfs.h fix elf_prstatus regression on time64, existing wrong definition on x32 2019-12-22 11:20:44 -05:00
ptrace.h sys/ptrace.h: add PTRACE_GET_RSEQ_CONFIGURATION from linux v5.13 2022-03-08 17:21:26 -05:00
quota.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
random.h sys/random.h: add GRND_INSECURE from linux v5.6 2020-09-09 17:20:27 -04:00
reboot.h add RB_SW_SUSPEND and RB_KEXEC to sys/reboot.h 2013-01-12 19:42:39 +01:00
reg.h fix broken multi-inclusion guard in sys/reg.h 2011-09-19 11:56:09 -04:00
resource.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
select.h add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
sem.h add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
sendfile.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
shm.h allow archs to define IPC_STAT, propagate time64 bit to other macros 2019-08-02 00:08:23 -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 add SIGSYS support to sys/signalfd.h from linux v4.18 2018-12-09 22:25:21 -05:00
socket.h sys/socket.h: add new SO_ socket options from linux v5.11 2022-03-08 17:19:40 -05:00
soundcard.h move inclusion of linux headers for kd.h, soundcard.h, vt.h to bits 2018-07-20 01:06:41 -04:00
stat.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
statfs.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
statvfs.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
stropts.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
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
sysinfo.h fix sysinfo, try 2. it seems to work this time. 2012-06-07 23:06:04 -04:00
syslog.h alternate name for syslog.h 2011-04-05 12:13:54 -04:00
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 add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
timeb.h add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
timerfd.h add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
times.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
timex.h add time64 symbol name redirects to public headers, under arch control 2019-10-28 19:26:52 -04:00
ttydefaults.h fix misleading use of _POSIX_VDISABLE in sys/ttydefaults.h 2020-01-29 10:47:48 -05:00
types.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
ucontext.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
uio.h remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE 2022-10-19 14:01:31 -04:00
un.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
user.h sys/user.h may need stdint.h 2011-09-23 14:24:57 -04:00
utsname.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
vfs.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
vt.h move inclusion of linux headers for kd.h, soundcard.h, vt.h to bits 2018-07-20 01:06:41 -04:00
wait.h fix integer overflow in WIFSTOPPED macro 2023-02-08 16:42:28 -05:00
xattr.h add additional uapi guards for Linux kernel header files 2018-01-09 13:08:25 -05:00