<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/ps, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-07-05T20:03:34Z</updated>
<entry>
<title>ps.1: Fix broken comment line</title>
<updated>2026-07-05T20:03:34Z</updated>
<author>
<name>Artem Bunichev</name>
<email>temcbun@gmail.com</email>
</author>
<published>2026-07-05T19:01:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=759ce9a2b38e1de70c14c81dee7e245bf0bc6b94'/>
<id>urn:sha1:759ce9a2b38e1de70c14c81dee7e245bf0bc6b94</id>
<content type='text'>
While here, remove the long-unused dash in the first line.

Reviewed by:    ziaee, olce
Fixes:          ddf144a04b53 ("ps.1: Revamp: Explain general principles, update to match reality")
MFC after:      1 day
Differential Revision:  https://reviews.freebsd.org/D58038
</content>
</entry>
<entry>
<title>ps(1): Fix a few typos in the manual page</title>
<updated>2026-06-27T10:48:11Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2026-06-27T10:48:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dd2127b54f97fd7445bb4f4187a148e979c9c944'/>
<id>urn:sha1:dd2127b54f97fd7445bb4f4187a148e979c9c944</id>
<content type='text'>
- s/occurence/occurrence/
- s/occurences/occurrences/
- s/ouput/output/

MFC after:	3 days
</content>
</entry>
<entry>
<title>/bin/ps: Fix display of negative nice values on ARMv7/aarch64</title>
<updated>2026-03-07T07:51:14Z</updated>
<author>
<name>Jamie Landeg-Jones</name>
<email>jamie@catflap.org</email>
</author>
<published>2026-03-07T01:18:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9006a731bc951c5b62efc4bf75a0c5b42586d279'/>
<id>urn:sha1:9006a731bc951c5b62efc4bf75a0c5b42586d279</id>
<content type='text'>
On Arm-based systems (and maybe others), 'char' defaults to unsigned,
causing negative nice values to be displayed incorrectly (e.g., 246
instead of -10). Explicitly using 'signed char' ensures consistent
behaviour across architectures.

[ tested on RPI2 and generic aarch64 qemu install ]

Before:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23606 22800 2 -32 246 5400 2544 -       R&lt;+   0  0:00.06 ps -l

After:
  # /usr/bin/nice --10 ps -l | awk '(NR == 1 || $(NF-1) == "ps")'
  UID   PID  PPID C PRI  NI  VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
    0 23614 22800 3 -32 -10 5400 2544 -       R&lt;+   0  0:00.05 ps -l

Signed-off-by: Jamie Landeg-Jones &lt;jamie@catflap.org&gt;
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2064
</content>
</entry>
<entry>
<title>ps(1): Sort headers</title>
<updated>2026-01-09T16:34:51Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2026-01-08T15:20:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=730b3e20069b7115d16f02525103c6c05fa04759'/>
<id>urn:sha1:730b3e20069b7115d16f02525103c6c05fa04759</id>
<content type='text'>
Found these changes by chance in an old patch file.  Should have been
committed along with the ps(1) modifications done in March 2025.

No functional change (intended).

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
</content>
</entry>
<entry>
<title>manpages: prefer linking to xo_options.7 over xo_parse_args.3</title>
<updated>2025-07-16T18:02:24Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2025-07-16T17:41:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cc61a0793a0e7db8601e5eba1242befb810a5844'/>
<id>urn:sha1:cc61a0793a0e7db8601e5eba1242befb810a5844</id>
<content type='text'>
Most libxo-enabled utilities link to xo_parse_args.3.  But that man page
doesn't actually describe how to format command-line arguments.  Rather,
xo_options.7 does.  I suspect that these utilities link to the former
because the latter man page did not exist until libxo-0.7.2
(8a6eceff3ce).  And newer utilities have probably been copy/pasting the
same text from older ones.  But the superior man page does exist now,
so we should link to it instead.

MFC after:	2 weeks
Sponsored by:	ConnectWise
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D51354
</content>
</entry>
<entry>
<title>ps(1), top(1): Priority: Let 0 be the first timesharing level</title>
<updated>2025-06-18T02:09:39Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2024-09-09T19:35:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d8f8f3e36fafdb50613d042f5fa75d8cbcf2b8f'/>
<id>urn:sha1:1d8f8f3e36fafdb50613d042f5fa75d8cbcf2b8f</id>
<content type='text'>
Change the origin from PZERO to PUSER.

Doing so allows users to immediately detect if some thread is running
under a high priority (kernel or realtime) or under a low one
(timesharing or idle).

MFC after:      1 month
Event:          Kitchener-Waterloo Hackathon 202506
Sponsored by:   The FreeBSD Foundation
</content>
</entry>
<entry>
<title>ps.1: Remove ambiguity in description of option '-J'</title>
<updated>2025-05-07T09:14:55Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2025-05-06T13:47:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cbda1aea6532697247bcca6e59d45775857c35e2'/>
<id>urn:sha1:cbda1aea6532697247bcca6e59d45775857c35e2</id>
<content type='text'>
As stated in the previous commit, option '-J' was introduced by commit
"Add -J to filter by matching jail IDs and names."
(13767130c7147ae7182a, r265229), which unfortunately talked about '-J'
being a filter while actually implementing it as a regular selection
option which adds to the processes to display.

The manual page's formulation hinted more at '-J' being a filter, which
it is not, or could be just considered ambiguous, because of the
presence of the "only" word.  Consequently, remove it and reformulate.

Reviewed by:    ziaee, dch
MFC after:      1 day
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50194
</content>
</entry>
<entry>
<title>ps.1: Update .Dd</title>
<updated>2025-04-28T15:13:46Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2025-04-28T14:58:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eee8cd8c2d6b3350b1d88e33007f31a1422b8459'/>
<id>urn:sha1:eee8cd8c2d6b3350b1d88e33007f31a1422b8459</id>
<content type='text'>
Noted by:       lwhsu
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
</content>
</entry>
<entry>
<title>ps(1): Add copyright</title>
<updated>2025-04-28T12:55:00Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2025-04-28T12:55:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b222e491178ff46ddec1bded5f3fe597328c85da'/>
<id>urn:sha1:b222e491178ff46ddec1bded5f3fe597328c85da</id>
<content type='text'>
Where appropriate.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
</content>
</entry>
<entry>
<title>ps(1): '-U' to select processes by real user IDs</title>
<updated>2025-04-28T12:18:26Z</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2025-04-01T13:07:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=995b690d1398044dc9d85a6d86ec550cda30b2ac'/>
<id>urn:sha1:995b690d1398044dc9d85a6d86ec550cda30b2ac</id>
<content type='text'>
This is what POSIX mandates for option '-U' and arguably the behavior
that most users actually need in most cases.  Before, '-U' would select
processes by their effective user IDs (which is the behavior mandated by
POSIX for option '-u').

Matching by real user IDs allows to list all processes belonging to the
passed users, including those temporarily having a different effective
user ID, which can happen if launched by a setuid executable or if using
some credentials-changing facility (such as seteuid() for root processes
or mac_do(4)/setcred(2)).  Conversely, processes temporarily assuming
the identity of some of the passed users will not be listed anymore
(they do not "belong" to these users).

This change also makes '-U' consistent with '-G', the latter already
matching on real group IDs.

While here, remove the (non-compiled) code for tentative option '-R' as
its proposed behavior was the one established here for '-U'.  Also, move
the compiled-out old code for '-U' under '-u' for reference, as this is
what the latter should do according to POSIX, even if it seems unlikely
we will want to change the behavior of '-u'.

Reviewed by:    manpages (ziaee)
MFC after:      3 days
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49622 (code)
Differential Revision:  https://reviews.freebsd.org/D49623 (manual page)
</content>
</entry>
</feed>
