FileDescriptor.java: Initialize in/out/err in init().
2002-03-06 Adam Megacz <adam@xwt.org> * java/io/FileDescriptor.java: Initialize in/out/err in init(). * java/io/natFileDescriptorWin32.cc (init()): Added function. * java/io/natFileDescriptorPosix.cc (init()): Added function. * java/io/natFileDescriptorEcos.cc (init()): Added function. From-SVN: r50378
This commit is contained in:
parent
037cfe71e0
commit
348c9efcd3
5 changed files with 44 additions and 4 deletions
|
@ -32,6 +32,17 @@ details. */
|
|||
#include <java/lang/Thread.h>
|
||||
#include <java/io/FileNotFoundException.h>
|
||||
|
||||
// FIXME: casting a FILE (pointer) to a jint will not work on Win64 --
|
||||
// we should be using gnu.gcj.RawData's.
|
||||
|
||||
void
|
||||
java::io::FileDescriptor::init(void)
|
||||
{
|
||||
in = new java::io::FileDescriptor((jint)(GetStdHandle (STD_INPUT_HANDLE)));
|
||||
out = new java::io::FileDescriptor((jint)(GetStdHandle (STD_OUTPUT_HANDLE)));
|
||||
err = new java::io::FileDescriptor((jint)(GetStdHandle (STD_ERROR_HANDLE)));
|
||||
}
|
||||
|
||||
static char *
|
||||
winerr (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue