summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.h
Commit message (Collapse)AuthorAgeFilesLines
* Display residency and sleep times (re and sl fields) larger than 127 as 127.tjr2003-04-121-0/+1
| | | | | | | This is what the manual page says ps should do, and what OpenBSD and NetBSD do. Based on a patch from Ken Stailey. PR: 27433, 46232
* Per-variable\ entry headers, to allow the 'ps -otime -otime=FOO' or similarjmallett2003-01-191-0/+1
| | | | | case to do the right thing and affect exactly one column. This is consistent with GNU ps(1) in BSD mode, and POLA.
* Oops, the previous version was a last minute test version with off_tbde2002-10-031-1/+1
| | | | | | replaced by int instead of size_t. Spotted by: fanf
* Use a non-bogus type for representing the values of offsets in structs.bde2002-10-031-1/+1
| | | | | | | off_t is for offsets in files, and it is signed so it was no better than the original type of int for avoiding warnings from broken lints, except accidentally on machines like i386's where size_t is smaller than off_t.
* Rename new PLONG type to PGTOK as the conversion is more important than thejmallett2002-09-171-1/+1
| | | | | | size (which is mostly undefined anyway). Submitted by: bde
* Conglomerate printing of ps_pgtok'd data into a PLONG type. I couldn't thinkjmallett2002-09-171-1/+1
| | | | | of a better name, except PINT, but I decided to go with assuming LONG to be safe, rather than assuming INT.
* WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extramarkm2002-02-031-6/+5
| | | | cleanup courtesy of automatic checking (lint).
* o __P has been reovedimp2002-02-021-2/+2
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* Change the proc information returned from the kernel so that itmckusick2000-12-121-15/+4
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Portability fixes when sizeof(int) != sizeof(long).dfr1998-09-141-2/+2
|
* Dynamically adjust size of displayed username to the longest username whichjkh1997-04-291-1/+5
| | | | | | | 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>
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+88
OpenPOWER on IntegriCloud