summaryrefslogtreecommitdiff
path: root/lib/auto/POSIX/opendir.al
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auto/POSIX/opendir.al')
-rw-r--r--lib/auto/POSIX/opendir.al12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/auto/POSIX/opendir.al b/lib/auto/POSIX/opendir.al
new file mode 100644
index 0000000000..7c264d4770
--- /dev/null
+++ b/lib/auto/POSIX/opendir.al
@@ -0,0 +1,12 @@
+# NOTE: Derived from POSIX.pm. Changes made here will be lost.
+package POSIX;
+
+sub opendir {
+ usage "opendir(directory)", caller if @_ != 1;
+ local($dirhandle) = &gensym;
+ opendir($dirhandle, $_[0])
+ ? $dirhandle
+ : (ungensym($dirhandle), undef);
+}
+
+1;