summaryrefslogtreecommitdiff
path: root/src/signal/sigaltstack.c
AgeCommit message (Collapse)AuthorLines
2024-08-31sigaltstack: enforce dynamic MINSIGSTKSZ limitRich Felker-1/+3
commit 996b6154b20184c3b08cce28eb01edb7f47e9413 added support for querying the dynamic limit but did not enforce it in sigaltstack. the kernel also does not seem to reliably enforce it, or at least does not necessarily enforce the same limit exposed to userspace, so it needs to be enforced here.
2019-07-13fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIXJames Y Knight-1/+1
2019-03-05don't reject unknown/future flags in sigaltstack, allow SS_AUTODISARMRich Felker-1/+1
historically, and likely accidentally, sigaltstack was specified to fail with EINVAL if any flag bit other than SS_DISABLE was set. the resolution of Austin Group issue 1187 fixes this so that the requirement is only to fail for SS_ONSTACK (which cannot be set) or "invalid" flags. Linux fails on the kernel side for invalid flags, but historically accepts SS_ONSTACK as a no-op, so it needs to be rejected in userspace still. with this change, the Linux-specific SS_AUTODISARM, provided since commit 9680e1d03a794b0e0d5815c749478228ed40a36d but unusable due to rejection at runtime, is now usable.
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker-1/+1
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2011-03-20global cleanup to use the new syscall interfaceRich Felker-1/+1
2011-03-10make sigaltstack work (missing macros in signal.h, error conditions)Rich Felker-1/+11
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+8
close