develooper Front page | perl.perl5.porters | Postings from November 2008

RE: Smoke [5.11.0] 34874 FAIL(F) MSWin32 WinXP/.Net SP3 (x86/2 cpu)

Thread Previous | Thread Next
From:
Steve Hay
Date:
November 25, 2008 09:33
Subject:
RE: Smoke [5.11.0] 34874 FAIL(F) MSWin32 WinXP/.Net SP3 (x86/2 cpu)
Message ID:
1B32FF956ABF414C9BCE5E487A1497E702A1ECCE@ukmail02.planit.group
Nicholas Clark wrote:
> On Tue, Nov 18, 2008 at 09:50:44AM -0000, Steve Hay wrote:
>> Nicholas Clark wrote:
> 
>>> On Win32 both POSIX::O_NONBLOCK and POSIX::O_SYNC are actually
>>> subroutines that croak() with a "not defined" if you call them?
>> 
>> Yes, I think so:
>> 
>> C:\p5p\bleadperl>.\perl -MPOSIX -e "POSIX::O_NONBLOCK()"
>> Your vendor has not defined Fcntl macro O_NONBLOCK, used at -e line
>> 1. 
>> 
>> C:\p5p\bleadperl>.\perl -MPOSIX -e "POSIX::O_SYNC()"
>> O_SYNC is not a valid POSIX macro at -e line 1
>> 
>> 
>>> If "yes" - can you suggest two Fcntl constants re-exported by POSIX
>>> that are defined on Win32?
>> 
>> These are all okay: O_APPEND, O_CREAT, O_EXCL, O_TRUNC.
> 
> Should be fixed with change 34909

Yes, working now, but...


> 
> Nicholas Clark
> 
> Change 34909 by nicholas@nicholas-saigo on 2008/11/25 15:48:04
> 
> 	Tweak the constants used in testing to constants that Win32 also
has.
> 
> Affected files ...
> 
> ... //depot/perl/ext/B/t/deparse.t#44 edit
> 
> Differences ...
> 
> ==== //depot/perl/ext/B/t/deparse.t#44 (text) ====
> 
> @@ -157,8 +157,8 @@
>  use constant GLIPP => 'glipp';
>  use constant PI => 4;
>  use constant OVERLOADED_NUMIFICATION => bless({}, 'Moo');
> -use Fcntl qw/O_NONBLOCK O_SYNC O_EXCL/;
> -BEGIN { delete $::Fcntl::{O_SYNC}; }
> +use Fcntl qw/O_EXCL O_APPEND O_EXCL/;

...is it intentional that you have O_EXCEL twice in the above line?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About