aboutsummaryrefslogtreecommitdiff
path: root/procps/pidof.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pidof: reduce #ifdef forestvda2006-11-011-39/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16486 69ca8d6d-28ef-0310-b511-8ec308f3f277
* PID should be stored in pid_t, not int or long.vda2006-11-011-17/+19
| | | | | | | | 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
* attempt to regularize atoi mess.vda2006-10-081-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-10-031-2/+2
| | | | | | | | | | | 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
* Change license statements (and clean up headers) on some of the files thatlandley2006-09-221-10/+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-2/+1
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-261-6/+1
| | | | | | | head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fiddling with llist to make memory management easier. Specifically, thelandley2006-05-081-2/+2
| | | | | | | | option to delete the contents of the list when we delete the list is a good thing. git-svn-id: svn://busybox.net/trunk/busybox@15037 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
* RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1vodz2005-10-151-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - new bb_opt_complementally syntax, use [-:?] only - 'free' charsvodz2005-10-141-1/+1
| | | | | | | - new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet git-svn-id: svn://busybox.net/trunk/busybox@11859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - size reduction of pidofaldot2005-10-071-42/+30
| | | | | | | - fix typo in reverse_pidlist git-svn-id: svn://busybox.net/trunk/busybox@11799 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - pidof(8): make -s optional and optional -o; closes #168aldot2005-10-061-30/+96
| | | | | | | first cut. git-svn-id: svn://busybox.net/trunk/busybox@11793 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
* 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
* Major coreutils update.mjn32003-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch_67 from Vladimir N. Oleynikbug12002-11-251-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6012 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch last_pach62 from vodz. This patch moves all the /proc parsingandersen2002-10-221-9/+4
| | | | | | | 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
* Made exit code SysV compliant. Also added -s (single pid) flag.sandman2002-05-221-12/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4790 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jim Treadway <jim@stardot-tech.com> to teachandersen2002-04-131-3/+3
| | | | | | | pidof to not add trailing spaces when not needed. git-svn-id: svn://busybox.net/trunk/busybox@4611 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If find_pid_by_name() had an error, it was returning -1, but storingandersen2001-12-061-1/+1
| | | | | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I just wrote up a simple pidof applet, closing bug #1197andersen2001-07-311-0/+79
-Erik git-svn-id: svn://busybox.net/trunk/busybox@3169 69ca8d6d-28ef-0310-b511-8ec308f3f277