Lines Matching full:var

2 …ypefn Extension {struct pex_obj *} pex_init (int @var{flags}, const char *@var{pname}, const char …
8 @var{flags} is a bitwise combination of the following:
27 @var{pname} is the name of program to be executed, used in error
28 messages. @var{tempbase} is a base name to use for any required
33 … *@var{obj}, int @var{flags}, const char *@var{executable}, char * const *@var{argv}, const char *…
39 @var{obj} is returned by a previous call to @code{pex_init}.
41 @var{flags} is a bitwise combination of the following:
49 of the program will be sent to @var{outname}, or, if @var{outname} is
53 @var{pex_run} may no longer be called with the same @var{obj}.
61 @var{outname} is a suffix. See the description of @var{outname},
89 @var{executable} is the program to execute. @var{argv} is the set of
90 arguments to pass to the program; normally @code{@var{argv}[0]} will
91 be a copy of @var{executable}.
93 @var{outname} is used to set the name of the file to use for standard
98 if @code{PEX_LAST} is not set in @var{flags}, and @code{PEX_USE_PIPES}
102 if @code{PEX_LAST} is set in @var{flags}, and @var{outname} is
117 @code{PEX_SUFFIX} is set in @var{flags}. In this case
118 @var{outname} may not be @code{NULL}. If the @var{tempbase} parameter
120 the concatenation of @var{tempbase} and @var{outname}. If
121 @var{tempbase} was @code{NULL}, then the output file name is a random
122 file name ending in @var{outname}.
125 @code{PEX_SUFFIX} was not set in @var{flags}. In this
126 case, if @var{outname} is not @code{NULL}, it is used as the output
127 file name. If @var{outname} is @code{NULL}, and @var{tempbase} was
129 @var{tempbase}. Otherwise the output file name is chosen completely
133 @var{errname} is the file name to use for standard error output. If
137 On an error return, the code sets @code{*@var{err}} to an @code{errno}
142var{obj}, int @var{flags}, const char *@var{executable}, char * const *@var{argv}, char * const *@
148 @var{env} is the environment for the child process, specified as an array of
150 form @code{VAR=VALUE}, with the exception of the last element that must be
155 …fn Extension {FILE *} pex_input_file (struct pex_obj *@var{obj}, int @var{flags}, const char *@var
162 @var{in_name}, @var{obj} and the @code{PEX_SUFFIX} bit in @var{flags}.
167 If @var{flags} includes @code{PEX_BINARY_OUTPUT}, open the stream in
169 @code{PEX_BINARY_OUTPUT} in @var{flags} has no effect on Unix.
172 @deftypefn Extension {FILE *} pex_input_pipe (struct pex_obj *@var{obj}, int @var{binary})
174 Return a stream @var{fp} for a pipe connected to the standard input of
175 the first program in the pipeline; @var{fp} is opened for writing.
177 that returned @var{obj}.
179 You must close @var{fp} using @code{fclose} yourself when you have
182 The file descriptor underlying @var{fp} is marked not to be inherited
208 you fill the input pipe by writing more data to @var{fp}, then there
216 @deftypefn Extension {FILE *} pex_read_output (struct pex_obj *@var{obj}, int @var{binary})
222 @var{obj}. @var{binary} should be non-zero if the file should be
229 @deftypefn Extension int pex_get_status (struct pex_obj *@var{obj}, int @var{count}, int *@var{vect…
231 Returns the exit status of all programs run using @var{obj}.
232 @var{count} is the number of results expected. The results will be
233 placed into @var{vector}. The results are in the order of the calls
238 …ypefn Extension int pex_get_times (struct pex_obj *@var{obj}, int @var{count}, struct pex_time *@v…
241 @var{obj}. @var{count} is the number of results expected. The
242 results will be placed into @var{vector}. The results are in the
254 @deftypefn Extension void pex_free (struct pex_obj @var{obj})
256 Clean up and free all data associated with @var{obj}.
260var{flags}, const char *@var{executable}, char * const *@var{argv}, const char *@var{pname}, const…
264 for a call to @code{pex_run}. @var{flags} is restricted to a
266 @code{PEX_BINARY_OUTPUT}. @var{outname} is interpreted as if
267 @code{PEX_LAST} were set. On a successful return, @code{*@var{status}} will
272var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base},…
280 @deftypefn Extension int pwait (int @var{pid}, int *@var{status}, int @var{flags})