summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-02-02 14:00:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-02-02 14:00:25 +0000
commit555834d14460c5da1e96b36a5c7c839f86c06cd6 (patch)
treeeaf2e5ad6e30622cb571ef093e404d0bc04b5d9c /lib/File
parent13789a156bd2a7781242bcd8894bc3c7f9031cf4 (diff)
parent9cc29783e82bdad1f12bda85adb9cbb018b86211 (diff)
downloadperl-555834d14460c5da1e96b36a5c7c839f86c06cd6.tar.gz
Integrate from mainperl.
p4raw-id: //depot/cfgperl@2779
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/Spec/OS2.pm4
-rw-r--r--lib/File/Spec/Unix.pm10
-rw-r--r--lib/File/Spec/VMS.pm10
-rw-r--r--lib/File/Spec/Win32.pm4
4 files changed, 28 insertions, 0 deletions
diff --git a/lib/File/Spec/OS2.pm b/lib/File/Spec/OS2.pm
index d602617702..ee7b3316fb 100644
--- a/lib/File/Spec/OS2.pm
+++ b/lib/File/Spec/OS2.pm
@@ -31,6 +31,10 @@ sub path {
@path;
}
+sub devnull {
+ return "/dev/nul";
+}
+
1;
__END__
diff --git a/lib/File/Spec/Unix.pm b/lib/File/Spec/Unix.pm
index 77de73a216..ae3546eb68 100644
--- a/lib/File/Spec/Unix.pm
+++ b/lib/File/Spec/Unix.pm
@@ -105,6 +105,16 @@ sub curdir {
return "." ;
}
+=item devnull
+
+Returns the name of the null device (bit bucket). "/dev/null" on UNIX.
+
+=cut
+
+sub devnull {
+ return "/dev/null";
+}
+
=item rootdir
Returns a string representing of the root directory. "/" on UNIX.
diff --git a/lib/File/Spec/VMS.pm b/lib/File/Spec/VMS.pm
index c5269fd10c..208450589e 100644
--- a/lib/File/Spec/VMS.pm
+++ b/lib/File/Spec/VMS.pm
@@ -97,6 +97,16 @@ sub curdir {
return '[]';
}
+=item devnull (override)
+
+Returns a string representing the null device.
+
+=cut
+
+sub devnull {
+ return 'NL:';
+}
+
=item rootdir (override)
Returns a string representing of the root directory.
diff --git a/lib/File/Spec/Win32.pm b/lib/File/Spec/Win32.pm
index 034a0cbc2e..3af8bcf38a 100644
--- a/lib/File/Spec/Win32.pm
+++ b/lib/File/Spec/Win32.pm
@@ -66,6 +66,10 @@ sub catfile {
return $dir.$file;
}
+sub devnull {
+ return "nul";
+}
+
sub path {
local $^W = 1;
my($self) = @_;