diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 1cc2a48b9..3b2bf0a0a 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1633,7 +1633,11 @@ void free_procps_scan(procps_status_t* sp) FAST_FUNC; | |||
1633 | procps_status_t* procps_scan(procps_status_t* sp, int flags) FAST_FUNC; | 1633 | procps_status_t* procps_scan(procps_status_t* sp, int flags) FAST_FUNC; |
1634 | /* Format cmdline (up to col chars) into char buf[size] */ | 1634 | /* Format cmdline (up to col chars) into char buf[size] */ |
1635 | /* Puts [comm] if cmdline is empty (-> process is a kernel thread) */ | 1635 | /* Puts [comm] if cmdline is empty (-> process is a kernel thread) */ |
1636 | #if !ENABLE_PLATFORM_MINGW32 | ||
1636 | void read_cmdline(char *buf, int size, unsigned pid, const char *comm) FAST_FUNC; | 1637 | void read_cmdline(char *buf, int size, unsigned pid, const char *comm) FAST_FUNC; |
1638 | #else | ||
1639 | #define read_cmdline(buf, size, pid, comm) snprintf(buf, size, "[%s]", comm) | ||
1640 | #endif | ||
1637 | pid_t *find_pid_by_name(const char* procName) FAST_FUNC; | 1641 | pid_t *find_pid_by_name(const char* procName) FAST_FUNC; |
1638 | pid_t *pidlist_reverse(pid_t *pidList) FAST_FUNC; | 1642 | pid_t *pidlist_reverse(pid_t *pidList) FAST_FUNC; |
1639 | int starts_with_cpu(const char *str) FAST_FUNC; | 1643 | int starts_with_cpu(const char *str) FAST_FUNC; |