aboutsummaryrefslogtreecommitdiff
path: root/bin/ps
Commit message (Collapse)AuthorAgeFilesLines
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2210-10/+10
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1410-10/+10
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-146-15/+15
| | | | Notes: svn path=/head/; revision=20420
* Remove unneeded #include <sys/proc.h>.Jeffrey Hsu1996-11-101-2/+1
| | | | Notes: svn path=/head/; revision=19596
* Implement a -c option to ps to display the short command name instead ofPeter Wemm1996-10-214-11/+24
| | | | | | | | | | | | the full argument vector. I've bumped into a few things that expected this switch to be present, the most recent was the snmp package in ports. I'm not 100% sure of the origins of this, but Linux has it, so does the "BSD-compatable" version of ps on our SVR4 systems (so I assume SunOS has it too). Notes: svn path=/head/; revision=19068
* Updated to match kernel changes for timer/run queue.David Greenman1996-07-311-2/+2
| | | | Notes: svn path=/head/; revision=17367
* The default swap device is /dev/drum, not /dev/swapMike Pritchard1996-07-031-2/+2
| | | | | | | | | as ps.1 states. Submitted by: Zahemszhky Gabor <zgabor@code.hu> Notes: svn path=/head/; revision=16949
* Make %CPU add up closer to 100%.. At least, it now agrees with top.. :-)Peter Wemm1996-06-291-3/+4
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=16835
* Fix (I think) the %MEM count in 'ps -u'. It was bogusly taking thePeter Wemm1996-06-291-2/+2
| | | | | | | | vm_rssize (in pages, not bytes), then dividing (bogusly) by the page size, then using that as a fraction of the total pages. Notes: svn path=/head/; revision=16833
* CLSIZE -> getpagesize()Poul-Henning Kamp1996-05-021-2/+2
| | | | Notes: svn path=/head/; revision=15541
* Replace NBPG with getpagesize()Poul-Henning Kamp1996-05-021-3/+3
| | | | Notes: svn path=/head/; revision=15527
* Fix up the badly out of date struct proc's p_flags.Sujal Patel1996-04-191-39/+22
| | | | | | | Flags aren't printed in hexadecimal, as documented. Notes: svn path=/head/; revision=15319
* Correct some cross references and some path names.Mike Pritchard1996-04-061-2/+2
| | | | Notes: svn path=/head/; revision=15073
* Fix some incorrect locations in the FILES sections of some man pages.Mike Pritchard1996-02-021-3/+3
| | | | Notes: svn path=/head/; revision=13851
* Use the correct buffer size from limits.h for the error bufferMike Pritchard1996-01-201-2/+3
| | | | | | | | | passed to kvm_open. Closes PR# 476. Submitted by: Jeffrey Hsu <hsu@freebsd.org> Notes: svn path=/head/; revision=13514
* oops. I forgot to add the "[-U username]" option to the usage string.Peter Wemm1996-01-121-2/+2
| | | | Notes: svn path=/head/; revision=13399
* Small man page tweaks:Joerg Wunsch1995-12-301-2/+12
| | | | | | | | | | . mention the need for procfs . make it clear that default sorting is first by ctty, then by PID Submitted by: schweikh@ito.uni-stuttgart.de (Jens Schweikhardt) Notes: svn path=/head/; revision=13117
* Implement a new option to ps.. `-U username'. This allows you toPeter Wemm1995-12-262-4/+19
| | | | | | | | | list the processes belonging to a particular user without having to use `-u' and grepping for the username. Basically you can now get a short `ps -x' like list (with more space for the command) for other users. Notes: svn path=/head/; revision=13020
* I add #include <sys/user.h>Poul-Henning Kamp1995-10-282-2/+4
| | | | Notes: svn path=/head/; revision=11890
* Change local to LC_ALL, there is no bitmaskAndrey A. Chernov1995-10-261-2/+3
| | | | Notes: svn path=/head/; revision=11809
* fix bad dependencies (LIBMATH -> LIBM)Torsten Blum1995-10-251-2/+2
| | | | Notes: svn path=/head/; revision=11779
* Add setlocale LC_CTYPE|LC_TIMEAndrey A. Chernov1995-10-231-1/+3
| | | | Notes: svn path=/head/; revision=11744
* Remove unneded ctype.hAndrey A. Chernov1995-10-231-2/+1
| | | | Notes: svn path=/head/; revision=11743
* Correct the alignment of the tty column, which was affected by my change toPeter Wemm1995-09-262-5/+5
| | | | | | | | | | | allow more than two tty characters. David Greenman pointed out that when a process that had been revoked from it's controlling tty, the "-" sign was detached from any two-character names. Notes: svn path=/head/; revision=11021
* Increase the tty column width from 2 to 3 characters.Peter Wemm1995-09-042-5/+5
| | | | | | | | | | | This gives us more room to breath with tty names, especially with drivers that support large numbers of ports.. eg: specialix and digiboard. This does not actually change the current tty names, it just allows room for reporting more characters if the drivers use them. Notes: svn path=/head/; revision=10553
* Delete bogus referneces to timezone code internal header file `tzfile.h',Garrett Wollman1995-08-071-4/+3
| | | | | | | which is no longer bogusly installed in /usr/include. Notes: svn path=/head/; revision=9987
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-5/+5
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=8855
* Install with default BINOWN (as it once used to be).David Greenman1995-04-151-2/+1
| | | | Notes: svn path=/head/; revision=7837
* Install setgid kmem rather than setuid root. The problem with procfs thatDavid Greenman1995-04-151-2/+3
| | | | | | | was breaking this before has been fixed. Notes: svn path=/head/; revision=7836
* You will find enclosed some changes to make gcc -Wall more happy inJoerg Wunsch1995-03-192-9/+10
| | | | | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier) Notes: svn path=/head/; revision=7165
* Fix previous fix that removes an unnecessary space; the output is nowDavid Greenman1995-03-091-3/+6
| | | | | | | just like it was in 1.1.5. Notes: svn path=/head/; revision=6971
* Re-apply an old patchkit days fix of mine for mempages:David Greenman1994-11-241-1/+2
| | | | | | | | | | | | * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE * -------------------- ----- ---------------------- * CURRENT PATCH LEVEL: 1 00051 * -------------------- ----- ---------------------- * * 14 Aug 92 David Greenman Fixed NEWVM mempages calculation Notes: svn path=/head/; revision=4794
* Fix an error to prevent some core dumps from ps.Andreas Schulz1994-11-101-2/+3
| | | | | | | | | | | You can get ps easily to core dump, if you are running a "make depend" on a kernel in one window and a "ps -auxww" in another. The ww will try to give you the full argument list of the command that can now be 64Kb large, but ps expected only 4Kb large arg arrays and doesn't check for overflows. Notes: svn path=/head/; revision=4347
* Use kvm_uread instead of kvm_read to access the upages.David Greenman1994-10-181-2/+3
| | | | Notes: svn path=/head/; revision=3686
* Skip 'cua' 3 chars like 'tty' 3 charsAndrey A. Chernov1994-10-021-2/+3
| | | | Notes: svn path=/head/; revision=3301
* On second thought...back out previous commit.David Greenman1994-10-024-9/+5
| | | | Notes: svn path=/head/; revision=3296
* Include rtprio.hDavid Greenman1994-10-024-5/+9
| | | | Notes: svn path=/head/; revision=3295
* Added $Id$David Greenman1994-09-2410-0/+16
| | | | Notes: svn path=/head/; revision=3044
* Added rtprio option/field.David Greenman1994-09-012-0/+4
| | | | | | | Submitted by: Henrik Vestergaard Draboel Notes: svn path=/head/; revision=2446
* Got rid of extra space between args and (command).David Greenman1994-08-181-1/+1
| | | | Notes: svn path=/head/; revision=2110
* Make `ps' set-uid root so that it can read the same set of argumentsGarrett Wollman1994-08-111-2/+2
| | | | | | | | | | that old `ps'es did. I'm not too thrilled about this, but I'm not enough of an FS person to hack procfs so that /proc/xxx/mem is readable by members of group `kmem'. If this is done, then `ps' can go back to being set-gid kmem. Notes: svn path=/head/; revision=2032
* Converted 'vmunix' to 'kernel'.David Greenman1994-08-051-4/+4
| | | | Notes: svn path=/head/; revision=1856
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-2610-0/+2616
Notes: svn path=/head/; revision=1556