summaryrefslogtreecommitdiffstats
path: root/bin/ps/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* o) Add a keyword to displaying elapsed time in integer seconds, "etimes".jmallett2010-03-171-0/+1
| | | | | | o) Give slightly better (i.e. any) documentation of the format of "etime". Reviewed by: jilles
* [1] When showing threads, the thread name just appears if the commattilio2009-02-261-0/+1
| | | | | | | | | | | | | | | | | | | label is choosen as last printout (ucomm suffers of this such bug too). That bug is caused by the fact that the fixed size of printout doesn't leave enough space for them to be printed out. Implement ucomm and comm commands with a dynamic size lenght for buffers. [2] On AMD64 architecture pointers don't have enough chars space to be shown (8 chars while they need 16). Fix them by providing a variadic space so that it fits well on both 64 and 32 bits architectures. [3] Check a return value of malloc() that wasn't checked before. PR: bin/128841, bin/128842 Reviewed by: jhb, emaste Sponsored by: Sandvine Incorporated
* Introduce a way to make pure kernal threads.julian2007-10-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | kthread_add() takes the same parameters as the old kthread_create() plus a pointer to a process structure, and adds a kernel thread to that process. kproc_kthread_add() takes the parameters for kthread_add, plus a process name and a pointer to a pointer to a process instead of just a pointer, and if the proc * is NULL, it creates the process to the specifications required, before adding the thread to it. All other old kthread_xxx() calls return, but act on (struct thread *) instead of (struct proc *). One reason to change the name is so that any old kernel modules that are lying around and expect kthread_create() to make a process will not just accidentally link. fix top to show kernel threads by their thread name in -SH mode add a tdnam formatting option to ps to show thread names. make all idle threads actual kthreads and put them into their own idled process. make all interrupt threads kthreads and put them in an interd process (mainly for aesthetic and accounting reasons) rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper' man page fixes to follow.
* Change "struct varent" to use the standard queue(8) macros, instead ofgad2004-06-231-1/+1
| | | | | | using it's own version of the same basic algorithm. Submitted by: part by Cyrille Lefevre, part of it done by me
* Make sure the value of "upr" (scheduling priority on return from system call)gad2004-06-231-0/+1
| | | | | | is scaled in the same way that "pri" (scheduling priority) is scaled. Submitted by: Cyrille Lefevre
* Oops. Undo that last 'const' change. It expects similar changes to somegad2004-06-221-1/+1
| | | | other files that I am not ready to commit yet...
* Add 'const' to a few places.gad2004-06-221-1/+1
| | | | | PR: bin/65803 Submitted by: Cyrille Lefevre
* Add the `-O emul' format option, which prints the name of the system-callgad2004-06-201-0/+1
| | | | | | | | emulation environment the process is in. "emul" as a keyword is picked up from OpenBSD. PR: bin/65803 Submitted by: Cyrille Lefevre
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Implement the nwchan keyword that has been in the man page, but washarti2003-08-131-0/+1
| | | | | not implemented. This is just handy if you want to ddb the address some process is waiting on.
* When inserting a non-user-specified (e.g. not via -o or -O) format, don't dupejmallett2003-01-191-1/+2
| | | | | | | | one that is already there. This is consistent with GNU ps(1)'s BSD mode, and POLA. Reported by: Andy Farkas <andyf@speednet.com.au> Tested by: Andy Farkas <andyf@speednet.com.au>
* The hw.availpages sysctl has an unsigned long value now, fix the retrievaltmm2002-11-011-1/+2
| | | | to match that.
* 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
|
* Conglomerate printing of ps_pgtok'd data into a PLONG type. I couldn't thinkjmallett2002-09-171-2/+0
| | | | | 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-0/+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
* Fixed unsorting.bde2002-06-081-1/+1
|
* Use a global `now' variable for the current time, and initialise it atjmallett2002-06-061-0/+1
| | | | startup, right after calling setlocale(3).
* 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-0/+1
| | | | format, since it's BSDlike, and "comm" is actually different.
* Fixed unsorting.bde2002-02-231-6/+6
|
* 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-8/+3
| | | | cleanup courtesy of automatic checking (lint).
* o __P has been reovedimp2002-02-021-37/+37
| | | | | | | | | 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.
* 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
* Small optimization: set use_ampm only when neededache2001-03-031-1/+1
|
* Use AM/PM time only when available in localeache2001-03-021-1/+1
|
* Catch up to new priority interface.jake2001-02-121-1/+1
|
* Change the proc information returned from the kernel so that itmckusick2000-12-121-3/+1
| | | | | | | | | | | | 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
|
* If no value is present for the login name set it to '-'.steve1998-05-251-1/+2
| | | | | | | Also pretty-up the display of 'ps -Ortprio'. PR: 4947 Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
* Kill #ifndef NEWVM etc. It affected a lot of other things besidespeter1997-08-031-4/+1
| | | | | | | 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.
* Dynamically adjust size of displayed username to the longest username whichjkh1997-04-291-1/+3
| | | | | | | 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.
* Implement a -c option to ps to display the short command name instead ofpeter1996-10-211-2/+2
| | | | | | | | | 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).
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+85
OpenPOWER on IntegriCloud