summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kyheku <kaz@kylheku.com>2020-01-15 21:46:40 -0800
committerKaz Kyheku <kaz@kylheku.com>2020-01-15 21:46:40 -0800
commitfa62e08dc6e915422c0dd99c18e050182e5e694f (patch)
treed9d2e38a96f3c7e8c021c500f661409e9641f70d /txr.1
parent586a4afc8f9d5616fdf21c471a772391e574bc43 (diff)
downloadtxr-fa62e08dc6e915422c0dd99c18e050182e5e694f.tar.gz
txr-fa62e08dc6e915422c0dd99c18e050182e5e694f.tar.bz2
txr-fa62e08dc6e915422c0dd99c18e050182e5e694f.zip
fstat: take fd argument.
* sysif.c (get_fd): Make available under HAVE_SYS_STAT. (fstat): Allow fd or stream argument using get_fd. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.110
1 files changed, 7 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 0624f488..82533914 100644
--- a/txr.1
+++ b/txr.1
@@ -57697,7 +57697,7 @@ fields take on values of zero.
.synb
.mets (stat << path )
.mets (lstat << path )
-.mets (fstat << stream )
+.mets (fstat > { stream | << fd })
.syne
.desc
The
@@ -57731,8 +57731,12 @@ The
.code fstat
function retrieves information about the file system object associated with
the open stream
-.metn stream .
-The stream must be of a kind from which the
+.meta stream
+or numeric file descriptor
+.metn fd .
+If a
+.meta stream
+is specified, that stream must be of a kind from which the
.code fileno
function can retrieve a file descriptor, otherwise an exception of type
.code file-error