This is the mail archive of the
mailing list for the Cygwin project.
Re: mkstemp bug
> * Christopher Faylor <firstname.lastname@example.org> [2005-04-27 22:29:34 -0400]:
> On Wed, Apr 27, 2005 at 07:39:37PM -0400, Sam Steingold wrote:
>>> * Christopher Faylor <email@example.com> [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.
>>>> char s1 = "/tmp/foo-XXXXXX";
>>>> char s2 = "/tmp/foo-XXXXXX";
>>>> int fd = mkstemp(s1);
>>>> close(fd); remove(s1);
>>>> 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.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