summaryrefslogtreecommitdiff
path: root/procps/ps.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* applied post-1.5.0 fixes1_5_1Denis Vlasenko2007-05-201-1/+3
|
* - change option -c to -Z to match newer upstream SElinux conventionsBernhard Reutner-Fischer2007-03-141-2/+2
|
* sort: fix multiple -k (was ignoring all except last)Denis Vlasenko2007-02-171-1/+1
|
* make sure ps/top output what they claim: vsz, not rss ... down the line we ↵Mike Frysinger2007-02-081-8/+8
| | | | should make the output controllable either at runtime or buildtime as both statistics are quite useful
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+2
| | | | no preceding prototype
* fix warning from needlessly-global functionsDenis Vlasenko2007-01-221-7/+7
|
* ps: fix buglet, add microoptimizationDenis Vlasenko2006-12-181-6/+4
|
* ps: add documentation on POSIX psDenis Vlasenko2006-11-051-1/+1
|
* ps: implement POSIX-like options, most notably -oDenis Vlasenko2006-11-051-0/+275
| | | | (activated by CONFIG_DESKTOP)
* replace /proc scanning code by more versatile one.Denis Vlasenko2006-11-051-9/+19
| | | | | | | Use it where appropriate. Stop scanning /etc/passwd *for every process*!!! (uid->username) top: reduce memory usage - we won't save unneeded fields from /proc info anymore. Downside: ~+250 bytes of code
* top: improve CPU% calculationDenis Vlasenko2006-11-051-1/+1
| | | | style fixes
* Unneeded code removed, usused field "unsigned pscpu" removedDenis Vlasenko2006-11-011-2/+2
|
* mostly style fixesDenis Vlasenko2006-11-011-2/+1
|
* PID should be stored in pid_t, not int or long.Denis Vlasenko2006-11-011-4/+4
| | | | | find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
* ps: reduce #ifdef forestDenis Vlasenko2006-11-011-25/+13
|
* get_terminal_width_height: do not pass insanely large valuesDenis Vlasenko2006-10-271-7/+7
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-4/+4
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* top: add support for -b, -n <iterations>Denis Vlasenko2006-09-291-2/+2
|
* process utilities related style cleanupDenis Vlasenko2006-09-271-17/+16
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-14/+1
| | | | Erik or I are primary copyright holders on.
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-1/+1
| | | | and eventual platform specific includes in early.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* removed warning "comparison between signed and unsigned"."Vladimir N. Oleynik"2006-01-301-2/+2
|
* update bb_getopt_ulflags special for 'ps' applet, usaging '-' as first group ↵"Vladimir N. Oleynik"2005-10-051-5/+8
| | | | | | | | char from bb_opt_complementally is new feature: set argv is options; use new bb_getopt_ulflags for ps # define terminal_width 80->79 for unwide use stdout file descriptor for get_terminal_width_height. (its must)
* ps selinux logic correction, but do not tested too"Vladimir N. Oleynik"2005-10-041-4/+3
|
* use updated bb_getopt_ulflags() for ps applet"Vladimir N. Oleynik"2005-10-041-24/+31
|
* - add option 'w' to ps (wide output, optional feature defaults to off).Bernhard Reutner-Fischer2005-10-041-31/+37
| | | | | | | | | | | - move to ENABLE_ and use shorter boilerplate. sizes without selinux-support: text data bss dec hex filename 356 0 0 356 164 procps/ps.o.with-w 300 0 0 300 12c procps/ps.o.no-w 302 0 0 302 12e procps/ps.o.oorig
* A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley2005-05-031-23/+29
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)Eric Andersen2003-09-151-11/+3
| | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+1
|
* Patch from Russell Coker:Eric Andersen2003-07-031-0/+33
| | | | | I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox.
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notEric Andersen2002-12-051-104/+0
| | | | | maintaining it anymore, and it is now terribly out of date. -Erik
* Patch last_pach62 from vodz. This patch moves all the /proc parsingEric Andersen2002-10-221-106/+22
| | | | code into libbb so it can be shared by ps, top, etc, saving over 1.5k.
* Vodz' last_patch57:Eric Andersen2002-09-301-4/+0
| | | | | | | | | | | | | | | Hi, Erik. my_getpw(uid/gid) and applets used it have problem: if username for uid not found, applets can`t detect it (but code pessent). Also "%8ld " format is bad: spaces not required (applets have self format or spec format (tar applet) and overflow for "id" applet...) This problem also pressent in stable version. Patch for unstable in attach. --w vodz
* Patch from Cliff L. Biffle <cbiffle@safety.net> to display memory0_60_3Eric Andersen2002-04-271-14/+27
| | | | usage in the ps listing
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-17/+15
| | | | -Erik
* Some patches to make dietlibc work...Eric Andersen2001-07-221-0/+1
|
* Minor formatting changeEric Andersen2001-06-261-4/+4
|
* Fix ps so it doesn't waste space showing group, as it is pretty muchEric Andersen2001-06-261-18/+5
| | | | | meaningless anyways. -Erik
* Patch from larry to fix some grammar errors.Eric Andersen2001-05-231-1/+1
|
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-3/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen2001-02-011-4/+0
| | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-4/+4
|
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-2/+2
| | | | | a release. Update the website with release details. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-1/+1
|