JC is a Java virtual machine implementation that converts class
files into C source files using the Soot Java bytecode analysis
framework, compiles them with GCC, and loads them using a built-in
ELF object file loader. JC utilizes the GNU Classpath class library
and provides support for most features you would expect such as
reflection, user class loaders, etc.
WWW: http://jcvm.sourceforge.net/
24 lines
741 B
Plaintext
24 lines
741 B
Plaintext
--- classpath-0.07/native/target/generic/target_generic_file.h 2003/11/02 15:51:19 1.11
|
|
+++ classpath-0.07/native/target/generic/target_generic_file.h 2004/01/27 20:47:54 1.13
|
|
@@ -58,6 +58,7 @@
|
|
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
+#include <fcntl.h>
|
|
|
|
#include "target_native.h"
|
|
#include "target_native_math_int.h"
|
|
@@ -90,7 +91,11 @@
|
|
#define TARGET_NATIVE_FILE_FILEFLAG_APPEND O_APPEND
|
|
#endif
|
|
#ifndef TARGET_NATIVE_FILE_FILEFLAG_SYNC
|
|
- #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
|
|
+ #if !defined (O_SYNC) && defined (O_FSYNC)
|
|
+ #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_FSYNC
|
|
+ #else
|
|
+ #define TARGET_NATIVE_FILE_FILEFLAG_SYNC O_SYNC
|
|
+ #endif
|
|
#endif
|
|
#ifndef TARGET_NATIVE_FILE_FILEFLAG_DSYNC
|
|
#ifdef O_DSYNC
|