summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-10 22:18:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-10 22:18:50 -0700
commit6a350fd788f3114629c9993aa4d1ec5c292182f5 (patch)
tree5b2319bf1f8d7144bfadcf9055264e809017e750 /stream.h
parentcc9bd9efeb1a0b49819e086020c09656abeac768 (diff)
downloadtxr-6a350fd788f3114629c9993aa4d1ec5c292182f5.tar.gz
txr-6a350fd788f3114629c9993aa4d1ec5c292182f5.tar.bz2
txr-6a350fd788f3114629c9993aa4d1ec5c292182f5.zip
Functions open-fileno and fileno.
* stream.c (fd_k): New keyword variable. (stdio_get_prop): Handle the :fd property by returning the file descriptor. (open_fileno): New function. (stream_init): Initialize fd_k, and register fileno and open-fileno. * stream.h (open_fileno): Declared. * txr.1: Documented open-fileno and fileno. * utf8.c (w_fdopen): New function. * utf8.h (w_fdopen): Declared.
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index b6fc957f..48432e9f 100644
--- a/stream.h
+++ b/stream.h
@@ -117,6 +117,7 @@ val get_string(val stream, val nchars, val close_after_p);
val statf(val path);
val open_directory(val path);
val open_file(val path, val mode_str);
+val open_fileno(val fd, val mode_str);
val open_tail(val path, val mode_str, val seek_end_p);
val open_command(val path, val mode_str);
val open_process(val path, val mode_str, val args);