summaryrefslogtreecommitdiff
path: root/lib/auto/POSIX/fstat.al
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auto/POSIX/fstat.al')
-rw-r--r--lib/auto/POSIX/fstat.al13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/auto/POSIX/fstat.al b/lib/auto/POSIX/fstat.al
new file mode 100644
index 0000000000..64ac1b6dad
--- /dev/null
+++ b/lib/auto/POSIX/fstat.al
@@ -0,0 +1,13 @@
+# NOTE: Derived from POSIX.pm. Changes made here will be lost.
+package POSIX;
+
+sub fstat {
+ usage "fstat(fd)", caller if @_ != 1;
+ local(*TMP);
+ open(TMP, "<&$_[0]"); # Gross.
+ local(@l) = stat(TMP);
+ close(TMP);
+ @l;
+}
+
+1;