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 From: "Hannu E K Nevalainen (garbage mail)" To: Cc: Subject: RE: Problem with database engine on Cygwin Date: Thu, 10 Apr 2003 00:15:34 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <200304091950.h39Jo0kx029631@phys-nfs1.tvi.cc.nm.us> X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of dmay AT tvi DOT edu > I worked around the issue in my code by closing the offending > file, renaming > it to a 20 character pseudo-random string and then deleting it. > When I did > that, I had no problem creating another file with the same name. > The problem > here is if I happen to get 2 20-character psuedo-random strings that are > identical (not likely, I know), this is going to fail. > > So, I kludged it in a somewhat unclean, albeit functional, way. Is there > another workaround that is a little more elegant? Might it be that this helps? $ man 3 mktemp /Hannu E K Nevalainen, Mariefred, Sweden -- ... PORTABILITY ANSI C does not require either `mktemp' or `mkstemp'; the System V Interface Definition requires `mktemp' as of Issue 2. Supporting OS subroutines required: `getpid', `open', `stat'. ... mktemp is part of the libc library. ... info libc --END OF MESSAGE-- -- 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/