#!./perl
BEGIN {
chdir 't' if -d 't';
}
use Config;
} else {
}
my $accurate_timestamps =
);
$has_link = 1;
$accurate_timestamps = 1;
}
}
my $needs_fh_reopen =
$^O eq 'dos'
# Not needed on HPFS, but needed on HPFS386 ?!
|| $^O eq 'os2';
my $skip_mode_checks =
}
}
elsif ($Is_MacOS) {
}
else {
}
umask(022);
}
SKIP: {
}
SKIP: {
# if ($^O eq 'cygwin') { # new files on cygwin get rwx instead of rw-
# is($mode & 0777, 0777, "mode of triply-linked file");
# } else {
# }
}
}
SKIP: {
}
$newmode = 0700;
$newmode = 0666;
SKIP: {
}
SKIP: {
}
}
}
}
else {
print "# Maybe stat() cannot get the correct atime, ".
"as happens via NFS on linux?\n";
}
else {
}
}
# why is this 1 second off?
}
}
else {
}
}
}
unlink 'c';
# Yet another way to look for links (perhaps those that cannot be
# created by perl?). Hopefully there is an ls utility in your
# %PATH%. N.B. that $^O is 'cygwin' on Cygwin.
# we have to copy because e.g. GNU grep gets huffy if we have
# a symlink forest to another disk (it complains about too many
# levels of symbolic links, even if we have only two)
}
print IOFSCOM 'helloworld';
# TODO: pp_truncate needs to be taught about F_CHSIZE and F_FREESP,
# as per UNIX FAQ.
# Check truncating a closed file.
#these steps are necessary to check if file is really truncated
#On Win95, FH is updated, but file properties aren't
# Check truncating an open file.
select FH;
$| = 1;
select STDOUT;
{
use strict;
}
}
SKIP: {
skip ("# TODO - hit VOS bug posix-973 - cannot resize an open file below the current file pos.", 5);
}
}
select FH;
$| = 1;
select STDOUT;
{
use strict;
}
}
}
}
# check if rename() can be used to just change case of filename
chdir './tmp';
# this works on win32 only, because fs isn't casesensitive
}
# check if rename() works on directories
# must have delete access to rename a directory
print "# errno: $!\n";
} else {
}
# need to remove 'tmp' if rename() in test 28 failed!