Lines Matching refs:read

295 	while ((err = read(masterfd, &c, 1)) == 1) {
597 * If the write to outfd fails, we'll try to read from infd in an attempt
613 nbytes = read(STDIN_FILENO, ibuf, ZLOGIN_RDBUFSIZ);
617 if (nbytes == -1) /* The read was interrupted. */
620 /* 0 read means EOF, close the pipe to the child */
653 * draining the other pipe. We can try to read some of
655 * application can continue to make progress. The read
666 if ((ln = read(infd, obuf, ZLOGIN_BUFSIZ)) > 0)
690 * zone that it is talking to. This can happen when we read from zlogin's
693 * the write, it would never read the application's stdout/stderr so the
700 * read from our stdin. If the pipe already is pretty full, we bypass the read
703 * ready to read on STDIN_FILENO. We return -1 if there is a problem, 1 if
705 * read/written any data into the pipe on this iteration).
730 cc = read(STDIN_FILENO, ibuf, ZLOGIN_RDBUFSIZ);
734 if (cc == -1) /* The read was interrupted. */
737 /* 0 read means EOF, close the pipe to the child */
754 * has exited) so we loop to make sure we have written all of the data we read.
763 cc = read(in_fd, ibuf, ZLOGIN_BUFSIZ);
768 if (cc == -1) /* The read was interrupted. */
815 /* read from stdout of zone and write to stdout of global zone */
819 /* read from stderr of zone and write to stderr of global zone */
823 /* read from stdin of global zone and write to stdin of zone */
827 /* read from signalling pipe so we know when child dies */
955 if ((cc = read(stdout_fd, ibuf, ZLOGIN_BUFSIZ)) > 0) {
962 if ((cc = read(stderr_fd, ibuf, ZLOGIN_BUFSIZ)) > 0) {
2170 * spawned process does a write/read it maps to the slave