summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/write.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-02-14 04:40:39 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-02-14 04:40:39 +0000
commit67256bd81271093c911a516aa00a5b33a63d6cbd (patch)
tree66977d3a91596e402c00b3e475b43470064e90cf /libc/sysdeps/linux/common/write.c
parent8b7d5c86ca6e6679ae8ad7bc16e97b3b204f217d (diff)
Fix some issues with nice(). SUSv3 specifies that it return the new
priority if successful, while the linux syscall returns 0. Also, in the non-syscall version, we must be sure to set errno to EPERM on failure since setpriority() can set errno to several possible values. Note: The version of glibc on my debian system is broken wrt EPERM too.
Diffstat (limited to 'libc/sysdeps/linux/common/write.c')
0 files changed, 0 insertions, 0 deletions