]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r279154,r279397:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2017 21:19:24 +0000 (21:19 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Feb 2017 21:19:24 +0000 (21:19 +0000)
commit7f45ae4a6190cfc2c0ee92e565c45dc4b9f784e1
tree4ddaae7df858c39d4efe649e53a1d9ba02673ff0
parentb2631b637f61c16fdbe768ac6b27dc56dbf4ec64
MFC r279154,r279397:

r279154 (by jilles):

nice(): Correct return value and [EPERM] error.

PR: 189821
Obtained from: NetBSD
Relnotes: yes

r279397 (by jilles):

nice(): Put back old return value, keeping [EPERM] error.

Commit r279154 changed the API and ABI significantly, and {NZERO} is still
wrong.

Also, preserve errno on success instead of setting it to 0.

PR: 189821
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@313479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/lib/libc/gen/t_nice.c
lib/libc/gen/nice.3
lib/libc/gen/nice.c