1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

(File System): stat:rdev and stat:blocks can return #f,

stat:blksize returns a sensible size if the field is not available.
This commit is contained in:
Kevin Ryde 2003-06-04 15:37:28 +00:00
parent d23496c0c7
commit f5f7888d1c

View file

@ -594,8 +594,9 @@ The user ID of the file's owner.
The group ID of the file. The group ID of the file.
@end deffn @end deffn
@deffn {Scheme Procedure} stat:rdev st @deffn {Scheme Procedure} stat:rdev st
Device ID; this entry is defined only for character or block Device ID; this entry is defined only for character or block special
special files. files. On some systems this field is not available at all, in which
case @code{stat:rdev} returns @code{#f}.
@end deffn @end deffn
@deffn {Scheme Procedure} stat:size st @deffn {Scheme Procedure} stat:size st
The size of a regular file in bytes. The size of a regular file in bytes.
@ -610,12 +611,14 @@ The last modification time for the file.
The last modification time for the attributes of the file. The last modification time for the attributes of the file.
@end deffn @end deffn
@deffn {Scheme Procedure} stat:blksize st @deffn {Scheme Procedure} stat:blksize st
The optimal block size for reading or writing the file, in The optimal block size for reading or writing the file, in bytes. On
bytes. some systems this field is not available, in which case
@code{stat:blksize} returns a sensible suggested block size.
@end deffn @end deffn
@deffn {Scheme Procedure} stat:blocks st @deffn {Scheme Procedure} stat:blocks st
The amount of disk space that the file occupies measured in The amount of disk space that the file occupies measured in units of
units of 512 byte blocks. 512 byte blocks. On some systems this field is not available, in
which case @code{stat:blocks} returns @code{#f}.
@end deffn @end deffn
In addition, the following procedures return the information In addition, the following procedures return the information