aboutsummaryrefslogtreecommitdiff
path: root/procps/ps.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+2
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix warning from needlessly-global functionsvda2007-01-221-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17481 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps: fix buglet, add microoptimizationvda2006-12-181-6/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16992 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps: add documentation on POSIX psvda2006-11-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps: implement POSIX-like options, most notably -ovda2006-11-051-0/+275
| | | | | | | (activated by CONFIG_DESKTOP) git-svn-id: svn://busybox.net/trunk/busybox@16511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace /proc scanning code by more versatile one.vda2006-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 git-svn-id: svn://busybox.net/trunk/busybox@16509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* top: improve CPU% calculationvda2006-11-051-1/+1
| | | | | | | style fixes git-svn-id: svn://busybox.net/trunk/busybox@16508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unneeded code removed, usused field "unsigned pscpu" removedvda2006-11-011-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mostly style fixesvda2006-11-011-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* PID should be stored in pid_t, not int or long.vda2006-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. git-svn-id: svn://busybox.net/trunk/busybox@16485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps: reduce #ifdef forestvda2006-11-011-25/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16484 69ca8d6d-28ef-0310-b511-8ec308f3f277
* get_terminal_width_height: do not pass insanely large valuesvda2006-10-271-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16452 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-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. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* top: add support for -b, -n <iterations>vda2006-09-291-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* process utilities related style cleanupvda2006-09-271-17/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16233 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change license statements (and clean up headers) on some of the files thatlandley2006-09-221-14/+1
| | | | | | | Erik or I are primary copyright holders on. git-svn-id: svn://busybox.net/trunk/busybox@16175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix copy'n paste errors that got introduced when switching to the shorter ↵aldot2006-09-131-1/+1
| | | | | | | | | boilerplate. No object code changes. git-svn-id: svn://busybox.net/trunk/busybox@16113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-1/+1
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed warning "comparison between signed and unsigned".vodz2006-01-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13712 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update bb_getopt_ulflags special for 'ps' applet, usaging '-' as first group ↵vodz2005-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) git-svn-id: svn://busybox.net/trunk/busybox@11765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps selinux logic correction, but do not tested toovodz2005-10-041-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11756 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use updated bb_getopt_ulflags() for ps appletvodz2005-10-041-24/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11755 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add option 'w' to ps (wide output, optional feature defaults to off).aldot2005-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 git-svn-id: svn://busybox.net/trunk/busybox@11751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Takeharu KATO to update/fix SE-Linux support.landley2005-05-031-23/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-11/+3
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Russell Coker:andersen2003-07-031-0/+33
| | | | | | | | I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox. git-svn-id: svn://busybox.net/trunk/busybox@7031 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notandersen2002-12-051-104/+0
| | | | | | | | maintaining it anymore, and it is now terribly out of date. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6101 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch last_pach62 from vodz. This patch moves all the /proc parsingandersen2002-10-221-106/+22
| | | | | | | code into libbb so it can be shared by ps, top, etc, saving over 1.5k. git-svn-id: svn://busybox.net/trunk/busybox@5685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz' last_patch57: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 git-svn-id: svn://busybox.net/trunk/busybox@5613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Cliff L. Biffle <cbiffle@safety.net> to display memoryandersen2002-04-271-14/+27
| | | | | | | usage in the ps listing git-svn-id: svn://busybox.net/trunk/busybox@4689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-17/+15
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor formatting changeandersen2001-06-261-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2914 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ps so it doesn't waste space showing group, as it is pretty muchandersen2001-06-261-18/+5
| | | | | | | | meaningless anyways. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2912 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.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 git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-2/+2
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-11/+8
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai -- a better way to NULL terminate strings for theandersen2000-12-131-9/+4
| | | | | | | | my_* passwd and group routines. I should have thought of doing it this way... git-svn-id: svn://busybox.net/trunk/busybox@1443 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-9/+9
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277