X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: Dificulty using open() with O_EXCL on Windows 2000 Date: Thu, 26 Mar 2009 07:20:30 -0700 (PDT) Organization: http://groups.google.com Lines: 39 Message-ID: References: 20090326071841 DOT 73950 AT gmx DOT net NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1238077231 21998 127.0.0.1 (26 Mar 2009 14:20:31 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 26 Mar 2009 14:20:31 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: v38g2000yqb.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Mar 26, 2:18=A0am, "Juan Manuel Guerrero" wrote: > > While I was porting Perl 5.8.9 I have noticed that the port is not able > to create temporary files on Win2K. =A0On MSDOS 6.0 and WinXP everything > works fine. > This issue has already been reported some time ago by a user. See > The only Win2k user I know of is Robert Riebisch, probably because that OS wasn't targeted at home desktops. I assume you've already contacted him (or he'll read this here), but if not, e-mail him. Anyways, here's what he said in the same thread: >> Error in tempfile() using c:/djgpp/tmp/XXXXXXXXXX: > > Yes, same here! > >> or does it work fine? > > No. ;-) > > But perl561b works fine. So it must be a regression somewhere if it worked before. (But I have heard that Win2k has various NTVDM bugs that were later fixed for XP. Win2k is still barely supported by MS, though I doubt that means "trivial" bugfixes, sadly.) > Is this behaviour to be expected or am I missing something? > If this is a bug it will appears everytime O_EXCL is used on Win2K. > Is there a way to certainly detect Win2K at runtime? =A0If there is no > way to identify Win2K, then O_EXCL must be removed from the mode list. No direct way through DJGPP calls that I know of. But "ver" should report NT 5.0 (instead of 5.1 for XP or 6.0 for Vista).