local $^F = 2;
# Store callers umask
- my $umask = umask() unless ($^O eq 'MacOS');
+ my $umask = umask();
# Set a known umask
- umask(066) unless ($^O eq 'MacOS');
+ umask(066);
# Attempt to open the file
my $open_success = undef;
if ( $open_success ) {
# Reset umask
- umask($umask) unless ($^O eq 'MacOS');
+ umask($umask);
# Opened successfully - return file handle and name
return ($fh, $path);
} else {
# Reset umask
- umask($umask) unless ($^O eq 'MacOS');
+ umask($umask);
# Error opening file - abort with error
# if the reason was anything but EEXIST
} elsif ($options{"mkdir"}) {
# Store callers umask
- my $umask = umask() unless ($^O eq 'MacOS');
+ my $umask = umask();
# Set a known umask
- umask(066) unless ($^O eq 'MacOS');
+ umask(066);
# Open the temp directory
if (mkdir( $path, 0700)) {
# created okay
# Reset umask
- umask($umask) unless ($^O eq 'MacOS');
+ umask($umask);
return undef, $path;
} else {
# Reset umask
- umask($umask) unless ($^O eq 'MacOS');
+ umask($umask);
# Abort with error if the reason for failure was anything
# except EEXIST
=item getsockopt SOCKET,LEVEL,OPTNAME
-Not implemented. (S<Mac OS>, Plan9)
+Not implemented. (Plan9)
=item glob EXPR
=item setsockopt SOCKET,LEVEL,OPTNAME,OPTVAL
-Not implemented. (S<Mac OS>, Plan9)
+Not implemented. (Plan9)
=item shmctl ID,CMD,ARG