summaryrefslogtreecommitdiffstats
path: root/tests/010/block.expected
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-14 22:41:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-14 22:41:07 -0700
commita4692d447d475a3f58e222b8363958d0659a1281 (patch)
treea6bb4f1deb2594adae60c4ae07e8f11c01507e73 /tests/010/block.expected
parenteb327c0155b982619c4b8d1e2f7e6487adb0834a (diff)
downloadtxr-a4692d447d475a3f58e222b8363958d0659a1281.tar.gz
txr-a4692d447d475a3f58e222b8363958d0659a1281.tar.bz2
txr-a4692d447d475a3f58e222b8363958d0659a1281.zip
streams: *stdnull* lazily opens /dev/null
The *stdnull* stream has been purely a stream-level abstraction. To make it useful for redirecting real file descriptors around the execution of external programs, we endow it with the ability to open /dev/null when it is asked to provide its file descriptor. * stream.c (struct dev_null): New structure. (dev_null_close, dev_null_get_fd, dev_null_get_prop): New static functions. (null_ops): Wire in the above functions instead of null_close, null_get_fd and null_get_prop. We need new functions because null_close and others do not belong to just the null stream; they are base operations used by other streams as default implementations for some kinds of unimplemented functions. (make_null_stream): Alocate a struct dev_null instead of a struct strm_base. Set the fd to -1. * txr.1: Documented.
Diffstat (limited to 'tests/010/block.expected')
0 files changed, 0 insertions, 0 deletions