freebsd-dev/bin/ps
Lorenzo Salvadore 50301bb0a1 bin/ps: Make the rtprio option actually show realtime priorities
Fix the rtprio option that for some reason was progessively becoming an
option showing the priority class of threads. In particular:

- use the constants defined in sys/sys/rtprio.h instead of those defined in
  sys/sys/priority.h: this helps making clearer that the code actually is
  about realtime priorities and not standard scheduler priorities;
- remove the PRI_ITHD case that has nothing to do with realtime priorities;
- convert the priority levels to realtime priority levels using the same
  formulas used for pri_to_rtp function in sys/kern/kern_resource.c.
- remove outdated note "101 = not a realtime process" in the man page and
  replace it with a more useful reference to man 1 rtprio.

Approved by:	src (mckusick), manpages (bcr), gerald (mentor)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25266
2020-06-19 09:27:58 +00:00
..
extern.h Add a "jail" keyword to list the name of a jail rather than its ID. 2018-03-13 18:30:26 +00:00
fmt.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
keyword.c ps: use %hs instead of %s format specifiers 2020-06-07 08:21:19 +00:00
Makefile Explicitly add unmarked bin/ binaries to the runtime package. 2016-02-09 16:58:50 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nlist.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
print.c bin/ps: Make the rtprio option actually show realtime priorities 2020-06-19 09:27:58 +00:00
ps.1 bin/ps: Make the rtprio option actually show realtime priorities 2020-06-19 09:27:58 +00:00
ps.c ps: remove xo_no_setlocale() call 2020-06-09 07:07:29 +00:00
ps.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00