summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-09-18 22:11:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-09-18 22:11:45 -0700
commit20bcf160207f5c4fc7a0e11bbba2adb36b74ca63 (patch)
tree9c49f9fcccb9c8f11a8777843a2954644c9f8f03 /stream.h
parente4445e078f15013e072cffd93d6b6f3eab3ecabe (diff)
downloadtxr-20bcf160207f5c4fc7a0e11bbba2adb36b74ca63.tar.gz
txr-20bcf160207f5c4fc7a0e11bbba2adb36b74ca63.tar.bz2
txr-20bcf160207f5c4fc7a0e11bbba2adb36b74ca63.zip
* arith.c (logtest): New function.
* eval.c (eval_init): Registered logtest. Registered s-ifmt, s-iflnk, s-ifreg, s-ifblk, s-ifdir, s-ifchr, s-ififo, s-isuid, s-isgid, s-isvtx, s-irwxu, s-irusr, s-iwusr, s-ixusr, s-irwxg, s-irgrp, s-iwgrp, s-ixgrp, s-irwxo, s-iroth, s-iwoth, s-ixoth variables. * lib.h (logtest): Declared. * stream.c (s_ifmt, s_ifsock, s_iflnk, s_ifreg, s_ifblk, s_ifdir, s_ifchr, s_ififo, s_isuid, s_isgid, s_isvtx, s_irwxu, s_irusr, s_iwusr, s_ixusr, s_irwxg, s_irgrp, s_iwgrp, s_ixgrp, s_irwxo, s_iroth, s_iwoth, s_ixoth): New global variables. * stream.h (s_ifmt, s_ifsock, s_iflnk, s_ifreg, s_ifblk, s_ifdir, s_ifchr, s_ififo, s_isuid, s_isgid, s_isvtx, s_irwxu, s_irusr, s_iwusr, s_ixusr, s_irwxg, s_irgrp, s_iwgrp, s_ixgrp, s_irwxo, s_iroth, s_iwoth, s_ixoth): Declared. * txr.1: Documented logtest and s-* variables for stat, as well as open-file and open-directory.
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 10937c76..bf516b2f 100644
--- a/stream.h
+++ b/stream.h
@@ -27,6 +27,11 @@
extern val std_input, std_output, std_debug, std_error;
extern val output_produced;
+extern val s_ifmt, s_iflnk, s_ifreg, s_ifblk, s_ifdir;
+extern val s_ifchr, s_ififo, s_isuid, s_isgid, s_isvtx, s_irwxu;
+extern val s_irusr, s_iwusr, s_ixusr, s_irwxg, s_irgrp, s_iwgrp;
+extern val s_ixgrp, s_irwxo, s_iroth, s_iwoth, s_ixoth;
+
val make_stdio_stream(FILE *, val descr, val input, val output);
val make_pipe_stream(FILE *, val descr, val input, val output);
val make_string_input_stream(val);