Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200304111717.h3BHHtkx008273@phys-nfs1.tvi.cc.nm.us> Date: Fri, 11 Apr 2003 11:17:43 -0600 (MDT) From: dmay AT tvi DOT edu Reply-To: dmay AT tvi DOT edu Subject: Re: Problem with database engine on Cygwin To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii On Wed, Apr 09, 2003 at 01:49:50PM -0600, dmay at tvi dot edu wrote: > > fd = creat (FILENAME, (S_IWRITE|S_IREAD)); > if (-1 == fd) { > printf ("\n\nError creating %s:\n", FILENAME); > perror(0); > return -1; > } > #ifdef __CYGWIN__ > fd = open (FILENAME, (O_RDWR|O_BINARY), (S_IREAD|S_IWRITE)); > #endif > #ifndef __CYGWIN__ > fd = open (FILENAME, O_RDWR, (S_IREAD|S_IWRITE)); > #endif Isn't the same file opened twice and fd overwritten? Pierre Yep, you are correct. Here we go again. Thanks. -- ================================= David May Senior UNIX System Administrator Albuquerque TVI 505-224-3015 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/