Pawel Jakub Dawidek
478aa80510
Use humanize_number(3).
...
Reminded by: jhb
2004-05-25 14:53:47 +00:00
Garance A Drosehn
585bf55792
Add pgrep(1) and pkill(1) to the cross-reference section of ps(1).
2004-05-25 14:05:25 +00:00
Pawel Jakub Dawidek
7d3940bb67
Use humanize_number(3) to format sizes into a human readable form.
2004-05-24 22:22:29 +00:00
Stefan Farfeleder
e0cd241f8b
Include <stdio.h> for a sprintf() prototype.
...
Approved by: das (mentor)
2004-05-24 10:11:31 +00:00
Garance A Drosehn
259fcfacc4
Add the 'sid' info to the output of `ps -j', to make up for the 'sess'
...
(session-pointer) info which was dropped from `ps' earlier in 5.x.
PR: bin/59423
Submitted by: Jilles Tjoelker
2004-05-23 21:35:35 +00:00
Garance A Drosehn
2631c7774f
Fix the kludge-old-options processing so `ps tpt' will be treated the
...
same as `ps -tpt', instead of being changed into `ps -tpT'.
PR: bin/52489
Submitted by: Jilles Tjoelker
MFC after: 1 week
2004-05-23 21:21:07 +00:00
Garance A Drosehn
7bd421650b
Change `ps' to use the KERN_PROC_RGID and KERN_PROC_SESSION options
...
(if trying to match only one real-group or one session-id), now that
those options are implemented in src/sys/kern/kern_proc.c (v1.203).
PR: bin/65803 (a very tiny piece of the PR)
Submitted by: Cyrille Lefevre
2004-05-22 23:13:58 +00:00
Ruslan Ermilov
287d1861eb
Assorted markup fixes.
2004-05-16 21:35:05 +00:00
Ruslan Ermilov
2d3640781e
Punctuation.
2004-05-16 21:34:49 +00:00
Ruslan Ermilov
093be00a00
Fixed spelling of the document date.
2004-05-16 21:34:31 +00:00
Ruslan Ermilov
2360f509c5
Bump document date for the latest functional change.
...
Minor markup tweaks.
2004-05-16 21:34:15 +00:00
Ruslan Ermilov
b0cb98e238
DESCRIPTION was not updated for the new SYNOPSIS.
2004-05-16 21:33:48 +00:00
Ruslan Ermilov
6a50100135
Added -v to usage().
2004-05-16 20:41:11 +00:00
Olivier Houchard
c1b2de5af0
Use WARNS?=3 for these in the arm case for now, due to toolchain issues.
2004-05-14 13:31:21 +00:00
Tim J. Robbins
6449b88bf1
Only add the widths together for printable characters in prn_normal();
...
unprintable characters have a "width" of -1.
2004-05-03 11:48:55 +00:00
Tim J. Robbins
107409f46e
Treat filenames as multibyte character strings (according to the current
...
LC_CTYPE setting) when determining which characters are printable.
This is an often-requested feature.
Use wcwidth() to determine the number of column positions a character
takes up, although there are still a few places left where we assume
1 byte = 1 column position, e.g. line-wrapping when handling the -m option.
The error handling here is somewhat more complicated than usual: we do
our best to show what we can of a filename in the presence of conversion
errors, instead of simply aborting.
2004-05-02 11:25:37 +00:00
David Schultz
87a99f5ff2
Various quibbles:
...
- Print a diagnostic if kdumpenv() fails. This can occur due to MAC
restrictions or lack of memory. Catch all kenv(2) failures as well.
- Just of the heck of it, DTRT if the kernel environment size changes
at the wrong time. The old code could fail silently or fail to
null-terminate a buffer if you got exceptionally unlucky.
- Sort and GC the #includes.
2004-04-28 01:27:36 +00:00
David E. O'Brien
c6f13844f6
Fix some style issues in rev 1.58.
...
Use 64-bit integer math vs. mixed FP & integer.
Add -g to the usage().
2004-04-22 17:05:08 +00:00
David E. O'Brien
7fed1986d0
Add 'g' to SYNOPSIS.
2004-04-22 16:33:54 +00:00
David E. O'Brien
cca108e6a2
Fix printing of the "Mounted on" values for 'df -i'.
...
Fix spacing before "Mounted on" column in general.
Submitted by: bde
2004-04-22 16:26:05 +00:00
David E. O'Brien
076419d207
Add -c option simular to du(1).
...
PR: 19635
Submitted by: cyrille.lefevre@laposte.net
2004-04-18 20:56:31 +00:00
Brian Feldman
4ad8968a7f
Document the "return" built-in better: it will exit . (sources) and
...
the top-level shell instance, too.
2004-04-14 15:58:50 +00:00
Nate Lawson
3066c4a4bd
Style fixes and add gen to CLEANFILES.
...
Submitted by: bde
2004-04-09 07:13:27 +00:00
Brian Feldman
640c4d40fb
Give date(1) a much better SYNOPSIS section which is useful as more than
...
decoration. Further improvements are welcome, but at least this
is a separate of the various modes of operation date has, as well as
sectioning off the two deprecated options for settimeofday(tz) that
don't even apply to actual operation of date as such, anyway.
2004-04-06 22:03:38 +00:00
Mark Murray
6195fb4102
Remove clause 3 from the UCB licenses.
...
OK'ed by: imp, core
2004-04-06 20:06:54 +00:00
Garance A Drosehn
b193355dc4
Drop the include of <stdint.h>, since r1.84 removed references of intmax_t.
2004-04-04 17:43:48 +00:00
Garance A Drosehn
9bf69950e1
Add back the `-e' option, which was mistakenly dropped when cleaning
...
up the PS_ARGS string in revision 1.69 (and which was apparently not
missed by anyone...).
2004-04-04 17:15:44 +00:00
Garance A Drosehn
d822163f3b
Give a name of 'l' (list) to the union in struct listinfo. This is
...
because some compilers (such as gcc 2.95.4) do not support having an
unnamed union for a field in a struct.
2004-04-04 04:41:51 +00:00
Bosko Milekic
263377339c
Stop iterating over ACLs if we've already determined we
...
will print them (i.e., number of successful calls to acl_get_entry()
exceeds 3). This makes O(1) what was O(num_TYPE_ACCESS_ACLs).
This is a slightly modified version of submitter's patch.
PR: bin/65042
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
2004-04-03 16:55:56 +00:00
Garance A Drosehn
396e20d19f
Add spaces after flag names on .Fl macros.
...
Noticed by: ru
MFC after: 4 days
2004-04-01 13:28:36 +00:00
Garance A Drosehn
8ed0d42fe4
Describe the sorting options in better and more complete detail.
...
Also improve the description of `-L' a little.
MFC after: 4 days
2004-03-31 23:51:12 +00:00
Garance A Drosehn
0b42be7cb7
Switch to using strtoul() for parsing a potential UID or GID, which gets
...
this to correctly handle UID's and GID's larger than 2147483647.
Noticed by: bde
MFC after: 1 week
2004-03-30 04:20:33 +00:00
Garance A Drosehn
f35e071573
Bruce would really like the prototype for fmt() to be split across lines
...
this way (although I still think it "looks weird"...).
Requested by: bde
MFC after: 1 week
2004-03-30 02:02:40 +00:00
Garance A Drosehn
ba50b0e03a
Minor style fixes, mostly adding indent-protection on some comment-blocks.
...
Noticed by: bde
MFC after: 1 week
2004-03-30 01:59:22 +00:00
Garance A Drosehn
5bd7b1f3c0
Replace pscomp() with a cleaner version, mostly written by bde (*).
...
This corrects a problem of lost-precision for `-r' (sort-by-CPU). Also,
for sort-by-CPU and sort-by-memory, any processes which have the same
value CPU or MEMORY are now sorted by TTY and then (if needed) by pid.
(* - I just added the NODEV checks, after doing some testing of my own)
Submitted by: bde
MFC after: 1 week
2004-03-30 01:45:23 +00:00
Garance A Drosehn
c46bb4b3ff
Oops. Remove some ';'s in #defines added by a previous update.
...
Noticed by: bde
2004-03-29 03:03:28 +00:00
Garance A Drosehn
c7910c3ae3
Have this source explicitly include <sys/proc.h>, since it references
...
values such as P_CONTROLT and PS_INMEM. But this still won't define
PID_MAX for us, since that is hidden inside of '#ifdef _KERNEL'.
Noticed by: bde
2004-03-29 01:27:13 +00:00
Garance A Drosehn
87e47750f2
Since "kp" is a pointer, I should be comparing against NULL not 0.
...
Noticed by: bde
2004-03-29 01:18:13 +00:00
Garance A Drosehn
352b652398
Various style improvements, mostly in comments and indentation.
...
Suggested by: bde (well, for most of them)
2004-03-29 01:15:27 +00:00
Garance A Drosehn
ca62e195dd
In the routines I've been working on, sort the variable declartions
...
so that non-pointers are listed after pointer-type variables.
Noticed by: bde
2004-03-29 00:25:09 +00:00
Garance A Drosehn
1d2324f442
Split two 'fmt' strings so they're easier to read on 80-char windows.
2004-03-29 00:16:19 +00:00
Garance A Drosehn
de800cd4f8
Sort the declarations of global variables.
2004-03-29 00:12:03 +00:00
Garance A Drosehn
4857f240e1
Sort the routine prototypes.
2004-03-28 23:44:29 +00:00
Garance A Drosehn
5dfd7724a3
If <x> is a process id that does not exist, then just print the header
...
(if any) and exit, thus matching the behavior on -stable and other OS's.
My earlier attempt to fix this (v1.65) only seemed to work because of a
lucky random value in nentries (which was not being initialized back
when I tested that earlier patch).
2004-03-28 03:00:56 +00:00
Garance A Drosehn
3998d22271
Fix `-o rtprio' so it prints the correct value.
...
PR: bin/59417
Submitted by: Jan Willem Knopper
This fix by: bde (in the audit-trail of the PR)
2004-03-28 02:13:31 +00:00
Garance A Drosehn
e3c4e1dd77
If a non-existent user is given as part of `-U userlist', treat it as
...
a fatal error instead of a minor warning. It is possible that a few
users are used to the previous behavior, but I'm claiming it was a bug.
2004-03-27 22:14:42 +00:00
Garance A Drosehn
29d58b106b
Explicitly wrap two long-ish linesi of code, to make them easier to read.
2004-03-27 21:59:54 +00:00
Garance A Drosehn
b34f38ae9e
Change the #if-ish logic which is used to add the -f' option when
ps'
...
is compiled with LAZY_PS, so that there is only one PS_ARGS string to
modify when changing the option-list. Also get `-f' to show up in the
usage() statement when compiled with LAZY_PS.
2004-03-27 21:56:49 +00:00
Garance A Drosehn
4a355d176d
Move the 'f' case so it shows up in the right place, alphabetically.
2004-03-27 21:40:04 +00:00
Garance A Drosehn
3dc91da529
Update the date on the man page, since this the previous change added
...
a few new options.
2004-03-27 18:26:40 +00:00