[kaffe] CVS kaffe (robilad): Small cleanup in target layer
Kaffe CVS
cvs-commits at kaffe.org
Thu Aug 4 18:25:10 PDT 2005
PatchSet 6783
Date: 2005/08/05 01:20:18
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Small cleanup in target layer
2005-08-05 Dalibor Topic <topic at clerks.kaffe.org>
* libraries/clib/target/generic/target_generic_file.h (TARGET_NATIVE_FILE_FSYNC):
Swapped with
* libraries/clib/target/Linux/target_native_file.h (TARGET_NATIVE_FILE_FSYNC):
to make sure all the wrapped native calls are in the Linux layer.
Members:
ChangeLog:1.4308->1.4309
libraries/clib/target/Linux/target_native_file.h:1.4->1.5
libraries/clib/target/generic/target_generic_file.h:1.2->1.3
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4308 kaffe/ChangeLog:1.4309
--- kaffe/ChangeLog:1.4308 Fri Aug 5 01:14:33 2005
+++ kaffe/ChangeLog Fri Aug 5 01:20:18 2005
@@ -1,3 +1,10 @@
+2005-08-05 Dalibor Topic <topic at clerks.kaffe.org>
+
+ * libraries/clib/target/generic/target_generic_file.h (TARGET_NATIVE_FILE_FSYNC):
+ Swapped with
+ * libraries/clib/target/Linux/target_native_file.h (TARGET_NATIVE_FILE_FSYNC):
+ to make sure all the wrapped native calls are in the Linux layer.
+
2005-08-05 Dalibor Topic <robilad at kaffe.org>
* include/jsyscall.h (KFTRUNCATE, KFSYNC, KREAD, KWRITE): Documented.
@@ -8,7 +15,6 @@
TARGET_NATIVE_FILE_TRUNCATE, TARGET_NATIVE_FILE_WRITE,
TARGET_NATIVE_FILE_READ): New macros used to delegate
system calls to thread-safe wrappers for system calls.
-
2005-08-04 Dalibor Topic <robilad at kaffe.org>
Index: kaffe/libraries/clib/target/Linux/target_native_file.h
diff -u kaffe/libraries/clib/target/Linux/target_native_file.h:1.4 kaffe/libraries/clib/target/Linux/target_native_file.h:1.5
--- kaffe/libraries/clib/target/Linux/target_native_file.h:1.4 Fri Aug 5 01:14:36 2005
+++ kaffe/libraries/clib/target/Linux/target_native_file.h Fri Aug 5 01:20:19 2005
@@ -339,7 +339,7 @@
#ifndef TARGET_NATIVE_FILE_FSYNC
#define TARGET_NATIVE_FILE_FSYNC(filedescriptor,result) \
do { \
- result=(fsync(filedescriptor)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \
+ result=(KFSYNC(filedescriptor)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \
} while(0)
#endif
Index: kaffe/libraries/clib/target/generic/target_generic_file.h
diff -u kaffe/libraries/clib/target/generic/target_generic_file.h:1.2 kaffe/libraries/clib/target/generic/target_generic_file.h:1.3
--- kaffe/libraries/clib/target/generic/target_generic_file.h:1.2 Fri Aug 5 01:14:36 2005
+++ kaffe/libraries/clib/target/generic/target_generic_file.h Fri Aug 5 01:20:19 2005
@@ -828,7 +828,7 @@
#ifndef TARGET_NATIVE_FILE_FSYNC
#define TARGET_NATIVE_FILE_FSYNC(filedescriptor,result) \
do { \
- result=(KFSYNC(filedescriptor)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \
+ result=(fsync(filedescriptor)==0)?TARGET_NATIVE_OK:TARGET_NATIVE_ERROR; \
} while(0)
#endif
More information about the kaffe
mailing list