summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-04-11 07:13:24 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-04-11 07:13:24 -0700
commit2db685dba6db27f92767ae5f16f62744fcb604ac (patch)
treeddf11ccc5d3fa2d1a8b3a04291d6d49e405ca12a /txr.1
parent6a350fd788f3114629c9993aa4d1ec5c292182f5 (diff)
downloadtxr-2db685dba6db27f92767ae5f16f62744fcb604ac.tar.gz
txr-2db685dba6db27f92767ae5f16f62744fcb604ac.tar.bz2
txr-2db685dba6db27f92767ae5f16f62744fcb604ac.zip
Exposing dup and dup2.
* sysif.c (dup_wrap): New static function. (sysif_init): Register dup_wrap as dupfd. The name dup conflicts with an existing function. * txr.1: Documented dupfd. * txr.vim, tl.vim: Regenerated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.113
1 files changed, 13 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 4537885c..c193efd2 100644
--- a/txr.1
+++ b/txr.1
@@ -24852,6 +24852,19 @@ for the
.code :fd
property.
+.coNP Function @ dupfd
+.synb
+.mets (dupfd < old-fileno <> [ new-fileno ])
+.syne
+.desc
+The
+.code dupfd
+function provides an interface to the POSIX functions
+.code dup
+or
+.codn dup2 ,
+when called with one or two arguments, respectively.
+
.SS* Unix Itimers
Itimers ("interval timers") can be used in combination with signal handling to
execute asynchronous actions. Itimers deliver delayed, one-time signals,