Lines Matching refs:var

2 @deftypefn Extension {struct pex_obj *} pex_init (int @var{flags}, @
3 const char *@var{pname}, const char *@var{tempbase})
9 @var{flags} is a bitwise combination of the following:
28 @var{pname} is the name of program to be executed, used in error
29 messages. @var{tempbase} is a base name to use for any required
34 @deftypefn Extension {const char *} pex_run (struct pex_obj *@var{obj}, @
35 int @var{flags}, const char *@var{executable}, char * const *@var{argv}, @
36 const char *@var{outname}, const char *@var{errname}, int *@var{err})
42 @var{obj} is returned by a previous call to @code{pex_init}.
44 @var{flags} is a bitwise combination of the following:
52 of the program will be sent to @var{outname}, or, if @var{outname} is
56 @var{pex_run} may no longer be called with the same @var{obj}.
64 @var{outname} is a suffix. See the description of @var{outname},
92 @var{executable} is the program to execute. @var{argv} is the set of
93 arguments to pass to the program; normally @code{@var{argv}[0]} will
94 be a copy of @var{executable}.
96 @var{outname} is used to set the name of the file to use for standard
101 if @code{PEX_LAST} is not set in @var{flags}, and @code{PEX_USE_PIPES}
105 if @code{PEX_LAST} is set in @var{flags}, and @var{outname} is
120 @code{PEX_SUFFIX} is set in @var{flags}. In this case
121 @var{outname} may not be @code{NULL}. If the @var{tempbase} parameter
123 the concatenation of @var{tempbase} and @var{outname}. If
124 @var{tempbase} was @code{NULL}, then the output file name is a random
125 file name ending in @var{outname}.
128 @code{PEX_SUFFIX} was not set in @var{flags}. In this
129 case, if @var{outname} is not @code{NULL}, it is used as the output
130 file name. If @var{outname} is @code{NULL}, and @var{tempbase} was
132 @var{tempbase}. Otherwise the output file name is chosen completely
136 @var{errname} is the file name to use for standard error output. If
140 On an error return, the code sets @code{*@var{err}} to an @code{errno}
145 @deftypefn Extension {const char *} pex_run_in_environment (struct pex_obj *@var{obj}, @
146 int @var{flags}, const char *@var{executable}, char * const *@var{argv}, @
147 char * const *@var{env}, int @var{env_size}, const char *@var{outname}, @
148 const char *@var{errname}, int *@var{err})
154 @var{env} is the environment for the child process, specified as an array of
161 @deftypefn Extension {FILE *} pex_input_file (struct pex_obj *@var{obj}, @
162 int @var{flags}, const char *@var{in_name})
169 @var{in_name}, @var{obj} and the @code{PEX_SUFFIX} bit in @var{flags}.
174 If @var{flags} includes @code{PEX_BINARY_OUTPUT}, open the stream in
176 @code{PEX_BINARY_OUTPUT} in @var{flags} has no effect on Unix.
179 @deftypefn Extension {FILE *} pex_input_pipe (struct pex_obj *@var{obj}, @
180 int @var{binary})
182 Return a stream @var{fp} for a pipe connected to the standard input of
183 the first program in the pipeline; @var{fp} is opened for writing.
185 that returned @var{obj}.
187 You must close @var{fp} using @code{fclose} yourself when you have
190 The file descriptor underlying @var{fp} is marked not to be inherited
216 you fill the input pipe by writing more data to @var{fp}, then there
224 @deftypefn Extension {FILE *} pex_read_output (struct pex_obj *@var{obj}, @
225 int @var{binary})
231 @var{obj}. @var{binary} should be non-zero if the file should be
237 @deftypefn Extension {FILE *} pex_read_err (struct pex_obj *@var{obj}, @
238 int @var{binary})
244 @var{obj}. @var{binary} should be non-zero if the file should be
251 @deftypefn Extension int pex_get_status (struct pex_obj *@var{obj}, @
252 int @var{count}, int *@var{vector})
254 Returns the exit status of all programs run using @var{obj}.
255 @var{count} is the number of results expected. The results will be
256 placed into @var{vector}. The results are in the order of the calls
261 @deftypefn Extension int pex_get_times (struct pex_obj *@var{obj}, @
262 int @var{count}, struct pex_time *@var{vector})
265 @var{obj}. @var{count} is the number of results expected. The
266 results will be placed into @var{vector}. The results are in the
278 @deftypefn Extension void pex_free (struct pex_obj @var{obj})
280 Clean up and free all data associated with @var{obj}. If you have not
286 @deftypefn Extension {const char *} pex_one (int @var{flags}, @
287 const char *@var{executable}, char * const *@var{argv}, @
288 const char *@var{pname}, const char *@var{outname}, const char *@var{errname}, @
289 int *@var{status}, int *@var{err})
293 for a call to @code{pex_run}. @var{flags} is restricted to a
295 @code{PEX_BINARY_OUTPUT}. @var{outname} is interpreted as if
296 @code{PEX_LAST} were set. On a successful return, @code{*@var{status}} will
301 @deftypefn Extension int pexecute (const char *@var{program}, @
302 char * const *@var{argv}, const char *@var{this_pname}, @
303 const char *@var{temp_base}, char **@var{errmsg_fmt}, @
304 char **@var{errmsg_arg}, int @var{flags})
312 @deftypefn Extension int pwait (int @var{pid}, int *@var{status}, int @var{flags})