aboutsummaryrefslogtreecommitdiff
path: root/libbb/procps.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* comment all fieldsvapier2006-06-071-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add reference to proc(5)vapier2006-06-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15326 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-191-10/+1
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Portability tweak from Shaun Jackman, don't include asm/page.h directly.landley2006-04-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14941 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add and use bb_opendir(), bb_xopendir().aldot2006-04-121-3/+1
| | | | | | | | | | | text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1 git-svn-id: svn://busybox.net/trunk/busybox@14830 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
* cleanups after changes by Denis Vlasenko. Size optimizationvodz2006-02-141-6/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14010 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanups from Denis Vlasenko.landley2006-02-131-14/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13957 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rename libbb's password helpers as suggested in libbb.haldot2005-09-201-1/+1
| | | | | | | | | | | my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug git-svn-id: svn://busybox.net/trunk/busybox@11515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE->CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGEvodz2005-09-161-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* FEATURE->ENABLE_FEATURE loses one for 'top' appletvodz2005-09-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11462 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Takeharu KATO to update/fix SE-Linux support.landley2005-05-031-13/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2004-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach busybox ps to get the correct uid when displaying stuffandersen2004-01-271-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8355 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Atsushi Nemoto, recent MIPS kernel headersbug12004-01-211-0/+4
| | | | | | | | does not provide PAGE_SHIFT for userland (because now mips-linux kernel supports PAGESIZE other than 4K). git-svn-id: svn://busybox.net/trunk/busybox@8324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bother. It seems I can't read.andersen2003-12-201-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* doh!andersen2003-12-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8149 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Try to accomodate systems that do not define PAGE_SHIFTandersen2003-12-201-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Russell Coker:andersen2003-07-031-1/+13
| | | | | | | | 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
* Skip printing "/proc/%d/cmdline" stuff when it is not relevantandersen2003-05-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6856 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill CONFIG_FEATURE_USE_DEVPS_PATCH and the devps patch. I'm notandersen2002-12-051-3/+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
* last_patch_69, 8 bit clean and other fixes from Vladimir N. Oleynikbug12002-12-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Handle name entries that have a \0 in them, last_patch_65 from Vladimir N. ↵bug12002-11-251-4/+11
| | | | | | Oleynik git-svn-id: svn://busybox.net/trunk/busybox@6013 69ca8d6d-28ef-0310-b511-8ec308f3f277
* include libbb after stdlib.h as it breaks dmallocbug12002-11-241-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch last_pach62 from vodz. This patch moves all the /proc parsingandersen2002-10-221-0/+137
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