From 67a454f72e4194dae9764fcc85aa426db0fa9334 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 19 Oct 2016 01:10:40 +0000 Subject: child_spawn2 documentation --- doc/libstddjb/djbunix.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index 18e3def..b698069 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -459,6 +459,18 @@ and the child. Both the child's stdin and stdout point to the socket; the parent its end of the socket available in *fd.

+

+ pid_t child_spawn2 (char const *file, char const *const *argv, char const *const *envp, int *fds)
+Like child_spawn0(), except that two pipes are created between the +parent and the child. fds must point to an array of 2 ints: this +array is read as well as written by child_spawn2(). On function +call, the numbers in fds must describe what fds should be used +in the child to contain the communication pipes (for instance, if the child +will read from its parent on stdin and writes to its parent on stdout, fds +must contain 0 and 1). On function return, fds contains the +descriptors for the pipes that read from / write to the child. +

+

pid_t child_spawn (char const *file, char const *const *argv, char const *const *envp, int *fds, unsigned int nfds)
More generic spawning function. fds must point to an array of at least nfds ints; -- cgit v1.2.3