aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-09-01 17:50:39 +0100
committerRon Yorston <rmy@pobox.com>2017-09-01 18:00:01 +0100
commitdd9f552bb1fee66f3155bbbb81c677def861ada0 (patch)
tree21c7f1f333a2a58361c813311188b286ea803c9c /include
parentec3ecac715b299766c101be92caf8b7cffb2a8b5 (diff)
downloadbusybox-w32-dd9f552bb1fee66f3155bbbb81c677def861ada0.tar.gz
busybox-w32-dd9f552bb1fee66f3155bbbb81c677def861ada0.tar.bz2
busybox-w32-dd9f552bb1fee66f3155bbbb81c677def861ada0.zip
ps: add support for CPU and elapsed time columns
It may be necessary to run ps as administrator to get information about processes belonging to other users. The code to detect GetTickCount64 at run-time was imported from Git for Windows.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index dd676bf2c..87abd077b 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -374,6 +374,10 @@ clock_t times(struct tms *buf);
374 374
375#define _SC_CLK_TCK 2 375#define _SC_CLK_TCK 2
376 376
377#define TICKS_PER_SECOND 100
378#define MS_PER_TICK 10
379#define HNSEC_PER_TICK 100000
380
377IMPL(alarm,unsigned int,0,unsigned int seconds UNUSED_PARAM); 381IMPL(alarm,unsigned int,0,unsigned int seconds UNUSED_PARAM);
378IMPL(chown,int,0,const char *path UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); 382IMPL(chown,int,0,const char *path UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM);
379NOIMPL(chroot,const char *root UNUSED_PARAM); 383NOIMPL(chroot,const char *root UNUSED_PARAM);
@@ -475,3 +479,6 @@ int has_exe_suffix(const char *p);
475char *file_is_win32_executable(const char *p); 479char *file_is_win32_executable(const char *p);
476 480
477int err_win_to_posix(DWORD winerr); 481int err_win_to_posix(DWORD winerr);
482
483ULONGLONG CompatGetTickCount64(void);
484#define GetTickCount64 CompatGetTickCount64