www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/03/26/21:15:54

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Thu, 26 Mar 2009 21:04:35 -0500
From: "Charles Sandmann" <cwsdpmi AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <20090326071841 DOT 73950 AT gmx DOT net>
Subject: Re: Dificulty using open() with O_EXCL on Windows 2000
Date: Thu, 26 Mar 2009 21:04:19 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
Message-ID: <hKKdnXKEa6-uqVHUnZ2dnUVZ_oiWnZ2d@earthlink.com>
Lines: 15
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 64.91.192.48
X-Trace: sv3-FVb+z9RQ8dXDZYWqvxdKEzLXGjZiyTcH/w//UzCVClDJBXr2D6v67SlgaUZDkRlEQaYYtdZdk1mbvsC!3lZlKKIHoKvUnxXUfnrMur1hERFKxPu3eGxcJrm4fvAsmJ50ETIhvmSlihxglY8Lm6lWIzATu+DN!xMp+TE5qaV/cFTeR/FKdTGjcUSHTGA0=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 1884
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Problem happens under Win2K if the O_NOINHERIT flag is set.  It works 
without this flag.  I don't know if this was an untested combination, or 
something broken between W2K SP1 and the current SP4.  If it's not critical, 
I would just "#define O_NOINHERIT 0" in the module causing the problem.

"Juan Manuel Guerrero" <juan DOT guerrero AT gmx DOT de> wrote in message 
news:20090326071841 DOT 73950 AT gmx DOT net...
> While I was porting Perl 5.8.9 I have noticed that the port is not able to 
> create temporary files on Win2K.
> Perl calls open() from libc with the O_EXCL mode among others and this 
> makes it fail.  The same mode seems to work on WinXP and MSDOS.

> Is this behaviour to be expected or am I missing something?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019