Subject: Changes to p_nice
To: None <current-users@NetBSD.ORG>
From: Wolfgang Solfrank <ws@kurt.tools.de>
List: current-users
Date: 10/02/1996 20:43:05
While this is only relevant to the post-1.2 -current tree, I'm posting this
now for the same reasons as Chris' messages about EXEC_* and COMPAT_* changes.

In order to support machines where characters are unsigned by default, the
type of the p_nice field in the proc structure has changed from char to
u_char.

This shouldn't affect any userlevel code except programs that interpret proc
structures themselves, like our ps (which needed to be fixed) or top (which
only needs a recompile, as it already correctly handles the case where NZERO
is different from 0).

So if you have any programs that print out information about processes
you have to check whether these programs adjust the p_nice field by NZERO
(i.e. print out xxx->p_nice - NZERO instead of just xxx->p_nice).

Programs using getpriority or setpriority directly or indirectly (through
e.g. nice) don't need to change.  Similarly, people setting autoniceval
don't need to change their values.
--
ws@TooLs.DE     (Wolfgang Solfrank, TooLs GmbH) 	+49-228-985800