summaryrefslogtreecommitdiff
path: root/src/unistd/setxid.c
AgeCommit message (Collapse)AuthorLines
2011-07-30fix some bugs in setxid and update setrlimit to use __synccallRich Felker-8/+6
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-07-29add setxid.c for new set*id() framework. missed in last commit.Rich Felker-0/+49