Next: posix file, Previous: posix signal, Up: posix [Index]
Data structure type representing at the Scheme level the C structure
struct stat, (libc)stat.
Build and return a new struct-stat instance.
Return true if obj is an instance of struct-stat.
Accessors for the field of struct-stat instances.
Interfaces to the C functions stat() and lstat(),
(libc)stat. Inspect the file system entry
selected by pathname and return an instance of struct-stat.
If an error occurs: an exception is raised.
Interface to the C function fstat(), (libc)fstat. Inspect the file system entry associated to the file descriptor
fd, which must be a fixnum, and return an instance of
struct-stat. If an error occurs: an exception is raised.
Return #t or #f if the file system entry selected by
pathname is of the specified type; if an error occurs: an
exception is raised. When follow-symlinks? is true: stat()
is used to inspect the entry, else lstat() is used.
follow-symlinks? defaults to #f.
Return #t or #f if the argument is associated to a file
system entry of the specified type. st_mode must be the value of
the st_mode field of a struct-stat instance.
Interface to the C function access(), (libc)access. Test the access mode selected by how, which must
be a fixnum, for the file system entry selected by pathname.
Return #t or #f if the access is possible or not; if an error
occurs: an exception is raised.
Return #t or #f if the file system entry selected by
pathname is accessible in the specified mode. These functions are
equivalent but slower, respectively, to the following calls:
(access pathname R_OK) (access pathname W_OK) (access pathname X_OK)
Determine the size of the file selected by filename relying on a
call to stat(). If successful: return an exact integer
representing the size, else raise an exception.
Return an exact integer representing the access, modification and creation times for pathname. If an error occurs: raise an exception.
Next: posix file, Previous: posix signal, Up: posix [Index]