Upgrade to IPC::SysV 2.00_01
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Wed, 26 Nov 2008 22:34:54 +0000 (22:34 +0000)
committerMarcus Holland-Moritz <mhx-perl@gmx.net>
Wed, 26 Nov 2008 22:34:54 +0000 (22:34 +0000)
p4raw-id: //depot/perl@34936

ext/IPC/SysV/Changes
ext/IPC/SysV/Makefile.PL
ext/IPC/SysV/SysV.xs
ext/IPC/SysV/lib/IPC/Msg.pm
ext/IPC/SysV/lib/IPC/Semaphore.pm
ext/IPC/SysV/lib/IPC/SharedMem.pm
ext/IPC/SysV/lib/IPC/SysV.pm

index 968fd22..8eb1570 100644 (file)
@@ -1,3 +1,13 @@
+2.00_01 - 2008-11-26
+
+    * remove const-* when building in the core
+    * inherit libscan behaviour from EU::MM
+    * integrate #33084 from blead
+    * try to make Win32 report NA instead of FAIL
+    * fix bug in IPC::SharedMem constructor returning undef when
+      shared memory id == 0 (thanks to Antonio Jose Coutinho for
+      spotting this)
+
 2.00 - 2007-12-30
 
     * fixed compilation issues with C++ compiler
index e3dfd07..1cd276c 100644 (file)
@@ -1,8 +1,8 @@
 ################################################################################
 #
-#  $Revision: 16 $
+#  $Revision: 18 $
 #  $Author: mhx $
-#  $Date: 2008/01/05 16:41:20 +0100 $
+#  $Date: 2008/11/26 23:12:58 +0100 $
 #
 ################################################################################
 #
@@ -24,9 +24,7 @@ unless ($ENV{'PERL_CORE'}) {
 }
 
 if ($^O eq 'MSWin32') {
-  my $msg = "The IPC::SysV module cannot be built on the $^O platform.";
-  my $str = '*' x length $msg;
-  die "\n$str\n$msg\n$str\n\n";
+  die "OS unsupported\n";
 }
 
 WriteMakefile(
index 9222f7a..11b4013 100644 (file)
@@ -1,8 +1,8 @@
 /*******************************************************************************
 *
-*  $Revision: 31 $
+*  $Revision: 32 $
 *  $Author: mhx $
-*  $Date: 2007/12/29 19:46:18 +0100 $
+*  $Date: 2008/11/26 23:08:42 +0100 $
 *
 ********************************************************************************
 *
index 2128af9..7a67612 100644 (file)
@@ -21,7 +21,7 @@ use strict;
 use vars qw($VERSION);
 use Carp;
 
-$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
+$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00_01 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
 $VERSION = eval $VERSION;
 
 # Figure out if we have support for native sized types
index 29a3cbe..a133103 100644 (file)
@@ -22,7 +22,7 @@ use strict;
 use vars qw($VERSION);
 use Carp;
 
-$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
+$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00_01 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
 $VERSION = eval $VERSION;
 
 # Figure out if we have support for native sized types
index 0f58f1a..9bb188b 100644 (file)
@@ -1,8 +1,8 @@
 ################################################################################
 #
-#  $Revision: 2 $
+#  $Revision: 3 $
 #  $Author: mhx $
-#  $Date: 2007/10/14 05:16:08 +0200 $
+#  $Date: 2008/11/26 23:12:27 +0100 $
 #
 ################################################################################
 #
@@ -21,7 +21,7 @@ use strict;
 use vars qw($VERSION);
 use Carp;
 
-$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
+$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00_01 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
 $VERSION = eval $VERSION;
 
 # Figure out if we have support for native sized types
@@ -53,7 +53,9 @@ sub new
   @_ == 4 or croak 'IPC::SharedMem->new(KEY, SIZE, FLAGS)';
   my($class, $key, $size, $flags) = @_;
 
-  my $id = shmget $key, $size, $flags or return undef;
+  my $id = shmget $key, $size, $flags;
+
+  return undef unless defined $id;
 
   bless { _id => $id, _addr => undef, _isrm => 0 }, $class
 }
index 4005e28..fa14e5f 100644 (file)
@@ -24,7 +24,7 @@ use Config;
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
+$VERSION = do { my @r = '$Snapshot: /IPC-SysV/2.00_01 $' =~ /(\d+\.\d+(?:_\d+)?)/; @r ? $r[0] : '9.99' };
 $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;