From ca161b7cd77f4cc3a29ccfe3c000ecd79af25f29 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Mon, 7 Dec 2015 22:10:14 +0100 Subject: [PATCH 2/2] Update the documentation. --- NEWS | 3 +++ manual/Unit posix | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 4f43186..dca187f 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,9 @@ - SRFI-18: thread-join! no longer gives an error when passed a thread in the "sleeping" state (thanks to Joerg Wittenberger) +- Unit "posix": + - ##sys#stat now works on port objects. + 4.10.1 - Core libraries diff --git a/manual/Unit posix b/manual/Unit posix index f868cc5..5c6246d 100644 --- a/manual/Unit posix +++ b/manual/Unit posix @@ -474,14 +474,14 @@ inexact integer. (file-position FILE) Returns the current file position of {{FILE}}, which should be a -port or a file-descriptor. +port, a file-descriptor or a port object. ==== file-size (file-size FILE) Returns the size of the file designated by {{FILE}}. {{FILE}} -may be a filename or a file-descriptor. If the file does not exist, +may be a filename, a file-descriptor or a port object. If the file does not exist, an error is signaled. Note that for very large files, {{file-size}} may return an inexact integer. @@ -495,8 +495,8 @@ Returns true, if {{FILENAME}} names a regular file (not a directory, socket, etc (file-owner FILE) -Returns the user-id of {{FILE}}. {{FILE}} may be a filename -or a file-descriptor. +Returns the user-id of {{FILE}}. {{FILE}} may be a filename, a file-descriptor +or a port object. ==== file-permissions @@ -504,7 +504,7 @@ or a file-descriptor. Returns the permission bits for {{FILE}}. You can test this value by performing bitwise operations on the result and the {{perm/...}} -values. {{FILE}} may be a filename or a file-descriptor. +values. {{FILE}} may be a filename, a file-descriptor or a port object. ==== file-read-access? ==== file-write-access? @@ -522,8 +522,8 @@ write or execute permissions on the file named {{FILENAME}}. (file-type FILE [LINK [ERROR]]) -Returns the file-type for {{FILE}}, which should be a filename or -file-descriptor. If {{LINK}} is given and true, symbolic-links are +Returns the file-type for {{FILE}}, which should be a filename, a file-descriptor +or a port object. If {{LINK}} is given and true, symbolic-links are not followed: regular-file @@ -548,7 +548,7 @@ error if the file does not exist. (socket? FILE) These procedures return {{#t}} if {{FILE}} given is of the -appropriate type. {{FILE}} may be a filename or a file-descriptor. +appropriate type. {{FILE}} may be a filename, a file-descriptor or a port object. Note that these operations follow symbolic links. If the file does not exist, {{#f}} is returned. -- 2.6.3