Symbol: STDOUT_FILENO
bin/cat/cat.c
201
if (fcntl(STDOUT_FILENO, F_SETLKW, &stdout_lock) != 0)
bin/dd/dd.c
167
out.fd = STDOUT_FILENO;
bin/dd/dd.c
216
if (in.fd != STDOUT_FILENO && out.fd != STDOUT_FILENO) {
bin/echo/echo.c
105
if (writev(STDOUT_FILENO, iov, nwrite) == -1)
bin/ls/ls.c
188
(isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE")));
bin/ls/ls.c
247
if (isatty(STDOUT_FILENO)) {
bin/ls/ls.c
251
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) != -1 &&
bin/ls/print.c
543
(void)write(STDOUT_FILENO, &tmp, 1);
bin/pax/ar_io.c
121
arfd = STDOUT_FILENO;
bin/pax/ar_io.c
1258
dup2(fd, STDOUT_FILENO);
bin/pax/ar_io.c
1261
dup2(fds[1], STDOUT_FILENO);
bin/pax/ar_io.c
132
arfd = STDOUT_FILENO;
bin/ps/ps.c
208
else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
bin/stty/util.c
52
if (isatty(STDOUT_FILENO) && isatty(STDERR_FILENO) &&
bin/stty/util.c
53
!fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) &&
crypto/heimdal/appl/ftp/ftpd/popen.c
171
if (pdes[1] != STDOUT_FILENO) {
crypto/heimdal/appl/ftp/ftpd/popen.c
172
dup2(pdes[1], STDOUT_FILENO);
crypto/heimdal/appl/ftp/ftpd/popen.c
176
dup2(STDOUT_FILENO, STDERR_FILENO);
crypto/heimdal/appl/rcp/rcp.c
114
remout = STDOUT_FILENO;
crypto/heimdal/appl/rsh/rsh.c
124
net_write (STDOUT_FILENO, buf, ret);
crypto/heimdal/appl/rsh/rsh.c
561
write (STDOUT_FILENO, buf, ret);
crypto/heimdal/appl/rsh/rsh.c
562
write (STDOUT_FILENO,"\n",1);
crypto/heimdal/appl/rsh/rshd.c
499
fatal (STDOUT_FILENO, "socketpair", "Pipe creation failed.");
crypto/heimdal/appl/rsh/rshd.c
516
fatal (STDOUT_FILENO, "fork", "Could not create child process.");
crypto/heimdal/appl/rsh/rshd.c
522
dup2 (p1[1], STDOUT_FILENO);
crypto/heimdal/appl/rsh/rshd.c
532
if (net_write (STDOUT_FILENO, "", 1) != 1)
crypto/heimdal/appl/rsh/rshd.c
533
fatal (STDOUT_FILENO, "net_write", "Write failure.");
crypto/heimdal/appl/rsh/rshd.c
536
STDOUT_FILENO, p1[0],
crypto/heimdal/appl/rsh/rshd.c
782
if (dup2 (STDOUT_FILENO, STDERR_FILENO) < 0)
crypto/heimdal/kadmin/kadm_conn.c
160
dup2(s, STDOUT_FILENO);
crypto/heimdal/kadmin/kadm_conn.c
161
if(s != STDIN_FILENO && s != STDOUT_FILENO)
crypto/heimdal/kdc/hprop.c
260
pd.sock = STDOUT_FILENO;
crypto/heimdal/lib/roken/daemon.c
72
dup2(fd, STDOUT_FILENO);
crypto/heimdal/lib/roken/mini_inetd.c
64
dup2(fd, STDOUT_FILENO);
crypto/heimdal/lib/roken/rkpty.c
361
dup2(slave, STDOUT_FILENO);
crypto/heimdal/lib/roken/roken-common.h
73
#ifndef STDOUT_FILENO
crypto/heimdal/lib/roken/simple_exec.c
188
if(out_fd[1] != STDOUT_FILENO) {
crypto/heimdal/lib/roken/simple_exec.c
189
dup2(out_fd[1], STDOUT_FILENO);
crypto/krb5/src/kprop/kpropd.c
310
dup2(devnull, STDOUT_FILENO);
crypto/krb5/src/lib/krad/t_daemon.h
69
dup2(fds[1], STDOUT_FILENO);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
118
int ofd = STDOUT_FILENO; /* Standard output fd. */
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
207
if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
410
if (ofd == STDOUT_FILENO) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
420
if (ofd != STDOUT_FILENO) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
477
if (ofd != STDOUT_FILENO) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
514
if (ofd == STDOUT_FILENO)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
523
if (ofd != STDOUT_FILENO) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
558
if (ofd == STDOUT_FILENO) {
crypto/openssh/defines.h
146
#ifndef STDOUT_FILENO
crypto/openssh/misc.c
2739
(do_stdout && dup2(devnull, STDOUT_FILENO) == -1) ||
crypto/openssh/misc.c
2866
if (fd != -1 && dup2(fd, STDOUT_FILENO) == -1) {
crypto/openssh/mux.c
1945
mm_send_fd(fd, STDOUT_FILENO) == -1 ||
crypto/openssh/mux.c
2147
mm_send_fd(fd, STDOUT_FILENO) == -1)
crypto/openssh/openbsd-compat/daemon.c
73
(void)dup2(fd, STDOUT_FILENO);
crypto/openssh/progressmeter.c
233
atomicio(vwrite, STDOUT_FILENO, obuf, strlen(obuf));
crypto/openssh/progressmeter.c
278
atomicio(vwrite, STDOUT_FILENO, "\n", 1);
crypto/openssh/progressmeter.c
292
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize) != -1 &&
crypto/openssh/progressmeter.c
81
return (getpgrp() == tcgetpgrp(STDOUT_FILENO));
crypto/openssh/readpass.c
76
if (dup2(p[1], STDOUT_FILENO) == -1)
crypto/openssh/regress/modpipe.c
130
r = write(STDOUT_FILENO, buf, s - o);
crypto/openssh/regress/netcat.c
1042
pfd.fd = STDOUT_FILENO;
crypto/openssh/regress/netcat.c
1045
r = sendmsg(STDOUT_FILENO, &msg, 0);
crypto/openssh/regress/netcat.c
786
int stdout_fd = STDOUT_FILENO;
crypto/openssh/sandbox-capsicum.c
92
if (cap_rights_limit(STDOUT_FILENO, &rights) < 0 && errno != ENOSYS)
crypto/openssh/scp.c
321
dup2(pout[1], STDOUT_FILENO) == -1) {
crypto/openssh/scp.c
331
dup2(sv[0], STDOUT_FILENO) == -1) {
crypto/openssh/scp.c
655
if (!isatty(STDOUT_FILENO))
crypto/openssh/scp.c
669
remout = STDOUT_FILENO;
crypto/openssh/sftp-server.c
2017
out = STDOUT_FILENO;
crypto/openssh/sftp.c
2388
(dup2(c_out, STDOUT_FILENO) == -1)) {
crypto/openssh/ssh-keysign.c
307
if (ssh_msg_send(STDOUT_FILENO, version, b) == -1)
crypto/openssh/ssh-pkcs11-client.c
596
(dup2(pair[1], STDOUT_FILENO) == -1)) {
crypto/openssh/ssh-pkcs11-helper.c
376
out = STDOUT_FILENO;
crypto/openssh/ssh-sk-client.c
88
(dup2(pair[1], STDOUT_FILENO) == -1)) {
crypto/openssh/ssh-sk-helper.c
307
if ((in = dup(STDIN_FILENO)) == -1 || (out = dup(STDOUT_FILENO)) == -1)
crypto/openssh/ssh-sk-helper.c
310
close(STDOUT_FILENO);
crypto/openssh/ssh.c
2056
(out = dup(STDOUT_FILENO)) == -1)
crypto/openssh/ssh.c
2253
out = dup(STDOUT_FILENO);
crypto/openssh/sshconnect.c
566
(out = dup(STDOUT_FILENO)) == -1) {
crypto/openssh/sshconnect2.c
2049
if (dup2(from[1], STDOUT_FILENO) == -1)
crypto/openssh/sshd-auth.c
646
sock_out = dup(STDOUT_FILENO);
crypto/openssh/sshd-session.c
1174
sock_out = dup(STDOUT_FILENO);
crypto/openssh/sshd-session.c
400
if (ssh_packet_get_connection_out(ssh) != STDOUT_FILENO &&
crypto/openssh/sshd-session.c
402
STDOUT_FILENO) == -1)
crypto/openssh/sshd.c
1959
if (dup2(STDIN_FILENO, STDOUT_FILENO) == -1)
crypto/openssh/sshd.c
1961
if (newsock > STDOUT_FILENO)
crypto/openssl/crypto/bio/bss_file.c
245
if (fd == STDIN_FILENO || fd == STDOUT_FILENO) {
lib/libc/db/test/dbtest.c
160
if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
lib/libc/db/test/dbtest.c
357
if (ofd == STDOUT_FILENO)
lib/libc/db/test/dbtest.c
365
if (ofd != STDOUT_FILENO)
lib/libc/db/test/dbtest.c
422
if (ofd != STDOUT_FILENO)
lib/libc/db/test/dbtest.c
458
if (ofd == STDOUT_FILENO)
lib/libc/db/test/dbtest.c
466
if (ofd != STDOUT_FILENO)
lib/libc/db/test/dbtest.c
498
if (ofd == STDOUT_FILENO)
lib/libc/db/test/dbtest.c
69
int ofd = STDOUT_FILENO; /* Standard output fd. */
lib/libc/gen/daemon.c
85
(void)_dup2(nullfd, STDOUT_FILENO);
lib/libc/gen/popen.c
139
if (pdes[1] != STDOUT_FILENO) {
lib/libc/gen/popen.c
140
(void)_dup2(pdes[1], STDOUT_FILENO);
lib/libc/gen/popen.c
142
(void)_dup2(STDOUT_FILENO, STDIN_FILENO);
lib/libc/gen/tls.c
47
#define tls_msg(s) write(STDOUT_FILENO, s, strlen(s))
lib/libc/gen/wordexp.c
171
if ((pdes[1] != STDOUT_FILENO ?
lib/libc/gen/wordexp.c
172
_dup2(pdes[1], STDOUT_FILENO) :
lib/libc/stdio/findfp.c
69
std(__SWR, STDOUT_FILENO),
lib/libc/tests/resolv/resolv_test.c
71
dprintf(STDOUT_FILENO, __VA_ARGS__); \
lib/libc/tests/stdlib/libc_exit_test.c
19
if (write(STDOUT_FILENO, "a", 1) != 1)
lib/libc/tests/stdlib/libc_exit_test.c
26
if (write(STDOUT_FILENO, "b", 1) != 1)
lib/libc/tests/stdlib/libc_exit_test.c
33
if (write(STDOUT_FILENO, "c", 1) != 1)
lib/libc/tests/stdlib/libc_exit_test.c
64
if (dup2(p[1], STDOUT_FILENO) < 0)
lib/libc/tests/stdtime/detect_tz_changes_test.c
237
dup2(opd[1], STDOUT_FILENO);
lib/libcapsicum/capsicum_helpers.h
118
return (caph_limit_stream(STDOUT_FILENO, CAPH_WRITE));
lib/libcapsicum/capsicum_helpers.h
127
caph_limit_stream(STDOUT_FILENO, CAPH_WRITE | iebadf) == -1 ||
lib/libcasper/libcasper/service.c
376
if (dup2(fd, STDOUT_FILENO) == -1)
lib/libdpv/dpv.c
115
int dialog_out = STDOUT_FILENO;
lib/libpam/modules/pam_exec/pam_exec.c
321
} else if (dup2(chout[1], STDOUT_FILENO) != STDOUT_FILENO ||
lib/libpam/modules/pam_ssh/pam_ssh.c
301
dup2(agent_pipe[1], STDOUT_FILENO);
lib/libthr/thread/thr_private.h
97
#define stdout_debug(args...) _thread_printf(STDOUT_FILENO, ##args)
libexec/atrun/atrun.c
266
close(STDOUT_FILENO);
libexec/atrun/atrun.c
288
if (dup(fd_out) != STDOUT_FILENO)
libexec/fingerd/fingerd.c
191
if (p[1] != STDOUT_FILENO) {
libexec/fingerd/fingerd.c
192
(void)dup2(p[1], STDOUT_FILENO);
libexec/fingerd/fingerd.c
195
dup2(STDOUT_FILENO, STDERR_FILENO);
libexec/fingerd/fingerd.c
99
if (setsockopt(STDOUT_FILENO, IPPROTO_TCP, TCP_NOPUSH, &one,
libexec/flua/lfbsd/lfbsd.c
132
STDOUT_FILENO);
libexec/flua/lfbsd/lfbsd.c
134
if (stdout_pipe[0] != STDOUT_FILENO) {
libexec/getty/chat.c
404
if (write(STDOUT_FILENO, &ch, 1) != 1)
libexec/getty/main.c
677
write(STDOUT_FILENO, &c, 1);
libexec/getty/main.c
684
write(STDOUT_FILENO, outbuf, obufcnt);
libexec/pppoed/pppoed.c
439
dup2(ds, STDOUT_FILENO);
libexec/rtld-elf/rtld.c
6652
rtld_fdprintf(STDOUT_FILENO, "%s:\t", fmt->name);
libexec/rtld-elf/rtld.c
6654
rtld_fdprintfx(STDOUT_FILENO, fmt->fmt,
libexec/rtld-elf/rtld.c
6657
rtld_fdprintfx(STDOUT_FILENO, fmt->fmt,
libexec/rtld-elf/rtld.c
6660
rtld_fdprintf(STDOUT_FILENO, "\n");
libexec/rtld-elf/rtld_printf.h
44
#define rtld_printf(...) rtld_fdprintf(STDOUT_FILENO, __VA_ARGS__)
libexec/rtld-elf/rtld_printf.h
45
#define rtld_putstr(str) rtld_fdputstr(STDOUT_FILENO, (str))
libexec/rtld-elf/rtld_printf.h
46
#define rtld_putchar(c) rtld_fdputchar(STDOUT_FILENO, (c))
libexec/tftpd/tests/functional.c
392
ATF_REQUIRE_EQ(STDOUT_FILENO, dup2(server_s, STDOUT_FILENO));
libexec/tftpd/tftpd.c
391
close(STDOUT_FILENO);
sbin/bectl/bectl.c
296
if (isatty(STDOUT_FILENO)) {
sbin/bectl/bectl.c
301
be_export(be, bootenv, STDOUT_FILENO);
sbin/camcontrol/camcontrol.c
7920
(amt_written = write(STDOUT_FILENO, buf_ptr,
sbin/camcontrol/progress.c
204
return (int)write(STDOUT_FILENO, buf, len);
sbin/camcontrol/progress.c
74
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize) != -1 &&
sbin/dhclient/dhclient.c
2517
if (caph_rights_limit(STDOUT_FILENO, &rights) < 0)
sbin/dhclient/dhclient.c
2865
dup2(nullfd, STDOUT_FILENO);
sbin/dump/tape.c
599
tapefd = STDOUT_FILENO;
sbin/hastd/hastd.c
1222
closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO), STDERR_FILENO) + 1);
sbin/hastd/hastd.c
203
if (fd == STDIN_FILENO || fd == STDOUT_FILENO ||
sbin/hastd/hastd.c
209
(fd == STDOUT_FILENO ? "stdout" : "stderr")));
sbin/hastd/hooks.c
121
if (fd != STDOUT_FILENO && dup2(fd, STDOUT_FILENO) == -1) {
sbin/hastd/hooks.c
129
if (fd != STDOUT_FILENO && fd != STDERR_FILENO)
sbin/hastd/hooks.c
95
closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO),
sbin/init/init.c
605
dup2(STDIN_FILENO, STDOUT_FILENO);
sbin/init/init.c
606
else if (fd != STDOUT_FILENO) {
sbin/init/init.c
607
dup2(fd, STDOUT_FILENO);
sbin/init/init.c
610
dup2(STDOUT_FILENO, STDERR_FILENO);
sbin/mdmfs/mdmfs.c
781
if (dup2(pfd[1], STDOUT_FILENO) < 0)
sbin/mdmfs/mdmfs.c
790
if (dup2(nfd, STDOUT_FILENO) < 0)
sbin/nvmecontrol/logpage.c
176
write(STDOUT_FILENO, data, length);
sbin/nvmecontrol/passthru.c
249
write(STDOUT_FILENO, data, opt.data_len);
sbin/pfctl/tests/pfctl_test.c
116
posix_spawn_file_actions_adddup2(&action, pipefds[0], STDOUT_FILENO);
sbin/pfctl/tests/pfctl_test.c
147
posix_spawn_file_actions_addopen(&action, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);
sbin/ping/ping.c
1081
(void)write(STDOUT_FILENO, &DOT[DOTidx++ % DOTlen], 1);
sbin/ping/ping.c
1204
(void)write(STDOUT_FILENO, &BSPACE, 1);
sbin/ping/ping.c
1214
(void)write(STDOUT_FILENO, &BBELL, 1);
sbin/ping/ping.c
986
(void)write(STDOUT_FILENO, &BBELL, 1);
sbin/ping/ping6.c
1241
(void)write(STDOUT_FILENO, &BBELL, 1);
sbin/ping/ping6.c
1418
(void)write(STDOUT_FILENO, &DOT[DOTidx++ % DOTlen], 1);
sbin/ping/ping6.c
1616
(void)write(STDOUT_FILENO, &BSPACE, 1);
sbin/ping/ping6.c
1619
(void)write(STDOUT_FILENO, &BBELL, 1);
sbin/routed/trace.c
194
if (isatty(STDOUT_FILENO))
sbin/routed/trace.c
195
(void)dup2(fd, STDOUT_FILENO);
sbin/routed/trace.c
358
dup2(fileno(ftrace), STDOUT_FILENO);
sbin/swapon/swapon.c
680
if (dup2(pfd[1], STDOUT_FILENO) < 0)
sbin/swapon/swapon.c
687
if (dup2dn && dup2(nfd, STDOUT_FILENO) < 0)
tests/sys/capsicum/capability-fd.cc
186
int cap_fd = dup(STDOUT_FILENO);
tests/sys/capsicum/smoketest.c
32
int cap_fd = dup(STDOUT_FILENO);
tests/sys/kern/tty/readsz.c
108
write(STDOUT_FILENO, buf, ret);
tools/regression/sockets/unix_cmsg/uc_common.c
68
write(STDOUT_FILENO, buf, strlen(buf));
tools/regression/tmpfs/h_tools.c
81
error = write(STDOUT_FILENO, &fh, sizeof(fh));
tools/tools/indent_wrapper/indent_wrapper.c
291
dup2(pdes[1], STDOUT_FILENO);
tools/tools/nvmf/nvmfdd/nvmfdd.c
340
(void)write(STDOUT_FILENO, buf, todo);
usr.bin/biff/biff.c
59
(name = ttyname(STDOUT_FILENO)) == NULL &&
usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
189
fd = STDOUT_FILENO;
usr.bin/chat/chat.c
1052
status = write(STDOUT_FILENO, &ch, 1);
usr.bin/cmp/cmp.c
157
if (caph_limit_stream(STDOUT_FILENO, CAPH_WRITE | CAPH_IGNORE_EBADF))
usr.bin/diff/diff.c
672
return isatty(STDOUT_FILENO);
usr.bin/diff/pr.c
111
if (pr->ostdout != STDOUT_FILENO) {
usr.bin/diff/pr.c
112
dup2(pr->ostdout, STDOUT_FILENO);
usr.bin/diff/pr.c
87
if (pfd[1] == STDOUT_FILENO) {
usr.bin/diff/pr.c
88
pr->ostdout = STDOUT_FILENO;
usr.bin/diff/pr.c
90
if ((pr->ostdout = dup(STDOUT_FILENO)) < 0 ||
usr.bin/diff/pr.c
91
dup2(pfd[1], STDOUT_FILENO) < 0) {
usr.bin/diff3/diff3.c
320
posix_spawn_file_actions_adddup2(&fa, fd[1], STDOUT_FILENO);
usr.bin/grep/grep.c
582
if (isatty(STDOUT_FILENO) && term != NULL &&
usr.bin/gzip/gzip.c
1324
out = STDOUT_FILENO;
usr.bin/gzip/gzip.c
1488
zfd = STDOUT_FILENO;
usr.bin/gzip/gzip.c
1493
if (zfd == STDOUT_FILENO) {
usr.bin/gzip/gzip.c
1496
close(STDOUT_FILENO);
usr.bin/gzip/gzip.c
1629
if (zfd != STDOUT_FILENO && close(zfd) != 0)
usr.bin/gzip/gzip.c
1683
if (zfd != -1 && zfd != STDOUT_FILENO)
usr.bin/gzip/gzip.c
1715
w = write_retry(STDOUT_FILENO, prepend, count);
usr.bin/gzip/gzip.c
1732
if (write_retry(STDOUT_FILENO, buf, rv) != rv) {
usr.bin/gzip/gzip.c
1796
usize = gz_uncompress(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1801
usize = unbzip2(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1819
usize = unpack(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1825
usize = unxz(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1831
usize = unlz(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1837
usize = unzstd(STDIN_FILENO, STDOUT_FILENO,
usr.bin/gzip/gzip.c
1864
if (fflag == 0 && isatty(STDOUT_FILENO)) {
usr.bin/gzip/gzip.c
1889
gz_compress(STDIN_FILENO, STDOUT_FILENO, &gsize, "", mtime);
usr.bin/leave/leave.c
157
if (write(STDOUT_FILENO, MSG2, sizeof(MSG2) - 1) != sizeof(MSG2) - 1)
usr.bin/leave/leave.c
166
if (write(STDOUT_FILENO, MSG3, sizeof(MSG3) - 1) != sizeof(MSG3) - 1)
usr.bin/leave/leave.c
173
if (write(STDOUT_FILENO, MSG4, sizeof(MSG4) - 1) != sizeof(MSG4) - 1)
usr.bin/leave/leave.c
178
(void)write(STDOUT_FILENO, MSG5, sizeof(MSG5) - 1);
usr.bin/leave/leave.c
73
(void)write(STDOUT_FILENO, MSG1, sizeof(MSG1) - 1);
usr.bin/mail/tests/mailx_signal_test.c
67
dup2(opd[1], STDOUT_FILENO);
usr.bin/mesg/mesg.c
65
(tty = ttyname(STDOUT_FILENO)) == NULL &&
usr.bin/ministat/ministat.c
569
if (isatty(STDOUT_FILENO)) {
usr.bin/ministat/ministat.c
574
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &wsz) != -1 &&
usr.bin/ncal/ncal.c
1131
if (isatty(STDOUT_FILENO) && tgetent(tbuf, NULL) == 1) {
usr.bin/ncal/ncal.c
219
flag_highlight = isatty(STDOUT_FILENO);
usr.bin/nohup/nohup.c
111
if (dup2(fd, STDOUT_FILENO) == -1)
usr.bin/nohup/nohup.c
69
if (isatty(STDOUT_FILENO))
usr.bin/nohup/nohup.c
71
if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1)
usr.bin/patch/util.c
68
if (write(STDOUT_FILENO, buf, i) != i)
usr.bin/pr/pr.c
145
isatty(STDOUT_FILENO)) {
usr.bin/procstat/tests/while1.c
34
if (write(STDOUT_FILENO, "started\n", 8) != 8)
usr.bin/script/script.c
380
(void)write(STDOUT_FILENO, obuf, cc);
usr.bin/script/script.c
529
if (tcgetattr(STDOUT_FILENO, &tt) == -1) {
usr.bin/script/script.c
538
(void)tcsetattr(STDOUT_FILENO, TCSANOW, &traw);
usr.bin/script/script.c
545
tcsetattr(STDOUT_FILENO, TCSADRAIN, &tt);
usr.bin/script/script.c
618
(void)write(STDOUT_FILENO, buf, l);
usr.bin/script/script.c
637
(void)write(STDOUT_FILENO, buf, l);
usr.bin/sdiff/sdiff.c
388
if (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO)
usr.bin/sed/process.c
597
else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
usr.bin/tabs/tabs.c
228
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
usr.bin/tail/extern.h
34
res = write(STDOUT_FILENO, p, size); \
usr.bin/talk/display.c
178
write(STDOUT_FILENO, wc, sizeof(*wc));
usr.bin/talk/io.c
93
write(STDOUT_FILENO, "\007\007\007", 3);
usr.bin/tcopy/tcopy.cc
463
fd = STDOUT_FILENO;
usr.bin/tee/tee.c
140
if (fd == STDOUT_FILENO) {
usr.bin/tee/tee.c
90
add(STDOUT_FILENO, "stdout");
usr.bin/tip/tip/tipout.c
162
write(STDOUT_FILENO, buf, cnt);
usr.bin/top/screen.c
174
if (tcgetattr(STDOUT_FILENO, &old_settings) == -1)
usr.bin/top/screen.c
184
if (tcgetattr(STDOUT_FILENO, &old_settings) != -1)
usr.bin/top/screen.c
194
tcsetattr(STDOUT_FILENO, TCSADRAIN, &new_settings);
usr.bin/top/screen.c
229
tcsetattr(STDOUT_FILENO, TCSADRAIN, &old_settings);
usr.bin/top/screen.c
239
tcsetattr(STDOUT_FILENO, TCSADRAIN, &new_settings);
usr.bin/w/w.c
374
if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == -1 &&
usr.bin/who/who.c
311
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
usr.bin/write/write.c
101
caph_fcntls_limit(STDOUT_FILENO, CAP_FCNTL_GETFL) < 0 ||
usr.bin/write/write.c
95
caph_rights_limit(STDOUT_FILENO, &rights) < 0 ||
usr.bin/write/write.c
98
caph_ioctls_limit(STDOUT_FILENO, cmds, nitems(cmds)) < 0 ||
usr.bin/yes/yes.c
102
wlen = write(STDOUT_FILENO, pos, end - pos);
usr.sbin/acpi/acpidump/acpi.c
2943
close(STDOUT_FILENO);
usr.sbin/autofs/popen.c
118
dup2(outfds[1], STDOUT_FILENO);
usr.sbin/bhyve/slirp/slirp-helper.c
494
if (dup2(fd, STDOUT_FILENO) == -1)
usr.sbin/bhyve/snapshot.c
535
ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize);
usr.sbin/bhyve/snapshot.c
618
write(STDOUT_FILENO, prog_buf, win_width);
usr.sbin/bhyve/snapshot.c
745
ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize);
usr.sbin/bhyve/uart_backend.c
358
sc->tty.wfd = STDOUT_FILENO;
usr.sbin/bhyveload/bhyveload.c
802
consout_fd = STDOUT_FILENO;
usr.sbin/bluetooth/btpand/btpand.c
258
(void)dup2(fd, STDOUT_FILENO);
usr.sbin/bsdinstall/runconsoles/child.c
316
error = dup2(fd, STDOUT_FILENO);
usr.sbin/camdd/camdd.c
1060
&& (fd != STDOUT_FILENO)) {
usr.sbin/camdd/camdd.c
3279
fd = STDOUT_FILENO;
usr.sbin/ctladm/ctladm.c
1734
file_fd = STDOUT_FILENO;
usr.sbin/daemon/daemon.c
811
.stdmask = STDOUT_FILENO | STDERR_FILENO,
usr.sbin/daemon/daemon.c
890
if (state->stdmask & STDOUT_FILENO) {
usr.sbin/daemon/daemon.c
891
if (dup2(state->pipe_wr, STDOUT_FILENO) == -1) {
usr.sbin/daemon/daemon.c
896
state->pipe_wr != STDOUT_FILENO) {
usr.sbin/dconschat/dconschat.c
638
p->outfd = STDOUT_FILENO;
usr.sbin/efidp/efidp.c
230
write(STDOUT_FILENO, dp, dplen);
usr.sbin/fwcontrol/fwdv.c
105
fd = STDOUT_FILENO;
usr.sbin/fwcontrol/fwdv.c
245
if (fd != STDOUT_FILENO)
usr.sbin/fwcontrol/fwmpegts.c
163
fd = STDOUT_FILENO;
usr.sbin/fwcontrol/fwmpegts.c
268
if (fd != STDOUT_FILENO)
usr.sbin/lpr/lpd/lpd.c
413
dup2(s, STDOUT_FILENO);
usr.sbin/lpr/lpd/lpd.c
490
if ((n = read(STDOUT_FILENO, cp, 1)) != 1) {
usr.sbin/lpr/lpd/printjob.c
1405
dup2(outfd, STDOUT_FILENO);
usr.sbin/lpr/lpd/printjob.c
1567
dup2(p[1], STDOUT_FILENO);
usr.sbin/lpr/lpd/printjob.c
158
(void) write(STDOUT_FILENO, "", 1); /* ack that daemon is started */
usr.sbin/lpr/lpd/printjob.c
1608
(void) close(STDOUT_FILENO);
usr.sbin/lpr/lpd/printjob.c
1802
dup2(pp->remote ? tfd : pfd, STDOUT_FILENO);
usr.sbin/lpr/lpd/printjob.c
671
dup2(p[1], STDOUT_FILENO); /* pipe is stdout */
usr.sbin/lpr/lpd/printjob.c
810
dup2(fo, STDOUT_FILENO);
usr.sbin/lpr/lpd/recvjob.c
172
rlen = read(STDOUT_FILENO, cp, 1);
usr.sbin/lpr/lpd/recvjob.c
332
rlen = read(STDOUT_FILENO, buf, MIN(SPL_BUFSIZ, size));
usr.sbin/lpr/lpd/recvjob.c
369
if (read(STDOUT_FILENO, &resp, 1) != 1) {
usr.sbin/lpr/lpd/recvjob.c
471
if (write(STDOUT_FILENO, "\0", 1) != 1)
usr.sbin/lpr/lpd/recvjob.c
478
if (write(STDOUT_FILENO, "\2", 1) != 1)
usr.sbin/nghook/main.c
115
infd = STDOUT_FILENO;
usr.sbin/nghook/main.c
65
static int outfd = STDOUT_FILENO;
usr.sbin/ofwdump/ofwdump.c
167
write(STDOUT_FILENO, pbuf, len);
usr.sbin/ppp/chap.c
307
dup2(out[1], STDOUT_FILENO);
usr.sbin/ppp/chat.c
744
dup2(STDIN_FILENO, STDOUT_FILENO);
usr.sbin/ppp/command.c
667
dup2(fd, STDOUT_FILENO);
usr.sbin/ppp/exec.c
333
dup2(fids[1], STDOUT_FILENO);
usr.sbin/ppp/exec.c
391
dev->fd_out = dup(STDOUT_FILENO);
usr.sbin/ppp/main.c
507
close(STDOUT_FILENO);
usr.sbin/ppp/physical.c
1003
close(STDOUT_FILENO);
usr.sbin/ppp/prompt.c
333
p->fd_out = STDOUT_FILENO;
usr.sbin/pppctl/pppctl.c
152
write(STDOUT_FILENO, Buffer, last-Buffer);
usr.sbin/pppctl/pppctl.c
167
write(STDOUT_FILENO, Buffer, strlen(Buffer));
usr.sbin/pppctl/pppctl.c
185
write(STDOUT_FILENO, Buffer, flush);
usr.sbin/pppctl/pppctl.c
193
write(STDOUT_FILENO, Buffer, len);
usr.sbin/pppctl/pppctl.c
226
write(STDOUT_FILENO, buf, len);
usr.sbin/pppctl/pppctl.c
653
write(STDOUT_FILENO, Buffer, strlen(Buffer));
usr.sbin/pppctl/pppctl.c
663
write(STDOUT_FILENO, "quit\n", 5);
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
686
dprintf(STDOUT_FILENO,
usr.sbin/prometheus_sysctl_exporter/prometheus_sysctl_exporter.c
694
write(STDOUT_FILENO, http_buf, http_buflen);
usr.sbin/pw/pw_user.c
528
if (isatty(STDOUT_FILENO))
usr.sbin/rmt/rmt.c
147
(void)write(STDOUT_FILENO, resp, strlen(resp));
usr.sbin/rmt/rmt.c
148
(void)write(STDOUT_FILENO, record, rval);
usr.sbin/rmt/rmt.c
173
(void)write(STDOUT_FILENO, resp, strlen(resp));
usr.sbin/rmt/rmt.c
174
(void)write(STDOUT_FILENO, (char *)&mtget, rval);
usr.sbin/rmt/rmt.c
191
(void)write(STDOUT_FILENO, resp, strlen(resp));
usr.sbin/rmt/rmt.c
239
(void)write(STDOUT_FILENO, resp, strlen(resp));
usr.sbin/syslogd/syslogd.c
3406
(void)dup2(nulldesc, STDOUT_FILENO);
usr.sbin/syslogd/syslogd.c
3743
dup2(nulldesc, STDOUT_FILENO);
usr.sbin/vidcontrol/vidcontrol.c
1297
write(STDOUT_FILENO, shot.buf,