diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-26 06:06:30 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-26 06:06:30 +0000 |
commit | 7200b3e37df79606b5f99c7642ee86cc9a3ee349 (patch) | |
tree | 598f6511a3908b73013d8db4d3311181f2f1011c | |
parent | e86b28dc3db8af4f859522470347c1ec005df0bb (diff) | |
download | coreutils-7200b3e37df79606b5f99c7642ee86cc9a3ee349.tar.xz |
Portability and POSIX fixes for "nice".
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,19 @@ 2004-07-25 Paul Eggert <eggert@cs.ucla.edu> + * src/nice.c (GET_NICE_VALUE): Renamed from GET_PRIORITY. + All uses changed. + (NZERO): New macro, if system doesn't define it already. + (usage): Distinguish priorities from nice values. + Don't assume NZERO is 20. + (main): Use bool instead of int where appropriate. + If user specifies an adjustment out of range, always truncate it + to an inrange value instead of sometimes giving an error message + and sometimes not. + Do not assume that -1 is an error return from "nice" or + "getpriority", as it might be the current nice value minus NZERO. + If nice/setpriority fails with errno == EPERM, go ahead and run + the command anyway; POSIX requires this. + * src/pathchk.c: Include euidaccess.h. (dir_ok): Use euidaccess, not access. * src/test.c (R_OK, W_OK, X_OK, FOK): Remove; system.h defines them. |