diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-15 09:44:01 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-15 16:17:16 +1000 |
commit | 903abcceb656701cd57a94404f1e13626618b1c9 (patch) | |
tree | b8b558a65ea2c23b3a983035d07580d84c80e249 /include/libbb.h | |
parent | 42b6a4c89ad8d4f625a3b63b7556929e3a660e90 (diff) | |
download | busybox-w32-903abcceb656701cd57a94404f1e13626618b1c9.tar.gz busybox-w32-903abcceb656701cd57a94404f1e13626618b1c9.tar.bz2 busybox-w32-903abcceb656701cd57a94404f1e13626618b1c9.zip |
win32: reimplement procps_scan()
On Linux, procps_scan() relies on /proc, which is obviously
unavailable on Windows.
This implementation currently supports procps_status_t.{pid,comm} only.
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 31e733d77..e82954fd0 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1466,6 +1466,9 @@ typedef struct procps_status_t { | |||
1466 | #if ENABLE_FEATURE_TOP_SMP_PROCESS | 1466 | #if ENABLE_FEATURE_TOP_SMP_PROCESS |
1467 | int last_seen_on_cpu; | 1467 | int last_seen_on_cpu; |
1468 | #endif | 1468 | #endif |
1469 | #if ENABLE_PLATFORM_MINGW32 | ||
1470 | HANDLE snapshot; | ||
1471 | #endif | ||
1469 | } procps_status_t; | 1472 | } procps_status_t; |
1470 | /* flag bits for procps_scan(xx, flags) calls */ | 1473 | /* flag bits for procps_scan(xx, flags) calls */ |
1471 | enum { | 1474 | enum { |