From owner-cvs-all@FreeBSD.ORG Sat Oct 16 16:58:12 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA7D16A4CE; Sat, 16 Oct 2004 16:58:12 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4D4743D1F; Sat, 16 Oct 2004 16:58:12 +0000 (GMT) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9GGwCC4021630; Sat, 16 Oct 2004 16:58:12 GMT (envelope-from glewis@repoman.freebsd.org) Received: (from glewis@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9GGwCE6021629; Sat, 16 Oct 2004 16:58:12 GMT (envelope-from glewis) Message-Id: <200410161658.i9GGwCE6021629@repoman.freebsd.org> From: Greg Lewis Date: Sat, 16 Oct 2004 16:58:12 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/java/jdk14/files patch-io_io_util.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2004 16:58:13 -0000 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)