summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-06 16:01:40 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-03-06 16:26:42 -0800
commit06691c2d75d27d6ac9d3bb1d3671f9626d41ee80 (patch)
treeb6f5572920c420bb3a1aad8a3abf8640ec62c096 /syslog.c
parent1adb7248a1a1b7091f0a9faa10edd0d873afa525 (diff)
downloadtxr-06691c2d75d27d6ac9d3bb1d3671f9626d41ee80.tar.gz
txr-06691c2d75d27d6ac9d3bb1d3671f9626d41ee80.tar.bz2
txr-06691c2d75d27d6ac9d3bb1d3671f9626d41ee80.zip
Access to file descriptor now via stream virtual.
* stream.c (unimpl_get_fd, null_get_fd): New static functions. (fill_stream_ops): Set up get_fd function pointer in strm_ops. (null_ops): Add null_get_fd. (stdio_get_fd): New static function. (stdio_ops, tail_ops, pipe_ops): Specify stdio_get_fd as get_fd function. (stream_fd): Rewritten as call to get_fd operation. (dir_ops, string_in_ops, byte_in_ops, string_out_ops, strlist_out_ops, cat_stream_ops): Specify null as get_fd function, to be defaulted by fill_stream_ops. (delegate_get_fd): New static function. (record_adapter_ops): Specify delegate_get_fd as get_fd function. (stream_init): Change fileno intrinsic registration to point to stream_fd function. * stream.h (struct strm_ops): New member, get_fd. (strm_ops_init): New macro parameter, get_fd. * syslog.c (syslog_strm_ops): Specify null as get_fd function.
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslog.c b/syslog.c
index e4265e4b..d5766f95 100644
--- a/syslog.c
+++ b/syslog.c
@@ -230,7 +230,7 @@ static_def(struct strm_ops syslog_strm_ops =
0, 0, 0, 0, 0, 0, 0, 0, 0,
syslog_get_prop,
syslog_set_prop,
- 0, 0, 0))
+ 0, 0, 0, 0))
val make_syslog_stream(val prio)
{