aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-05-17 21:03:42 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-05-17 21:23:08 +0300
commit21f3ff37eb0b6759bbe78f995c9b8e1df4a5700a (patch)
tree831384540d252df6aaa6ac244bb6992fb04115fd
parent6a36a2c2424022a6a0ac3be1a2ead8270eec9358 (diff)
downloadrpipe-21f3ff37eb0b6759bbe78f995c9b8e1df4a5700a.tar.gz
rpipe-21f3ff37eb0b6759bbe78f995c9b8e1df4a5700a.tar.bz2
Version 1.8v1.8
-rw-r--r--NEWS4
-rw-r--r--configure.ac2
-rw-r--r--t/t_sink.c59
3 files changed, 62 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index f7ead0e..d0bbab6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,9 @@
-rpipe -- history of user-visible changes. 2021-05-13
+rpipe -- history of user-visible changes. 2021-05-17
See the end of file for copying conditions.
Please send rpipe bug reports to <gray@gnu.org>
-Version 1.7.90 (git)
+Version 1.8, 2021-05-17
* Syslog support
diff --git a/configure.ac b/configure.ac
index 48513bc..d953c1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
-AC_INIT([rpipe], [1.7], [gray@gnu.org], [rpipe],
+AC_INIT([rpipe], [1.8], [gray@gnu.org], [rpipe],
[http://www.gnu.org.ua/software/rpipe])
AC_CONFIG_SRCDIR([src/rpipe.c])
AC_CONFIG_HEADERS([config.h])
diff --git a/t/t_sink.c b/t/t_sink.c
index de37001..da3636a 100644
--- a/t/t_sink.c
+++ b/t/t_sink.c
@@ -1,3 +1,62 @@
+/*
+ NAME
+ t_sink - remote input sink for testing rpipe
+
+ SYNOPSIS
+ t_sink [-c] [-e CODE] [-f FILE] [-t MAP]
+
+ DESCRIPTION
+ The program reads input from stdin and writes it to FILE (if
+ given), or to /dev/null. It is intended to be run as rpipe
+ server command, for testing.
+
+ OPTIONS
+ -c Close stdout and stderr and re-open them to /dev/null.
+
+ -e CODE
+ Exit with the given status code.
+
+ -f FILE
+ Write output to FILE. "-f -" means "write output to
+ stdout" (this cannot be used together with -c).
+
+ By default, output is discarded.
+
+ -t MAP
+ Introduces delays at arbitrary points of output. MAP is a
+ sequence of N=T pairs, separated by colons. In each pair,
+ N is the offset and T is the delay. The effect of each pair
+ is to sleep for T microseconds before outputting Nth character.
+ T can be optionally folowed by 's', in which case it is measured
+ in seconds.
+
+ If a pair remains unconsumed when the input is exhaused, its T
+ part is taken as the time to sleep before closing the output
+ file.
+
+ At most 128 pairs can be supplied.
+
+ EXIT STATUS
+ On success, t_sink returns status code supplied with the -e option or
+ 0 by default. On errors, 1 is returned. On usage errors, 2 is returned.
+
+ LICENSE
+ Copyright (C) 2020-2021 Sergey Poznyakoff
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ */
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>

Return to:

Send suggestions and report system problems to the System administrator.