diff options
author | Ron Yorston <rmy@pobox.com> | 2014-01-30 21:03:07 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-01-30 21:03:07 +0000 |
commit | 0a2a7b55a9212d8fc708fd564407e5505b5e8363 (patch) | |
tree | 1db3e0b2a8df9f5e80648519aa9d75531333696c /win32 | |
parent | 91229e15fe0cbc76eeae6f389879a42bff443f70 (diff) | |
download | busybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.tar.gz busybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.tar.bz2 busybox-w32-0a2a7b55a9212d8fc708fd564407e5505b5e8363.zip |
mingw: dummy implementation of times/sysconf
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index eb0f77a28..d5a4d6297 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -583,6 +583,25 @@ struct passwd *getpwuid(int uid UNUSED_PARAM) | |||
583 | return &p; | 583 | return &p; |
584 | } | 584 | } |
585 | 585 | ||
586 | long sysconf(int name) | ||
587 | { | ||
588 | if ( name == _SC_CLK_TCK ) { | ||
589 | return 100; | ||
590 | } | ||
591 | errno = EINVAL; | ||
592 | return -1; | ||
593 | } | ||
594 | |||
595 | clock_t times(struct tms *buf) | ||
596 | { | ||
597 | buf->tms_utime = 0; | ||
598 | buf->tms_stime = 0; | ||
599 | buf->tms_cutime = 0; | ||
600 | buf->tms_cstime = 0; | ||
601 | |||
602 | return 0; | ||
603 | } | ||
604 | |||
586 | static HANDLE timer_event; | 605 | static HANDLE timer_event; |
587 | static HANDLE timer_thread; | 606 | static HANDLE timer_thread; |
588 | static int timer_interval; | 607 | static int timer_interval; |