mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <justus@g10code.com>
This commit is contained in:
parent
4d98a72b88
commit
abe0cc7a21
2 changed files with 42 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue