summaryrefslogtreecommitdiff
path: root/src/unistd/nice.c
AgeCommit message (Collapse)AuthorFilesLines
2022-03-08nice: return EPERM instead of EACCESAlexey Kodanev1-1/+8
To comply with POSIX, change errno from EACCES to EPERM when the caller did not have the required privilege.
2018-04-17fix return value of nice functionRich Felker1-5/+9
the Linux SYS_nice syscall is unusable because it does not return the newly set priority. always use SYS_setpriority. also avoid overflows in addition of inc by handling large inc values directly without examining the old nice value.
2011-04-06consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefixRich Felker1-1/+1
2011-03-20global cleanup to use the new syscall interfaceRich Felker1-1/+1
2011-02-13cleaning up syscalls in preparation for x86_64 portRich Felker1-0/+5
- hide all the legacy xxxxxx32 name cruft in syscall.h so the actual source files can be clean and uniform across all archs. - cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems - alternate implementation for nice if the target lacks nice syscall
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+7