Function FSTAT

Syntax

fstat file-descriptor buf => error

Arguments and values

file-descriptor -- A non-negative fixnum.

buf -- An instance of the class stat.

error -- A fixnum.

Description

This function returns information about the file indicated by file-descriptor. This information is returned in the slots of buf. No permissions are required on the file itself, but execute (search) permission is required on all of the directories in path that lead to the file.

Errors

+efault+ buf is not is not an instance of the class stat
+enomem+ Out of memory (i.e., kernel memory).