www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Wed, 9 Apr 2003 15:58:37 -0400 |
From: | "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with database engine on Cygwin |
Message-ID: | <20030409195837.GA298013@Worldnet> |
References: | <265000-22003439144414575 AT M2W029 DOT mail2web DOT com> <200304091950 DOT h39Jo0kx029631 AT phys-nfs1 DOT tvi DOT cc DOT nm DOT us> |
Mime-Version: | 1.0 |
In-Reply-To: | <200304091950.h39Jo0kx029631@phys-nfs1.tvi.cc.nm.us> |
User-Agent: | Mutt/1.4i |
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 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |