Lines Matching +full:standard +full:- +full:mode
1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved.
50 the standard library routine
57 For instance, to time-stamp the output of a program,
66 the in-memory formatting capabilities of
83 Low-Level Process Creation \(em Execl and Execv
85 If you're not using the standard library,
89 using the more primitive routines that the standard
115 but this is seldom used except as a place-holder.
201 execl("/bin/sh", "sh", "-c", commandline, NULL);
206 .UL -c
241 is non-zero; it is the process number of the child.
246 execl("/bin/sh", "sh", "-c", cmd, NULL); /* in child */
261 returns non-zero
267 .UL -1 ).
299 are the heart of the standard library's
308 encodes in its low-order eight bits
310 it is 0 for normal termination and non-zero to indicate
359 which connects the standard output of
361 to the standard input of
378 if (stat == -1)
405 .UL popen(cmd,\ mode) ,
413 .UL mode .
444 These closes are necessary to make end-of-file tests work properly.
454 #define tst(a, b) (mode == READ ? (b) : (a))
457 popen(cmd, mode)
459 int mode;
470 execl("/bin/sh", "sh", "-c", cmd, 0);
473 if (popen_pid == -1)
495 with the standard input of the child.
499 that is, the standard input.
510 thus the read side of the pipe becomes the standard input.
511 (Yes, this is a bit tricky, but it's a standard idiom.)
531 is that only a bounded number of unwaited-for children
551 while ((r = wait(&status)) != popen_pid && r != -1);
552 if (r == -1)
553 status = -1;
573 as part of the standard I/O library discussed below.