ext/Fcntl/Fcntl.xs Fcntl extension external subroutines
ext/Fcntl/Makefile.PL Fcntl extension makefile writer
ext/Fcntl/t/fcntl.t See if Fcntl works
+ext/Fcntl/t/mode.t See if S_ISREG() and S_ISDIR() work
ext/Fcntl/t/syslfs.t See if large files work for sysio
ext/File/Glob/bsd_glob.c File::Glob extension run time code
ext/File/Glob/bsd_glob.h File::Glob extension header file
=cut
+use strict;
our($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $AUTOLOAD);
require Exporter;
use XSLoader ();
@ISA = qw(Exporter);
BEGIN {
- $VERSION = "1.05";
+ $VERSION = "1.06";
}
# Items to export into callers namespace by default
XSLoader::load 'Fcntl', $VERSION;
}
-sub S_IFMT { @_ ? ( $_[0] & _S_IFMT ) : _S_IFMT }
+sub S_IFMT { @_ ? ( $_[0] & _S_IFMT() ) : _S_IFMT() }
sub S_IMODE { $_[0] & 07777 }
-sub S_ISREG { ( $_[0] & _S_IFMT ) == S_IFREG }
-sub S_ISDIR { ( $_[0] & _S_IFMT ) == S_IFDIR }
-sub S_ISLNK { ( $_[0] & _S_IFMT ) == S_IFLNK }
-sub S_ISSOCK { ( $_[0] & _S_IFMT ) == S_IFSOCK }
-sub S_ISBLK { ( $_[0] & _S_IFMT ) == S_IFBLK }
-sub S_ISCHR { ( $_[0] & _S_IFMT ) == S_IFCHR }
-sub S_ISFIFO { ( $_[0] & _S_IFMT ) == S_IFIFO }
-sub S_ISWHT { ( $_[0] & _S_IFMT ) == S_IFWHT }
-sub S_ISENFMT { ( $_[0] & _S_IFMT ) == S_IFENFMT }
+sub S_ISREG { ( $_[0] & _S_IFMT() ) == S_IFREG() }
+sub S_ISDIR { ( $_[0] & _S_IFMT() ) == S_IFDIR() }
+sub S_ISLNK { ( $_[0] & _S_IFMT() ) == S_IFLNK() }
+sub S_ISSOCK { ( $_[0] & _S_IFMT() ) == S_IFSOCK() }
+sub S_ISBLK { ( $_[0] & _S_IFMT() ) == S_IFBLK() }
+sub S_ISCHR { ( $_[0] & _S_IFMT() ) == S_IFCHR() }
+sub S_ISFIFO { ( $_[0] & _S_IFMT() ) == S_IFIFO() }
+sub S_ISWHT { ( $_[0] & _S_IFMT() ) == S_IFWHT() }
+sub S_ISENFMT { ( $_[0] & _S_IFMT() ) == S_IFENFMT() }
sub AUTOLOAD {
(my $constname = $AUTOLOAD) =~ s/.*:://;
my (undef,$file,$line) = caller;
die "$error at $file line $line.\n";
}
+ no strict 'refs';
*$AUTOLOAD = sub { $val };
goto &$AUTOLOAD;
}