diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-19 01:10:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-19 01:10:40 +0000 |
commit | 67a454f72e4194dae9764fcc85aa426db0fa9334 (patch) | |
tree | ccdb21e987b24bef59e7a98a8213e277a3a21e23 /doc/libstddjb | |
parent | d16e2baf35963f6ed2ccd23a3aa3df69cd65dd84 (diff) | |
download | skalibs-67a454f72e4194dae9764fcc85aa426db0fa9334.tar.xz |
child_spawn2 documentation
Diffstat (limited to 'doc/libstddjb')
-rw-r--r-- | doc/libstddjb/djbunix.html | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -460,6 +460,18 @@ its end of the socket available in *<em>fd</em>. </p> <p> +<code> pid_t child_spawn2 (char const *file, char const *const *argv, char const *const *envp, int *fds) </code> <br /> +Like <tt>child_spawn0()</tt>, except that two pipes are created between the +parent and the child. <em>fds</em> must point to an array of 2 ints: this +array is read as well as written by <tt>child_spawn2()</tt>. On function +call, the numbers in <em>fds</em> 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, <em>fds</em> +must contain 0 and 1). On function return, <em>fds</em> contains the +descriptors for the pipes that read from / write to the child. +</p> + +<p> <code> pid_t child_spawn (char const *file, char const *const *argv, char const *const *envp, int *fds, unsigned int nfds) </code> <br /> More generic spawning function. <em>fds</em> must point to an array of at least <em>nfds</em> ints; file descriptors reading from or writing to the child will be stored there. The function returns |