diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-12 00:15:34 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-12 00:15:34 +0200 |
commit | 3a0f6f23286ad4352830613c6a8aea1bd56ca2d2 (patch) | |
tree | 6781fe0614bf8a544550535abca7897468bae970 /include | |
parent | ae357bd7138a179a1433b7d6e1aca48cc6438966 (diff) | |
download | busybox-w32-3a0f6f23286ad4352830613c6a8aea1bd56ca2d2.tar.gz busybox-w32-3a0f6f23286ad4352830613c6a8aea1bd56ca2d2.tar.bz2 busybox-w32-3a0f6f23286ad4352830613c6a8aea1bd56ca2d2.zip |
fix read_cmdline API and a small buglet where "[comm]" may be too narrow
function old new delta
func_args 25 26 +1
read_cmdline 119 114 -5
display_process_list 1462 1447 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-20) Total: -19 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 14a16674c..fd61517c2 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1359,9 +1359,9 @@ enum { | |||
1359 | //procps_status_t* alloc_procps_scan(void) FAST_FUNC; | 1359 | //procps_status_t* alloc_procps_scan(void) FAST_FUNC; |
1360 | void free_procps_scan(procps_status_t* sp) FAST_FUNC; | 1360 | void free_procps_scan(procps_status_t* sp) FAST_FUNC; |
1361 | procps_status_t* procps_scan(procps_status_t* sp, int flags) FAST_FUNC; | 1361 | procps_status_t* procps_scan(procps_status_t* sp, int flags) FAST_FUNC; |
1362 | /* Format cmdline (up to col chars) into char buf[col+1] */ | 1362 | /* Format cmdline (up to col chars) into char buf[size] */ |
1363 | /* Puts [comm] if cmdline is empty (-> process is a kernel thread) */ | 1363 | /* Puts [comm] if cmdline is empty (-> process is a kernel thread) */ |
1364 | void read_cmdline(char *buf, int col, unsigned pid, const char *comm) FAST_FUNC; | 1364 | void read_cmdline(char *buf, int size, unsigned pid, const char *comm) FAST_FUNC; |
1365 | pid_t *find_pid_by_name(const char* procName) FAST_FUNC; | 1365 | pid_t *find_pid_by_name(const char* procName) FAST_FUNC; |
1366 | pid_t *pidlist_reverse(pid_t *pidList) FAST_FUNC; | 1366 | pid_t *pidlist_reverse(pid_t *pidList) FAST_FUNC; |
1367 | 1367 | ||