diff options
Diffstat (limited to 'lib/auto/POSIX/fstat.al')
-rw-r--r-- | lib/auto/POSIX/fstat.al | 13 |
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; |