/[man-db]/man-db/lib/pipeline.h
ViewVC logotype

Diff of /man-db/lib/pipeline.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by cjwatson, Sun Aug 3 20:08:49 2003 UTC revision 1.7 by cjwatson, Sun Aug 3 22:53:19 2003 UTC
# Line 40  typedef struct pipeline { Line 40  typedef struct pipeline {
40          int commands_max;       /* size of allocated array */          int commands_max;       /* size of allocated array */
41          command **commands;          command **commands;
42          pid_t *pids;          pid_t *pids;
43          int want_in, want_out;  /* if non-zero, create input/output pipes */  
44          int infd, outfd;        /* created by pipeline_start(), else -1 */          /* To be set by the caller. If positive, these contain
45             * caller-supplied file descriptors for the input and output of the
46             * whole pipeline. If negative, pipeline_start() will create pipes
47             * and store the input writing half and the output reading half in
48             * infd and outfd as appropriate. If zero, input and output will be
49             * left as stdin and stdout.
50             */
51            int want_in, want_out;
52    
53            /* See above. The caller should consider these read-only. */
54            int infd, outfd;
55  } pipeline;  } pipeline;
56    
57  /* Construct a new command. */  /* Construct a new command. */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26