Date: Sat, 16 Oct 2004 16:58:12 +0000 (UTC) From: Greg Lewis <glewis@FreeBSD.org> To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/java/jdk14/files patch-io_io_util.h Message-ID: <200410161658.i9GGwCE6021629@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glewis 2004-10-16 16:58:12 UTC FreeBSD ports repository Added files: java/jdk14/files patch-io_io_util.h Log: . At least on FreeBSD, O_SYNC and O_DSYNC aren't both defined (for FreeBSD 4.x neither are defined and for FreeBSD 5.x O_DSYNC isn't defined). This caused them to be defined to some bogus values. In particular, O_SYNC would be defined as 0x800, which is O_EXCL (at least on FreeBSD 4.x). The result being that the RandomAccessFile class would fail to open an existing file if you specified "s" as part of the mode. Fix this by defining O_SYNC and O_DSYNC to O_FSYNC if they aren't defined. Revision Changes Path 1.1 +21 -0 ports/java/jdk14/files/patch-io_io_util.h (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410161658.i9GGwCE6021629>