summaryrefslogtreecommitdiff
path: root/src/misc/setrlimit.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-20use prlimit syscall for getrlimit/setrlimitRich Felker1-1/+7
this allows the full range of 64-bit limit arguments even on 32-bit systems. fallback to the old syscalls on old kernels that don't support prlimit.
2011-07-30fix some bugs in setxid and update setrlimit to use __synccallRich Felker1-2/+27
setrlimit is supposed to be per-process, not per-thread, but again linux gets it wrong. work around this in userspace. not only is it needed for correctness; setxid also depends on the resource limits for all threads being the same to avoid situations where temporarily unlimiting the limit succeeds in some threads but fails in others.
2011-03-20global cleanup to use the new syscall interfaceRich Felker1-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+11