This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: support of O_DSYNC on newlib platforms
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 7 Jun 2003 16:35:05 +0200
- Subject: FYI: Patch: support of O_DSYNC on newlib platforms
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi list,
I commited the attached obvious patch to trunk to support O_DSYNC on
newlib platforms. Newlib has neither O_DSYNC nor O_FSYNC support
built in. We use O_DSYNC as a synonym to O_SYNC (which is supported
on newlib).
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+4fgZWSOgCCdjSDsRAuWIAJ4wvBbCJlGLe4JtUvH/UkyM7abC1QCeNfyq
XpLdAfZ1OswoyDnO9dLH4Gc=
=wxOT
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1921
diff -u -b -B -r1.1921 ChangeLog
--- ChangeLog 6 Jun 2003 03:34:35 -0000 1.1921
+++ ChangeLog 6 Jun 2003 05:36:47 -0000
@@ -1,3 +1,9 @@
+2003-06-06 Michael Koch <konqueror@gmx.de>
+
+ * include/posix.h
+ (O_DSYNC): Define O_DSYNC on platforms not
+ supporting O_FSYNC (newlib).
+
2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
* java/lang/w_exp.c (o_threshold, u_threshold): Define only
Index: include/posix.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/posix.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -B -r1.19 -r1.20
--- include/posix.h 5 Jun 2003 22:37:02 -0000 1.19
+++ include/posix.h 7 Jun 2003 14:30:32 -0000 1.20
@@ -56,6 +56,10 @@
#if !defined (O_DSYNC) && defined (O_FSYNC)
#define O_DSYNC O_FSYNC
#endif
+// If O_DSYNC is still not defined, use O_SYNC (needed for newlib)
+#if !defined (O_DSYNC)
+#define O_DSYNC O_SYNC
+#endif
// Separator for file name components.
#define _Jv_platform_file_separator ((jchar) '/')