Searched refs:STDOUT_FILENO (Results 176 - 200 of 257) sorted by path

1234567891011

/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dlpd.c409 dup2(s, STDOUT_FILENO);
486 if ((n = read(STDOUT_FILENO, cp, 1)) != 1) {
H A Dprintjob.c170 (void) write(STDOUT_FILENO, "", 1); /* ack that daemon is started */
683 dup2(p[1], STDOUT_FILENO); /* pipe is stdout */
822 dup2(fo, STDOUT_FILENO);
1417 dup2(outfd, STDOUT_FILENO);
1579 dup2(p[1], STDOUT_FILENO);
1620 (void) close(STDOUT_FILENO);
1814 dup2(pp->remote ? tfd : pfd, STDOUT_FILENO);
H A Drecvjob.c69 #define ack() (void) write(STDOUT_FILENO, sp, (size_t)1);
163 size = read(STDOUT_FILENO, cp, (size_t)1);
207 (void) write(STDOUT_FILENO, "\2", (size_t)1);
236 (void) write(STDOUT_FILENO, "\2", (size_t)1);
277 j = read(STDOUT_FILENO, cp, amt);
312 if (read(STDOUT_FILENO, &resp, (size_t)1) != 1) {
/freebsd-11-stable/usr.sbin/nghook/
H A Dmain.c67 static int outfd = STDOUT_FILENO;
117 infd = STDOUT_FILENO;
/freebsd-11-stable/usr.sbin/ofwdump/
H A Dofwdump.c168 write(STDOUT_FILENO, pbuf, len);
/freebsd-11-stable/usr.sbin/ppp/
H A Dchap.c309 dup2(out[1], STDOUT_FILENO);
H A Dchat.c746 dup2(STDIN_FILENO, STDOUT_FILENO);
H A Dcommand.c669 dup2(fd, STDOUT_FILENO);
H A Dexec.c335 dup2(fids[1], STDOUT_FILENO);
393 dev->fd_out = dup(STDOUT_FILENO);
H A Dmain.c317 * We open 3 descriptors to ensure that STDIN_FILENO, STDOUT_FILENO and
509 close(STDOUT_FILENO);
516 * -direct - STDIN_FILENO gets used by physical_Open. STDOUT_FILENO
H A Dphysical.c1019 close(STDOUT_FILENO);
H A Dprompt.c335 p->fd_out = STDOUT_FILENO;
/freebsd-11-stable/usr.sbin/pppctl/
H A Dpppctl.c154 write(STDOUT_FILENO, Buffer, last-Buffer);
169 write(STDOUT_FILENO, Buffer, strlen(Buffer));
187 write(STDOUT_FILENO, Buffer, flush);
194 write(STDOUT_FILENO, Buffer, len);
227 write(STDOUT_FILENO, buf, len);
654 write(STDOUT_FILENO, Buffer, strlen(Buffer));
664 write(STDOUT_FILENO, "quit\n", 5);
/freebsd-11-stable/usr.sbin/rmt/
H A Drmt.c159 (void)write(STDOUT_FILENO, resp, strlen(resp));
160 (void)write(STDOUT_FILENO, record, rval);
185 (void)write(STDOUT_FILENO, resp, strlen(resp));
186 (void)write(STDOUT_FILENO, (char *)&mtget, rval);
203 (void)write(STDOUT_FILENO, resp, strlen(resp));
251 (void)write(STDOUT_FILENO, resp, strlen(resp));
/freebsd-11-stable/usr.sbin/vidcontrol/
H A Dvidcontrol.c1265 write(STDOUT_FILENO, shot.buf,
/freebsd-11-stable/bin/dd/
H A Ddd.c153 out.fd = STDOUT_FILENO;
/freebsd-11-stable/bin/echo/
H A Decho.c135 if (writev(STDOUT_FILENO, iov, nwrite) == -1)
/freebsd-11-stable/bin/ps/
H A Dps.c197 else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs/
H A Dzfs_main.c3927 if (!flags.dryrun && isatty(STDOUT_FILENO)) {
3935 return (zfs_send_resume(g_zfs, &flags, STDOUT_FILENO,
3971 err = zfs_send_one(zhp, fromname, STDOUT_FILENO, flags);
4018 err = zfs_send(zhp, fromname, toname, &flags, STDOUT_FILENO, NULL, 0,
4027 (void) dup2(STDERR_FILENO, STDOUT_FILENO);
7092 err = zfs_show_diffs(zhp, STDOUT_FILENO, fromsnap, tosnap, flags);
/freebsd-11-stable/contrib/apr/
H A Dconfigure21077 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
21318 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
/freebsd-11-stable/contrib/apr/threadproc/unix/
H A Dproc.c437 close(STDOUT_FILENO);
440 attr->child_out->filedes != STDOUT_FILENO) {
441 dup2(attr->child_out->filedes, STDOUT_FILENO);
/freebsd-11-stable/contrib/file/src/
H A Dcompress.c848 pipe(fdp[STDOUT_FILENO]) == -1 || pipe(fdp[STDERR_FILENO]) == -1) {
850 closep(fdp[STDOUT_FILENO]);
880 if (copydesc(STDOUT_FILENO, fdp[STDOUT_FILENO][1]))
881 (void) close(fdp[STDOUT_FILENO][1]);
882 if (fdp[STDOUT_FILENO][0] > 2)
883 (void) close(fdp[STDOUT_FILENO][0]);
914 r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0);
916 DPRINTF("Read stdout failed %d (%s)\n", fdp[STDOUT_FILENO][0],
940 closefd(fdp[STDOUT_FILENO],
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtilFuchsia.cpp444 int FdOut = STDOUT_FILENO;
459 if (FdOut != STDOUT_FILENO)
483 .target_fd = STDOUT_FILENO,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.cpp281 posix_spawn_file_actions_adddup2(&acts, slave_fd, STDOUT_FILENO) ||
H A Dsanitizer_posix_libcdep.cpp460 internal_close(STDOUT_FILENO);
461 internal_dup2(stdout_fd, STDOUT_FILENO);

Completed in 465 milliseconds

1234567891011