Symbol: STDERR_FILENO
bin/dd/dd.c
347
fd != STDERR_FILENO)
bin/dd/dd.c
612
(void)write(STDERR_FILENO, ".", 1);
bin/dd/misc.c
100
(void)write(STDERR_FILENO, "\n", 1);
bin/dd/misc.c
112
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/dd/misc.c
117
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/dd/misc.c
123
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/dd/misc.c
129
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/dd/misc.c
137
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/dd/misc.c
175
(void)write(STDERR_FILENO, wbuf, cnt);
bin/dd/misc.c
181
(void)write(STDERR_FILENO, wbuf, cnt);
bin/dd/misc.c
76
(void)write(STDERR_FILENO, "\n", 1);
bin/pax/ar_io.c
1666
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/pax/ar_io.c
1674
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/pax/ar_io.c
1694
(void)write(STDERR_FILENO, buf, strlen(buf));
bin/ps/ps.c
219
ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
bin/rcp/rcp.c
539
(void)write(STDERR_FILENO,
bin/rcp/rcp.c
771
(void)write(STDERR_FILENO, rbuf, (size_t)(cp - rbuf));
dist/pf/sbin/pflogd/pflogd.c
633
closefrom(STDERR_FILENO + 1);
distrib/utils/zcat/zcat.c
42
write(STDERR_FILENO, buf, l);
distrib/utils/zcat/zcat.c
46
write(STDERR_FILENO, buf, l);
lib/libbsdmalloc/malloc.c
170
(void)writev(STDERR_FILENO, iov, 3);
lib/libc/db/hash/hash_page.c
725
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/db/hash/hash_page.c
739
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/db/hash/hash_page.c
764
(void)write(STDERR_FILENO, OVMSG,
lib/libc/db/hash/hash_page.c
811
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/gen/assert.c
135
(void)write(STDERR_FILENO, ebuf, (size_t)l);
lib/libc/gen/assert.c
71
(void)write(STDERR_FILENO, buf, (size_t)l);
lib/libc/gen/daemon.c
74
(void)dup2(fd, STDERR_FILENO);
lib/libc/gen/daemon.c
75
if (fd > STDERR_FILENO)
lib/libc/gen/disklabel.c
231
(void)write(STDERR_FILENO, "disktab: ", 9);
lib/libc/gen/disklabel.c
232
(void)write(STDERR_FILENO, _PATH_DISKTAB, sizeof(_PATH_DISKTAB) - 1);
lib/libc/gen/disklabel.c
233
(void)write(STDERR_FILENO, ": ", 2);
lib/libc/gen/disklabel.c
235
(void)write(STDERR_FILENO, p, strlen(p));
lib/libc/gen/disklabel.c
236
(void)write(STDERR_FILENO, "\n", 1);
lib/libc/gen/execvp.c
109
(void)write(STDERR_FILENO, "execvp: ", 8);
lib/libc/gen/execvp.c
110
(void)write(STDERR_FILENO, p, lp);
lib/libc/gen/execvp.c
111
(void)write(STDERR_FILENO, ": path too long\n", 16);
lib/libc/gen/getpass.c
113
fd[1] = fd[2] = STDERR_FILENO;
lib/libc/gen/isctype.c
65
(void)write(STDERR_FILENO, buf, strlen(buf));
lib/libc/gen/posix_spawnp.c
109
(void)write(STDERR_FILENO, "posix_spawnp: ", 14);
lib/libc/gen/posix_spawnp.c
110
(void)write(STDERR_FILENO, p, lp);
lib/libc/gen/posix_spawnp.c
111
(void)write(STDERR_FILENO, ": path too long\n", 16);
lib/libc/gen/psignal.c
78
(void)writev(STDERR_FILENO, iov, (int)((v - iov) + 1));
lib/libc/gen/setjmperr.c
55
(void)write(STDERR_FILENO, ERRMSG, sizeof(ERRMSG) - 1);
lib/libc/gen/wordexp.c
144
if (dup2(devnull, STDERR_FILENO) < 0)
lib/libc/gen/xsyslog.c
317
(void)writev(STDERR_FILENO, piov, piovcnt);
lib/libc/net/rcmd.c
346
(void)write(STDERR_FILENO, &c, 1);
lib/libc/resolv/herror.c
120
(void)writev(STDERR_FILENO, iov, (int)((v - iov) + 1));
lib/libc/stdio/findfp.c
100
std(__SWR|__SNBF, STDERR_FILENO) /* stderr */
lib/libc/stdlib/jemalloc.c
937
write(STDERR_FILENO, p1, strlen(p1));
lib/libc/stdlib/jemalloc.c
938
write(STDERR_FILENO, p2, strlen(p2));
lib/libc/stdlib/jemalloc.c
939
write(STDERR_FILENO, p3, strlen(p3));
lib/libc/stdlib/jemalloc.c
940
write(STDERR_FILENO, p4, strlen(p4));
lib/libc/stdlib/malloc.c
320
write(STDERR_FILENO, p1, strlen(p1));
lib/libc/stdlib/malloc.c
321
write(STDERR_FILENO, p2, strlen(p2));
lib/libc/stdlib/malloc.c
322
write(STDERR_FILENO, p3, strlen(p3));
lib/libc/stdlib/malloc.c
323
write(STDERR_FILENO, p4, strlen(p4));
lib/libc/tls/tls.c
106
write(STDERR_FILENO, msg, sizeof(msg));
lib/libpam/modules/pam_ssh/pam_ssh.c
327
(void)dup2(agent_pipe[1], STDERR_FILENO);
lib/libpthread/pthread.c
1157
_sys_write(STDERR_FILENO, buf, (size_t)len);
lib/libpthread/pthread.c
1193
_sys_write(STDERR_FILENO, buf, len);
lib/libpthread/res_state.c
136
(void)write(STDERR_FILENO, res, sizeof(res) - 1);
lib/libpuffs/puffs.c
490
dup2(fd, STDERR_FILENO);
lib/libpuffs/puffs.c
491
if (fd > STDERR_FILENO)
lib/librumphijack/hijack.c
539
if (isdup2d(STDERR_FILENO))
lib/librumpuser/rumpuser_daemonize.c
159
dup2(fd, STDERR_FILENO);
lib/librumpuser/rumpuser_daemonize.c
160
if (fd > STDERR_FILENO)
lib/librumpuser/rumpuser_daemonize.c
71
dup2(fd, STDERR_FILENO);
lib/libterminfo/setupterm.c
94
fildes = STDERR_FILENO;
lib/libutil/login_tty.c
60
(void) dup2(fd, STDERR_FILENO);
lib/libutil/login_tty.c
61
if (fd != STDIN_FILENO && fd != STDOUT_FILENO && fd != STDERR_FILENO)
libexec/atrun/atrun.c
289
(void)close(STDERR_FILENO);
libexec/atrun/atrun.c
312
if (dup(fd_out) != STDERR_FILENO)
libexec/ftpd/ftpd.c
606
(void)dup2(fd, STDERR_FILENO);
libexec/ftpd/popen.c
179
(void)close(STDERR_FILENO);
libexec/ftpd/popen.c
181
dup2(stderrfd, STDERR_FILENO);
libexec/httpd/bozohttpd.c
2057
if (httpd->logstderr || isatty(STDERR_FILENO)) {
libexec/httpd/bozohttpd.c
2074
if (httpd->logstderr || isatty(STDERR_FILENO)) {
libexec/httpd/ssl-bozo.c
127
if (httpd->logstderr || isatty(STDERR_FILENO)) {
libexec/httpd/ssl-bozo.c
152
if (httpd->logstderr || isatty(STDERR_FILENO)) {
libexec/httpd/ssl-bozo.c
174
if (httpd->logstderr || isatty(STDERR_FILENO)) {
libexec/ld.elf_so/xmalloc.c
323
write(STDERR_FILENO, __progname, strlen(__progname));
libexec/ld.elf_so/xmalloc.c
324
write(STDERR_FILENO, err_str, strlen(err_str));
libexec/makewhatis/makewhatis.c
832
if (devnull != STDERR_FILENO) {
libexec/makewhatis/makewhatis.c
833
(void)dup2(devnull, STDERR_FILENO);
libexec/rexecd/rexecd.c
168
(void)dup2(STDIN_FILENO, STDERR_FILENO);
libexec/rexecd/rexecd.c
266
(void)write(STDERR_FILENO, "\0", 1);
libexec/rexecd/rexecd.c
281
(void)close(STDERR_FILENO);
libexec/rexecd/rexecd.c
315
if (dup2(pv[1], STDERR_FILENO) < 0) {
libexec/rexecd/rexecd.c
388
(void)write(STDERR_FILENO, buf, len);
libexec/rlogind/rlogind.c
183
fatal(STDERR_FILENO, "Can't get peer name of remote host", 1);
libexec/rlogind/rlogind.c
408
fatal(STDERR_FILENO, _PATH_LOGIN, 1);
libexec/rshd/rshd.c
390
(void)dup2(f, STDERR_FILENO);
libexec/rshd/rshd.c
556
(void)write(STDERR_FILENO, "\0", 1);
libexec/rshd/rshd.c
570
(void)close(STDERR_FILENO);
libexec/rshd/rshd.c
609
(void)dup2(pv[1], STDERR_FILENO);
libexec/rshd/rshd.c
643
(void)fcntl(STDERR_FILENO + 1, F_CLOSEM, 0);
libexec/rshd/rshd.c
645
for (fd = getdtablesize(); fd > STDERR_FILENO; fd--)
libexec/rshd/rshd.c
740
(void)write(STDERR_FILENO, buf, len + rv);
sbin/dump/tape.c
272
write(STDERR_FILENO, msgbuf, strlen(msgbuf));
sbin/fsirand/fsirand.c
222
write(STDERR_FILENO, msgbuf, len);
sbin/mount_nfs/getnfsargs.c
258
(void) close(STDERR_FILENO);
sbin/routed/trace.c
215
if (isatty(STDERR_FILENO))
sbin/routed/trace.c
216
(void)dup2(fd, STDERR_FILENO);
sbin/routed/trace.c
378
dup2(fileno(ftrace), STDERR_FILENO);
sys/arch/atari/stand/tostools/libtos/error.c
47
if (isatty(STDERR_FILENO) && (!*arg0 || !getenv("STDERR")))
sys/arch/atari/stand/tostools/libtos/error.c
48
(void)Fforce(STDERR_FILENO, -1);
sys/arch/atari/stand/tostools/libtos/keywait.c
51
tcgetattr(STDERR_FILENO, &term_attr);
sys/arch/atari/stand/tostools/libtos/keywait.c
56
tcsetattr(STDERR_FILENO, TCSAFLUSH, &term_attr);
sys/arch/atari/stand/tostools/libtos/keywait.c
57
read(STDERR_FILENO, &c, 1);
sys/arch/atari/stand/tostools/libtos/keywait.c
59
tcsetattr(STDERR_FILENO, TCSAFLUSH, &term_attr);
sys/arch/atari/stand/tostools/libtos/xexit.c
40
if (isatty(STDERR_FILENO))
tests/kernel/t_execregs.c
147
if (closefrom(STDERR_FILENO + 1) == -1)
tests/kernel/t_lockf.c
149
write(STDERR_FILENO, pipe_errmsg,
tests/kernel/t_signal_and_sp.c
95
if (closefrom(STDERR_FILENO + 1) == -1)
tests/kernel/t_time_arith.c
66
(void)write(STDERR_FILENO, buf, strlen(buf));
tests/lib/libc/gen/t_closefrom.c
102
ATF_REQUIRE(cur == __arraycount(buf) + STDERR_FILENO);
tests/lib/libc/gen/t_closefrom.c
104
half = STDERR_FILENO + __arraycount(buf) / 2;
tests/lib/libc/gen/t_closefrom.c
54
(void)closefrom(STDERR_FILENO + 1);
tests/lib/libc/gen/t_closefrom.c
61
ATF_REQUIRE(cur1 == STDERR_FILENO + 1);
tests/lib/libc/gen/t_closefrom.c
91
ATF_REQUIRE(closefrom(STDERR_FILENO + 1) == 0);
tests/lib/libc/gen/t_closefrom.c
94
ATF_REQUIRE(cur == STDERR_FILENO);
tests/lib/libc/misc/t_ubsan.c
86
ATF_REQUIRE(dup2(filedes[1], STDERR_FILENO) != -1);
tests/lib/libc/stdlib/h_atexit.c
58
write(STDERR_FILENO, __func__, strlen(__func__)); \
tests/lib/libc/stdlib/h_atexit.c
59
write(STDERR_FILENO, ": ", 2); \
tests/lib/libc/stdlib/h_atexit.c
60
write(STDERR_FILENO, __STRING(expr), \
tests/lib/libc/stdlib/h_atexit.c
62
write(STDERR_FILENO, "\n", 1); \
tests/lib/libc/sys/t_dup.c
176
ATF_REQUIRE_ERRNO(EBADF, dup2(STDERR_FILENO, res.rlim_cur + 1) == -1);
tests/lib/libc/sys/t_dup.c
242
ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO,
tests/lib/libc/sys/t_sigtimedwait.c
48
(void)write(STDERR_FILENO, msg, strlen(msg));
tests/lib/libpthread/h_atexit.c
63
write(STDERR_FILENO, __func__, strlen(__func__)); \
tests/lib/libpthread/h_atexit.c
64
write(STDERR_FILENO, ": ", 2); \
tests/lib/libpthread/h_atexit.c
65
write(STDERR_FILENO, __STRING(expr), \
tests/lib/libpthread/h_atexit.c
67
write(STDERR_FILENO, "\n", 1); \
usr.bin/biff/biff.c
75
if ((name = ttyname(STDERR_FILENO)) == NULL)
usr.bin/csplit/csplit.c
236
(void)write(STDERR_FILENO, msg, len);
usr.bin/find/find.c
164
isatty(STDERR_FILENO));
usr.bin/ftp/progressbar.c
372
(void)write(siginfo ? STDERR_FILENO : fileno(ttyout), buf, len);
usr.bin/m4/misc.c
248
write(STDERR_FILENO, intrmessage, sizeof(intrmessage)-1);
usr.bin/mail/complete.c
1198
(void)dup2(STDERR_FILENO, fileno(nullfp));
usr.bin/make/job.c
1607
if (dup2(STDOUT_FILENO, STDERR_FILENO) == -1)
usr.bin/make/main.c
1984
write_all(STDERR_FILENO, msg, (size_t)len);
usr.bin/make/main.c
807
(void)write(STDERR_FILENO, str, (size_t)len);
usr.bin/make/meta.c
1767
|| dup2(STDOUT_FILENO, STDERR_FILENO) < 0)
usr.bin/mesg/mesg.c
81
(tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/nohup/nohup.c
83
if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1) {
usr.bin/passwd/pam_passwd.c
115
pam_err = pam_set_item(pamh, PAM_TTY, ttyname(STDERR_FILENO));
usr.bin/pmap/main.c
132
check_fd(STDERR_FILENO);
usr.bin/rwall/rwall.c
185
tty = ttyname(STDERR_FILENO);
usr.bin/su/su_pam.c
247
if ((tty = ttyname(STDERR_FILENO)) != NULL)
usr.bin/su/su_pam.c
406
(void)tcsetpgrp(STDERR_FILENO, pid);
usr.bin/su/su_pam.c
417
(void)tcsetpgrp(STDERR_FILENO,
usr.bin/su/su_pam.c
426
(void)tcsetpgrp(STDERR_FILENO, getpgid(0));
usr.bin/su/suutil.c
59
if ((p = ttyname(STDERR_FILENO)) != NULL)
usr.bin/tset/misc.c
54
if ((nw = write(STDERR_FILENO, buf, nr)) == -1)
usr.bin/tset/set.c
144
tcsetattr(STDERR_FILENO, TCSADRAIN, &mode);
usr.bin/tset/set.c
213
tcsetattr(STDERR_FILENO, TCSADRAIN, &oldmode);
usr.bin/tset/set.c
53
tcgetattr(STDERR_FILENO, &mode);
usr.bin/tset/term.c
75
if ((ttypath = ttyname(STDERR_FILENO)) != NULL) {
usr.bin/tset/tset.c
161
(void)ioctl(STDERR_FILENO, TIOCGWINSZ, &win);
usr.bin/tset/tset.c
169
(void)ioctl(STDERR_FILENO, TIOCSWINSZ, &win);
usr.bin/tset/tset.c
180
tcsetattr(STDERR_FILENO, TCSADRAIN, &mode);
usr.bin/tset/tset.c
72
if (tcgetattr(STDERR_FILENO, &mode) < 0)
usr.bin/vndcompress/utils.c
167
(void)write(STDERR_FILENO, fallback, __arraycount(fallback));
usr.bin/vndcompress/utils.c
170
(void)write(STDERR_FILENO, buf, strlen(buf));
usr.bin/vndcompress/vndcompress.c
339
(void)write(STDERR_FILENO, msg, __arraycount(msg));
usr.bin/vndcompress/vndcompress.c
342
(void)write(STDERR_FILENO, buf, (size_t)n);
usr.bin/w/w.c
354
ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 &&
usr.bin/wall/wall.c
214
tty = ttyname(STDERR_FILENO);
usr.bin/xinstall/xinstall.c
1084
write(STDERR_FILENO, arr[i], strlen(arr[i]));
usr.sbin/acpitools/acpidump/acpi.c
4707
close(STDERR_FILENO);
usr.sbin/altq/altqstat/altqstat.c
68
write(STDERR_FILENO, buf, strlen(buf));
usr.sbin/btpand/btpand.c
273
(void)dup2(fd, STDERR_FILENO);
usr.sbin/lpr/lpd/printjob.c
163
(void) dup2(fd, STDERR_FILENO);
usr.sbin/lpr/lpd/printjob.c
166
(void)close(STDERR_FILENO);
usr.sbin/lpr/lpd/recvjob.c
101
(void) close(STDERR_FILENO);
usr.sbin/lpr/lpd/recvjob.c
98
(void) dup2(fd, STDERR_FILENO);
usr.sbin/nfsd/nfsd.c
313
if (detach_msg_pipe[1] <= STDERR_FILENO &&
usr.sbin/nfsd/nfsd.c
317
if (fd > STDERR_FILENO)
usr.sbin/nfsd/nfsd.c
369
(void)dup2(fd, STDERR_FILENO);
usr.sbin/nfsd/nfsd.c
370
if (fd > STDERR_FILENO)
usr.sbin/puffs/mount_psshfs/psshfs.c
460
dup2(dnfd, STDERR_FILENO);
usr.sbin/rbootd/rbootd.c
90
i != STDERR_FILENO)
usr.sbin/syslogd/syslogd.c
4255
dup2(nulldesc, STDERR_FILENO);