Joel Dice
5ade8d1cf6
use GetSystemTimeAsFileTime instead of _ftime on Windows
...
It seems that _ftime has devolved to only giving 1-second resolution
on Windows 7. GetSystemTimeAsFileTime does better, so that's what
we'll use.
2010-10-28 20:30:49 -06:00
Joel Dice
5cbfee467c
fix Runtime.exec on Posix
...
Due to a silly cut-and-paste error, we were incorrectly passing the
stdout and stderr file descriptors back from native code to Java,
which prevented reading the output of the child process.
2010-10-22 14:39:38 -06:00
Joel Dice
30db38ebd6
replace calls to ExceptionOccurred with calls to ExceptionCheck
...
The latter is cheaper (avoids a state transition and possible memory
allocation) when we just want to know if an exception is thrown
without needing a handle to that exception.
2009-12-16 19:25:03 -07:00
Joel Dice
875a1a45a3
pass valid pReturnValue parameter to _wgetenv_s
2009-12-12 17:55:00 -07:00
Joel Dice
6118792ffd
update copyright years
2009-12-02 19:08:29 -07:00
Joel Dice
984f3106fd
fix powerpc build
2009-10-19 10:31:34 -06:00
Joel Dice
7b0378c180
support darwin/x86_64
2009-10-14 10:01:37 -06:00
Joel Dice
1a0eef7e2d
add support for building with MSVC on Windows
2009-08-26 18:26:44 -06:00
Joel Dice
08dd7d0a5a
Merge branch 'gnu'
2009-08-03 09:01:16 -06:00
jent
c2e9b3ed76
Commit to implement property os.arch for use in bug 8574
...
I had thought about using other means, ie using sysctl or utsname for
osx/linux....but this solution is more universal between OS's as well as
provided by the compiler, not via system operations
2009-07-28 10:16:27 -06:00
Joel Dice
27d863790c
Merge branch 'win64' into gnu
...
Conflicts:
makefile
src/compile-x86.S
src/x86.S
src/x86.cpp
2009-07-25 20:48:36 -06:00
jent
8335dc4297
Now using the CoreServices instead of the Carbon framework....this
...
allows for cocoa and future compatability
2009-07-02 03:30:05 -06:00
jent
8c3d65a835
Hopefully including the top carbon header will fix the issues we had
...
when we tried to include just Gestalt.h
2009-07-02 03:13:39 -06:00
jent
2639d94ebc
Commented out changes to avian till I can figure out why I can compile
...
using the deploy script, but no one else can
2009-07-02 02:24:25 -06:00
jent
3367ac88e3
Added in code to support os.version for Windows/Linux/OSX
...
The make file had to be modified to include the carbon framework in OSX
2009-07-01 09:13:01 -06:00
Josh warner
c7e134eb7a
updated machine-word-dependent cast to be agnostic
2009-06-05 14:32:36 -06:00
Joel Dice
a3c8a0460d
silence GCC 4.3.2 warning in Java_java_lang_Runtime_exec
2008-11-24 17:03:00 -07:00
Joel Dice
575df206cd
fix System.currentTimeMillis on Windows
2008-06-17 09:05:57 -06:00
Joel Dice
8e1ec5794f
implement java.util.Random and java.lang.Math.random in Java
2008-03-20 18:39:25 -06:00
Joel Dice
1bca2e9e5d
tweak Math.natRandom for Windows to guarantee we never return anything outside [0,1)
2008-02-29 12:49:00 -07:00
Joel Dice
3c237547ee
fix Math.natRandom for Windows build
2008-02-29 12:39:09 -07:00
Eric Scharff
11d218f956
Slight fix for improved type safety
2008-02-28 10:03:24 -07:00
Eric Scharff
0d5b7bd126
Support for floating point conversions and tests
...
Floats and doubles can now be read from strings, using the C standard library
functions for this purpose (strtof and strtod). The code also relies on
standard library functions to implement isNaN() and isInfinite()
2008-02-28 08:35:16 -07:00
Joel Dice
2edaa82801
prepend copyright notice and license to all source files; add license.txt and readme.txt
2008-02-19 11:06:52 -07:00
Joel Dice
dc6c7e9121
use more conventional os.name properties
2008-01-18 08:35:20 -07:00
Joel Dice
f116225933
fix 64-bit arithmetic support on x86-32
2007-12-22 17:00:35 -07:00
Joel Dice
c53470f9c8
Merge branch 'master' of dice.ecovate.com:git/vm
2007-12-21 17:27:49 -07:00
Joel Dice
a867e4d587
snapshot
2007-12-21 17:26:55 -07:00
James Sanders
8c56845616
Added support for Math.cos
2007-12-21 14:10:40 -07:00
Eric Scharff
3cc1232fc2
sys/wait.h should only be included when NOT compiling for win32
2007-12-03 13:25:46 -07:00
James Sanders
3f8a370ba8
Implemented Runtime.exec, Process.waitFor and Process.exitValue for non-windows
2007-11-30 16:39:51 -07:00
James Sanders
8f652ce12d
Implemented native Process.exitValue and Process.waitFor on windows
2007-11-29 18:01:07 -07:00
James Sanders
b6ad93856d
Merge branch 'master' of dice.readytalk.com:/home/dicej/git/vm
2007-11-28 17:52:23 -07:00
James Sanders
bf102aa1a8
implemented Runtime.exec(String) and Runtime.exec(String[])
2007-11-28 17:52:08 -07:00
Eric Scharff
51c198f0f0
Implemented java.lang.Math.random() properly (seeding the random number
...
on first use, and then using the system random number generator)
2007-11-28 17:06:04 -07:00
Joel Dice
6710ca85d7
clean up JNIEXPORT definitions
2007-10-26 18:20:37 -06:00
Joel Dice
e892f1bff5
refactor System.getProperty() to reduce coupling with native code
2007-10-26 12:13:21 -06:00
Joel Dice
c694b8c7e6
fix unix build breakage
2007-10-24 15:03:59 -06:00
Joel Dice
eaf1d205cd
more windows port fixes
2007-10-24 11:24:19 -06:00
Joel Dice
5bfd90cfed
more system-specific tweaks for windows port
2007-10-24 10:24:02 -06:00
Joel Dice
ea6f67a7c7
tweak os-specific system properties
2007-10-24 09:44:51 -06:00
Joel Dice
1381267e70
mork work on the windows port
2007-10-23 11:22:48 -06:00
Eric Scharff
a9bbaff74f
Added Math.ceil() and Math.sin()
2007-10-12 12:53:56 -06:00
Eric Scharff
3fbe5b9a01
Add Math.pow() and Math.sqrt() native peers
2007-10-11 16:41:52 -06:00
Eric Scharff
75c51bb5ec
Added user.home system property
2007-10-11 15:39:21 -06:00
Eric Scharff
b59d234b16
Math.floor() is used by SWT. Defers to the libm (or GCC builtin)
...
for floor
2007-10-11 09:59:22 -06:00
Eric Scharff
7bc85a1247
Implemented printing of doubles using snprintf
2007-10-02 09:23:49 -06:00
Eric Scharff
243d62a952
non-working implementation of float and double.toString()
2007-10-02 08:58:35 -06:00
Joel Dice
65a3ee4277
superficial tweaks
2007-09-21 08:16:43 -06:00
Eric Scharff
36f1d3206e
The proper extension for Mac JNI libraries is .jnilib. Hard-coded constants
...
have been factored to common locations. Furthermore, the LD_LIBRARY_PATH
environment variable is DYLD_LIBRARY_PATH on Mac OS X.
2007-09-20 10:13:41 -06:00