Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: mkstemp bug
Mail-Copies-To: never
Reply-To: sds@gnu.org
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
From: Sam Steingold <sds@gnu.org>
In-Reply-To: <20050428022934.GC31448@trixie.casa.cgf.cx> (Christopher Faylor's message of "Wed, 27 Apr 2005 22:29:34 -0400")
References: <usm1cb0aa.fsf@gnu.org> <u8y33c1ta.fsf@gnu.org> <20050427222031.GB24021@trixie.casa.cgf.cx> <u4qdrbxhi.fsf@gnu.org> <20050428022934.GC31448@trixie.casa.cgf.cx>
Mail-Followup-To: cygwin@cygwin.com
Date: Thu, 28 Apr 2005 09:42:16 -0400
Message-ID: <usm1b9fwn.fsf@gnu.org>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain

> * Christopher Faylor <pts-ab-crefbany-ercyl-cyrnfr@pltjva.pbz> [2005-04-27 22:29:34 -0400]:
>
> On Wed, Apr 27, 2005 at 07:39:37PM -0400, Sam Steingold wrote:
>>> * Christopher Faylor <pts-ab-crefbany-ercyl-cyrnfr@pltjva.pbz> [2005-04-27 18:20:31 -0400]:
>>>
>>>>the problem is that mkstemp() does not regard FIFOs (as created by
>>>>mkfifo() or mknod()) as existing files.
>>>>
>>>>e.g.
>>>>
>>>>  char s1[] = "/tmp/foo-XXXXXX";
>>>>  char s2[] = "/tmp/foo-XXXXXX";
>>>>  int fd = mkstemp(s1);
>>>>  close(fd); remove(s1);
>>>>  mkfifo(s1,0644);
>>>>  mkstemp(s2);
>>>>  strcmp(s1,s2) ===> 0
>>>
>>> fifos just barely work under cygwin.  I wouldn't recommend using them.
>>
>>Yes, it appears that they are heavily broken.
>
> So when I say "fifos just barely work" you felt the need to inform me
> that they don't work?  And that advances the discussion how, exactly?

I did not just tell you that they are broken.
I also gave you a test case for FIFOs.
I think such a test case is useful for development and debugging.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.openvotingconsortium.org/> <http://www.camera.org>
<http://www.honestreporting.com> <http://www.dhimmi.com/> <http://ffii.org/>
Isn't "Microsoft Works" an advertisement lie?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

