summaryrefslogtreecommitdiffstats
path: root/bin/ps/keyword.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the MAC interface to list process MAC labels rather than usingrwatson2002-10-241-1/+2
| | | | | | | | | | the LOMAC-specific interface (which is being deprecated). The revised LOMAC using the MAC framework will export levels listable using this mechanism. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Catch up to SMTX -> SLOCK changes.jhb2002-10-021-1/+1
|
* List valid keywords, ala kill(1), rather than the csh builtin kill, whichjmallett2002-09-271-2/+5
| | | | | | | tells people to type kill -l, when no valid ones are specified. Sponsored by: Bright Path Solutions MFC after: 4 days
* Ala kill(1), tell people to type 'ps -L' for a list of format keywords.jmallett2002-09-271-1/+1
| | | | | Sponsored by: Rachel Hestilow <rachel@jerkcity.com> MFC after: 2 weeks
* Rename new PLONG type to PGTOK as the conversion is more important than thejmallett2002-09-171-2/+2
| | | | | | 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-2/+2
| | | | | of a better name, except PINT, but I decided to go with assuming LONG to be safe, rather than assuming INT.
* Perform keyword.c:1.27 properly, implement -orss in the New World Order ofjmallett2002-09-161-2/+1
| | | | | | | | ps(1) formatting, using pgtok() to get the value in K, rather than printing it in pages. This is consistent with behaviour before keyword.c:1.26 (et al) which exists in STABLE today, and which uses the same metric as VSZ. Submitted by: bde
* Remove some NOTINUSE stuff. Good housekeeping.jmallett2002-09-161-9/+0
|
* - Use (MAXLOGNAME - 1) where UT_NAMESIZE was used to be able torobert2002-07-081-2/+1
| | | | (-)remove the inclusions of <utmp.h>.
* Consistently use FBSDIDobrien2002-06-301-4/+2
|
* Allow whitespace to act as a delimiter in the keywords list given to the -o,jmallett2002-06-081-3/+12
| | | | | | | | again, but also allow it in the user-specified header, too. This is far more backwards compatible and SUSv3-happy than allowing only comma to seperate the keywords list. Submitted by: tjr
* Implement a SUSv3-ignorant but "time"-similar format for "etime", elapsedjmallett2002-06-061-0/+1
| | | | | run time (NOT cpu time). cputime() and elapsed() both need to honour SUSv3 now.
* Support the SUSv3 `rgroup' format.jmallett2002-06-061-0/+2
| | | | Clean up some local style bogons.
* SUSv3 conform on the "comm" and "args" formats, and make correct the "command"jmallett2002-06-061-3/+5
| | | | format, since it's BSDlike, and "comm" is actually different.
* As per behaviour on SVR4 systems, to allow any desirable type of header in thejmallett2002-06-061-2/+4
| | | | | | | | | | | | | | | | override, seperate by comma (',') only, rather than any type of whitespace (the literal space character (' ') had already been removed from this list). This allows things like: miamivice# ps -opid='Process > Identifier' Process Identifier 1350 1445 1450 To work.
* Widen the scope of fmt.c::1.19 and consistently use errx(3) if malloc(3) [orjmallett2002-06-051-2/+2
| | | | | | | | | | realloc(3)] happens to fail, everywhere in ps(1). Discussed with: bde, charnier (a while ago) fmt_argv() can no longer return NULL, so don't bother checking. Submitted by: bde
* Support the 'comm' keyword, which is equivalent to our 'command', butjmallett2002-06-051-0/+2
| | | | specified by SUSv3.
* A space cannot be a header string seperator it appears given the SUSv3jmallett2002-06-051-1/+1
| | | | | description of ps(1), which uses them. I question whether newline and tab can be either, but I'm not touching them. Yet.
* To comply with SUSv3, duplicate the variable contents for each given format,jmallett2002-06-051-1/+4
| | | | | | | | | | | | so that multiple -ovar=header lines do not overwrite eachother. This means that ps -ouser=USERNAME -ouser=WHO would now possibly print: USERNAME WHO juli juli Whereas before it would be: WHO WHO juli juli
* Duplicate the pointer to the string containing the header so it does not getjmallett2002-06-051-1/+1
| | | | frobbed when/if the pointer it is actually a part of gets freed.
* Revert wchan functionality. Add 'mwchan' to supply new duel mutex/msleepdillon2002-02-211-0/+1
| | | | | | functionality and make it the default. With additional improvements by: Mark Peek <mp@FreeBSD.org>
* WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extramarkm2002-02-031-116/+134
| | | | cleanup courtesy of automatic checking (lint).
* o __P has been reovedimp2002-02-021-9/+6
| | | | | | | | | 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.
* Put the "mtxname" keyword in alphabetical order (t comes after s) sopeter2002-01-051-1/+1
| | | | that the keyword is recognized.
* Add LOMAC options (the "Z" flag in both cases) to display extra informationgreen2001-11-261-0/+1
| | | | | | in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs
* On today's kernels masking with ~KERNBASE is turning out to be lesspeter2001-08-241-2/+2
| | | | | | than useful. It still hits at least 8 digits. Adjust for reality. This is still not satisfactory for the alpha if you add "-O paddr".
* Depollute headers now that the VM headers DTRT.markm2001-05-031-1/+0
|
* Compensate for header dethreading.markm2001-05-011-0/+1
|
* Introduce -osid and -otsidbrian2001-04-111-0/+4
| | | | Submitted by: dd
* Do not coredump if no options are supplied. (ps -o,)jlemon2001-02-141-1/+1
| | | | | Submitted by: rgrimes Obtained from: NetBSD
* Catch up to new priority interface.jake2001-02-121-2/+3
|
* Restore the rss (-u) keyword that got deleted in my somewhat over-zealousmckusick2000-12-161-0/+1
| | | | | | cleanup effort. Submitted by: Mark Peek <mark@whistle.com>
* Change the proc information returned from the kernel so that itmckusick2000-12-121-38/+27
| | | | | | | | | | | | 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.
* Introduce a 'mtxname' keyword that displays the current mutex that ajhb2000-11-291-0/+1
| | | | process is blocked on or '-'.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Enable Linux threads support by default.julian1999-01-261-8/+1
| | | | | | | | | This takes the conditionals out of the code that has been tested by various people for a while. ps and friends (libkvm) will need a recompile as some proc structure changes are made. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Re-enable the options in ps(1) that were disabled with the Linuxjulian1999-01-131-1/+6
| | | | | | threads support. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Reviewed by: Luoqi Chen, Jordan Hubbardjulian1998-12-191-1/+3
| | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours.
* Portability fixes when sizeof(int) != sizeof(long).dfr1998-09-141-36/+36
|
* If no value is present for the login name set it to '-'.steve1998-05-251-2/+2
| | | | | | | Also pretty-up the display of 'ps -Ortprio'. PR: 4947 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
* Oops, add #include's (forgotten in last commit) to make thissteve1997-08-111-1/+4
| | | | compile again.
* 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>
* Dynamically adjust size of displayed username to the longest username whichjkh1997-04-291-137/+177
| | | | | | | 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>
* 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-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.
* -Wall cleaning.steve1996-12-141-2/+2
|
* Updated to match kernel changes for timer/run queue.dg1996-07-311-2/+2
|
OpenPOWER on IntegriCloud