diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-01-31 18:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-01-31 18:52:35 +0000 |
| commit | 290d553f0c9238490f2e6a3a7af626621b52a769 (patch) | |
| tree | a4129fdcd359dcd7c3bb90ccd1ab327cf11033e5 | |
| parent | 8c260d1f7d357523acf050bc742531813c92c38e (diff) | |
20080131-1859
| -rw-r--r-- | CHANGES | 3 | ||||
| -rwxr-xr-x | Nt/386/include/lib9.h | 1 | ||||
| -rw-r--r-- | emu/Nt/ie-os.c | 19 | ||||
| -rw-r--r-- | emu/Nt/os.c | 13 |
4 files changed, 9 insertions, 27 deletions
@@ -1,3 +1,6 @@ +20080131 + update emu/Nt/^(os.c ie-os.c ie-win.c ie emu), but properly this time [issue 81] + remove _USE_32BIT_TIME_T from Nt/386/include/lib9.h, and time() def'n from emu/Nt/*.c [issue 81] 20080130 failed to return nil from Jvalue.get in appl/lib/json.b if member name didn't match similar problem in appl/lib/ubfa.b diff --git a/Nt/386/include/lib9.h b/Nt/386/include/lib9.h index 4f66302a..4bbb8e5d 100755 --- a/Nt/386/include/lib9.h +++ b/Nt/386/include/lib9.h @@ -1,5 +1,4 @@ #define _POSIX_SOURCE -#define _USE_32BIT_TIME_T #include <stdlib.h> #include <stdarg.h> #include <errno.h> diff --git a/emu/Nt/ie-os.c b/emu/Nt/ie-os.c index 20641a95..39898d0f 100644 --- a/emu/Nt/ie-os.c +++ b/emu/Nt/ie-os.c @@ -696,19 +696,6 @@ tm2sec(SYSTEMTIME *tm) return secs; } -long -time(long *tp) -{ - SYSTEMTIME tm; - long t; - - GetSystemTime(&tm); - t = tm2sec(&tm); - if(tp != nil) - *tp = t; - return t; -} - /* * Return the time since the epoch in microseconds * The epoch is defined at 1 Jan 1970 @@ -724,6 +711,12 @@ osusectime(void) return secs * 1000000 + tm.wMilliseconds * 1000; } +vlong +osnsec(void) +{ + return osusectime()*1000; /* TO DO better */ +} + int osmillisleep(ulong milsec) { diff --git a/emu/Nt/os.c b/emu/Nt/os.c index 3f7156d9..e3d2c663 100644 --- a/emu/Nt/os.c +++ b/emu/Nt/os.c @@ -645,19 +645,6 @@ tm2sec(SYSTEMTIME *tm) return secs; } -long -time(long *tp) -{ - SYSTEMTIME tm; - long t; - - GetSystemTime(&tm); - t = tm2sec(&tm); - if(tp != nil) - *tp = t; - return t; -} - /* * Return the time since the epoch in microseconds * The epoch is defined at 1 Jan 1970 |
