diff options
author | Justus Winter <[email protected]> | 2016-11-07 16:40:43 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-11-07 16:40:43 +0000 |
commit | abe0cc7a21d2b0b5c77cc525b999d1ede2d29185 (patch) | |
tree | 10a41e272a22868f49565d71e899d06d4d04d86c /tests/gpgscm/lib.scm | |
parent | gpgscm: Drop 'len' argument from splice. (diff) | |
download | gnupg-abe0cc7a21d2b0b5c77cc525b999d1ede2d29185.tar.gz gnupg-abe0cc7a21d2b0b5c77cc525b999d1ede2d29185.zip |
gpgscm: Generalize splice to write to multiple sinks.
* tests/gpgscm/ffi.c (ordinal_suffix): New function.
(do_splice): Generalize splice to write to multiple sinks.
* tests/gpgscm/lib.scm (splice): Document this fact.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/lib.scm')
-rw-r--r-- | tests/gpgscm/lib.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gpgscm/lib.scm b/tests/gpgscm/lib.scm index 7d2d1ebac..27779e24a 100644 --- a/tests/gpgscm/lib.scm +++ b/tests/gpgscm/lib.scm @@ -207,8 +207,9 @@ ;; Get our process id. (ffi-define (getpid)) -;; Copy data from file descriptor SOURCE to SINK. -(ffi-define (splice source sink)) +;; Copy data from file descriptor SOURCE to every file descriptor in +;; SINKS. +(ffi-define (splice source . sinks)) ;; ;; Random numbers. |