summaryrefslogtreecommitdiffstats
path: root/bin/ps
Commit message (Collapse)AuthorAgeFilesLines
* Pick up kernel variables/constants using sysctl rather than through /dev/memphk1998-06-302-80/+17
| | | | | | | | Use /dev/null for opening the kvm library, we don't need access to /dev/mem anymore. ps can now run without the setgid(kmem) bit. If it does it will not be able to show argv/envp for another uid's processes unless you are root.
* Fixed printf format errors (second round with non-i386 typedefs).bde1998-06-281-2/+3
|
* Oops, the previous log message should have read "Fixed type mismatches -bde1998-06-281-1/+1
| | | | don't assume that time_t is long".
* Fixed printf format errors.bde1998-06-281-4/+7
|
* Remove compile time dependency on ARG_MAX.jkoshy1998-06-171-2/+11
| | | | | PR: 1791 (partial) Reviewed by: Bruce Evans <bde@freebsd.org>, Tor Egge <tegge@freebsd.org>
* Fix errors that crept into the previous commit.jkoshy1998-06-041-3/+3
|
* 1. `ps' output now shows 3 characters in the `TT' field, not 2, afterjkoshy1998-06-041-3/+4
| | | | | | | | rev 1.6 of "ps.c". 2. Reword description of `-f' option. PR: 5340 Submitted by: Jorge Goncalves <j@bug.fe.up.pt>
* Fixed imperfections in previous commit (a poor variable name,bde1998-05-311-14/+14
| | | | excessive 64-bit arithmetic, and excessive changes).
* Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.phk1998-05-281-14/+14
| | | | | | | | | | | | | | | | | | | | Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
* If no value is present for the login name set it to '-'.steve1998-05-253-5/+39
| | | | | | | Also pretty-up the display of 'ps -Ortprio'. PR: 4947 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
* Correct use of .Nm. Add rcsid.charnier1998-05-155-23/+31
|
* Add 'f' flag to the optstring.dima1998-02-181-2/+2
|
* cosmetic change for optstringdima1998-02-181-2/+2
|
* Display VSZ much more accurately now.dyson1998-02-021-3/+2
|
* Document the new -f flag.dyson1997-12-051-1/+3
| | | | | PR: 5196 Submitted by: Matt Dillon <dillon@best.net>
* Add an option to building PS, so that the upages are explicitly paged in onlydyson1997-12-052-13/+44
| | | | | | | | | | | | | for users who are root, or in group wheel. This is useful on large timesharing systems where a PS command can cause the system to grind to a halt. The ability to get the information isn't diminished for those who really need the additional detail (administrators.) Normal users won't see any difference unless the processes are swapped out. The "really get it mode" is invoked by the use of an additional flag in the command string "-f". New/old behavior is selectable with a compile option. PR: 5196 Submitted by: Matt Dillon <dillon@best.net>
* Document correct option in manual page.jlemon1997-08-191-2/+2
| | | | | PR: 3769 Submitted by: johnp@lodgenet.com
* Use -I${.CURDIR}/../../sys so that the path is relativesteve1997-08-131-2/+2
| | | | | | to the source code directory. Submitted by: bde
* Oops, add #include's (forgotten in last commit) to make thissteve1997-08-111-1/+4
| | | | compile again.
* Use -I../../sys instead of -I/sys.steve1997-08-111-2/+2
|
* Remove #ifdef NEWVM code and remove extra "key.name = p" line.steve1997-08-111-125/+6
|
* Fix seg fault when invalid keywords are used.steve1997-08-111-3/+2
| | | | | PR: bin/4253 Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
* Fix "lstart". (Displays "19" rather than time)peter1997-08-031-2/+2
| | | | | PR: 4206 Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
* Kill #ifndef NEWVM etc. It affected a lot of other things besidespeter1997-08-034-130/+7
| | | | | | | VM structure (eg: credentials etc) and it's highly unlikely we'll ever get to see the "tainted" BSD<=4.3 VM code in public use. Although it indicated the way some things used to be done, it obfuscates things too much.
* devname.c moved to libc before Lite1 and isn't in ps in Lite2.bde1997-07-131-82/+0
|
* Cosmetic change in usage string.charnier1997-06-061-6/+5
|
* Dynamically adjust size of displayed username to the longest username whichjkh1997-04-295-145/+254
| | | | | | | appears, not the longest _maximum_ username (this should probably also go into 2.2, for the day when we bump up the username length there too). Submitted-By: Terry Lambert <terry@lambert.org>
* When "-c" is specified, don't pad the command with spaces if it isjdp1997-04-161-2/+5
| | | | | the last field on the line. "ps -axlc" was needlessly wrapping around on 80-character windows.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Fix buffer overflow (probably unexploitable).guido1997-03-101-2/+2
|
* Big usernames fixesache1997-03-041-4/+5
|
* Use MAXLOGNAME-1 for width because MAXLOGNAME includes NULache1997-03-031-3/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-2210-10/+10
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* -Wall cleaning.steve1996-12-146-15/+15
|
* Remove unneeded #include <sys/proc.h>.hsu1996-11-101-2/+1
|
* Implement a -c option to ps to display the short command name instead ofpeter1996-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).
* Updated to match kernel changes for timer/run queue.dg1996-07-311-2/+2
|
* The default swap device is /dev/drum, not /dev/swapmpp1996-07-031-2/+2
| | | | | | as ps.1 states. Submitted by: Zahemszhky Gabor <zgabor@code.hu>
* Make %CPU add up closer to 100%.. At least, it now agrees with top.. :-)peter1996-06-291-3/+4
| | | | Pointed out by: bde
* Fix (I think) the %MEM count in 'ps -u'. It was bogusly taking thepeter1996-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.
* CLSIZE -> getpagesize()phk1996-05-021-2/+2
|
* Replace NBPG with getpagesize()phk1996-05-021-3/+3
|
* Fix up the badly out of date struct proc's p_flags.smpatel1996-04-191-39/+22
| | | | Flags aren't printed in hexadecimal, as documented.
* Correct some cross references and some path names.mpp1996-04-061-2/+2
|
* Fix some incorrect locations in the FILES sections of some man pages.mpp1996-02-021-3/+3
|
* Use the correct buffer size from limits.h for the error buffermpp1996-01-201-2/+3
| | | | | | passed to kvm_open. Closes PR# 476. Submitted by: Jeffrey Hsu <hsu@freebsd.org>
* oops. I forgot to add the "[-U username]" option to the usage string.peter1996-01-121-2/+2
|
* Small man page tweaks:joerg1995-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)
* Implement a new option to ps.. `-U username'. This allows you topeter1995-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.
OpenPOWER on IntegriCloud