Symbol: STDERR_FILENO
bin/dd/dd.c
221
if (in.fd != STDERR_FILENO && out.fd != STDERR_FILENO) {
bin/ps/ps.c
209
ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
bin/sh/error.c
111
write(STDERR_FILENO, "\n", 1);
bin/sh/memalloc.c
176
write(STDERR_FILENO, "stunalloc\n", 10);
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
176
dup2(STDOUT_FILENO, STDERR_FILENO);
crypto/heimdal/appl/rcp/rcp.c
458
write(STDERR_FILENO,
crypto/heimdal/appl/rcp/rcp.c
670
write(STDERR_FILENO, rbuf, cp - rbuf);
crypto/heimdal/appl/rsh/rsh.c
136
net_write (STDERR_FILENO, buf, ret);
crypto/heimdal/appl/rsh/rshd.c
523
dup2 (p2[1], STDERR_FILENO);
crypto/heimdal/appl/rsh/rshd.c
537
STDERR_FILENO, p2[0],
crypto/heimdal/appl/rsh/rshd.c
778
if (dup2 (errsock, STDERR_FILENO) < 0)
crypto/heimdal/appl/rsh/rshd.c
782
if (dup2 (STDOUT_FILENO, STDERR_FILENO) < 0)
crypto/heimdal/appl/su/su.c
435
char *tty = ttyname (STDERR_FILENO);
crypto/heimdal/lib/roken/daemon.c
73
dup2(fd, STDERR_FILENO);
crypto/heimdal/lib/roken/rkpty.c
362
dup2(slave, STDERR_FILENO);
crypto/heimdal/lib/roken/rkpty.c
363
closefrom(STDERR_FILENO + 1);
crypto/heimdal/lib/roken/roken-common.h
77
#ifndef STDERR_FILENO
crypto/heimdal/lib/roken/simple_exec.c
192
if(err_fd[1] != STDERR_FILENO) {
crypto/heimdal/lib/roken/simple_exec.c
193
dup2(err_fd[1], STDERR_FILENO);
crypto/krb5/src/clients/ksu/main.c
977
if ((p = ttyname(STDERR_FILENO))) {
crypto/krb5/src/kprop/kpropd.c
217
write(STDERR_FILENO, timeout_msg, strlen(timeout_msg));
crypto/krb5/src/kprop/kpropd.c
311
dup2(devnull, STDERR_FILENO);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
1056
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
1068
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
1092
(void)write(STDERR_FILENO,
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
1119
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c
1152
(void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/include/db-int.h
245
#ifndef STDERR_FILENO
crypto/krb5/src/util/verto/ev.c
1680
write (STDERR_FILENO, msg, strlen (msg));
crypto/openssh/clientloop.c
210
(void)atomicio(vwrite, STDERR_FILENO, msg, strlen(msg));
crypto/openssh/defines.h
149
#ifndef STDERR_FILENO
crypto/openssh/log.c
304
return log_on_stderr && log_stderr_fd == STDERR_FILENO;
crypto/openssh/log.c
314
if (log_stderr_fd != STDERR_FILENO) {
crypto/openssh/log.c
316
log_stderr_fd = STDERR_FILENO;
crypto/openssh/log.c
60
static int log_stderr_fd = STDERR_FILENO;
crypto/openssh/misc.c
1540
while (++dupfd <= STDERR_FILENO) {
crypto/openssh/misc.c
1549
if (nullfd > STDERR_FILENO)
crypto/openssh/misc.c
2740
(do_stderr && dup2(devnull, STDERR_FILENO) == -1)) {
crypto/openssh/misc.c
2744
if (devnull > STDERR_FILENO)
crypto/openssh/misc.c
2870
closefrom(STDERR_FILENO + 1);
crypto/openssh/misc.c
2890
dup2(STDIN_FILENO, STDERR_FILENO) == -1) {
crypto/openssh/mux.c
1946
mm_send_fd(fd, STDERR_FILENO) == -1)
crypto/openssh/openbsd-compat/daemon.c
74
(void)dup2(fd, STDERR_FILENO);
crypto/openssh/openbsd-compat/readpassphrase.c
86
output = STDERR_FILENO;
crypto/openssh/readconf.c
560
closefrom(STDERR_FILENO + 1);
crypto/openssh/readpass.c
229
(void)write(STDERR_FILENO, "\r", 1);
crypto/openssh/readpass.c
230
(void)write(STDERR_FILENO, msg, strlen(msg));
crypto/openssh/readpass.c
231
(void)write(STDERR_FILENO, "\r\n", 2);
crypto/openssh/readpass.c
255
if (!force_askpass && isatty(STDERR_FILENO)) {
crypto/openssh/readpass.c
281
closefrom(STDERR_FILENO + 1);
crypto/openssh/regress/unittests/test_helper/fuzz.c
207
atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
crypto/openssh/regress/unittests/test_helper/fuzz.c
210
atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
crypto/openssh/regress/unittests/test_helper/test_helper.c
243
atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
crypto/openssh/sandbox-capsicum.c
94
if (cap_rights_limit(STDERR_FILENO, &rights) < 0 && errno != ENOSYS)
crypto/openssh/scp.c
1728
(void) atomicio(vwrite, STDERR_FILENO,
crypto/openssh/scp.c
2105
(void) atomicio(vwrite, STDERR_FILENO,
crypto/openssh/scp.c
2255
(void)write(STDERR_FILENO, "lost connection\n", 16);
crypto/openssh/session.c
1511
closefrom(STDERR_FILENO + 1);
crypto/openssh/session.c
1644
closefrom(STDERR_FILENO + 1);
crypto/openssh/sftp.c
253
(void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
crypto/openssh/sftp.c
2603
if (!isatty(STDERR_FILENO))
crypto/openssh/sftp.c
276
(void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
crypto/openssh/ssh-agent.c
2438
closefrom(sock == -1 ? STDERR_FILENO + 1 : sock + 1);
crypto/openssh/ssh-keysign.c
271
if (fd <= STDERR_FILENO)
crypto/openssh/ssh-sk-client.c
94
closefrom(STDERR_FILENO + 1);
crypto/openssh/ssh-sk-helper.c
306
closefrom(STDERR_FILENO + 1);
crypto/openssh/ssh.c
2254
err = dup(STDERR_FILENO);
crypto/openssh/ssh.c
698
closefrom(STDERR_FILENO + 1);
crypto/openssh/sshconnect2.c
2057
if (dup2(sock, STDERR_FILENO + 1) == -1)
crypto/openssh/sshconnect2.c
2059
sock = STDERR_FILENO + 1;
crypto/openssh/sshconnect2.c
2072
sock = STDERR_FILENO + 1;
crypto/openssh/sshd-auth.c
104
#define PRIVSEP_MONITOR_FD (STDERR_FILENO + 1)
crypto/openssh/sshd-auth.c
105
#define PRIVSEP_LOG_FD (STDERR_FILENO + 2)
crypto/openssh/sshd-auth.c
106
#define PRIVSEP_MIN_FREE_FD (STDERR_FILENO + 3)
crypto/openssh/sshd-session.c
114
#define REEXEC_DEVCRYPTO_RESERVED_FD (STDERR_FILENO + 1)
crypto/openssh/sshd-session.c
115
#define REEXEC_CONFIG_PASS_FD (STDERR_FILENO + 2)
crypto/openssh/sshd-session.c
116
#define REEXEC_MIN_FREE_FD (STDERR_FILENO + 3)
crypto/openssh/sshd-session.c
119
#define PRIVSEP_MONITOR_FD (STDERR_FILENO + 1)
crypto/openssh/sshd-session.c
120
#define PRIVSEP_LOG_FD (STDERR_FILENO + 2)
crypto/openssh/sshd-session.c
121
#define PRIVSEP_MIN_FREE_FD (STDERR_FILENO + 3)
crypto/openssh/sshd.c
114
#define REEXEC_DEVCRYPTO_RESERVED_FD (STDERR_FILENO + 1)
crypto/openssh/sshd.c
115
#define REEXEC_CONFIG_PASS_FD (STDERR_FILENO + 2)
crypto/openssh/sshd.c
116
#define REEXEC_MIN_FREE_FD (STDERR_FILENO + 3)
crypto/openssh/sshd.c
1527
closefrom(STDERR_FILENO + 1);
lib/libc/db/hash/hash_page.c
700
(void)_write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/db/hash/hash_page.c
714
(void)_write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/db/hash/hash_page.c
739
(void)_write(STDERR_FILENO, OVMSG,
lib/libc/db/hash/hash_page.c
786
(void)_write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
lib/libc/gen/daemon.c
86
(void)_dup2(nullfd, STDERR_FILENO);
lib/libc/gen/exec.c
309
(void)_write(STDERR_FILENO, execvPe_err_preamble,
lib/libc/gen/exec.c
311
(void)_write(STDERR_FILENO, p, lp);
lib/libc/gen/exec.c
312
(void)_write(STDERR_FILENO, execvPe_err_trailer,
lib/libc/gen/fstab.c
286
(void)_write(STDERR_FILENO, "fstab: ", 7);
lib/libc/gen/fstab.c
287
(void)_write(STDERR_FILENO, path_fstab, strlen(path_fstab));
lib/libc/gen/fstab.c
288
(void)_write(STDERR_FILENO, ":", 1);
lib/libc/gen/fstab.c
290
(void)_write(STDERR_FILENO, num, strlen(num));
lib/libc/gen/fstab.c
292
(void)_write(STDERR_FILENO, p, strlen(p));
lib/libc/gen/fstab.c
293
(void)_write(STDERR_FILENO, "\n", 1);
lib/libc/gen/psignal.c
52
(void)_write(STDERR_FILENO, s, strlen(s));
lib/libc/gen/psignal.c
53
(void)_write(STDERR_FILENO, ": ", 2);
lib/libc/gen/psignal.c
55
(void)_write(STDERR_FILENO, c, strlen(c));
lib/libc/gen/psignal.c
56
(void)_write(STDERR_FILENO, "\n", 1);
lib/libc/gen/readpassphrase.c
77
output = STDERR_FILENO;
lib/libc/gen/readpassphrase.c
83
output = STDERR_FILENO;
lib/libc/gen/setjmperr.c
48
(void)_write(STDERR_FILENO, ERRMSG, sizeof(ERRMSG) - 1);
lib/libc/gen/syslog.c
286
(void)_writev(STDERR_FILENO, iov, 2);
lib/libc/net/rcmd.c
293
(void)_write(STDERR_FILENO, &c, 1);
lib/libc/resolv/herror.c
104
_writev(STDERR_FILENO, iov, (v - iov) + 1);
lib/libc/stdio/findfp.c
70
std(__SWR|__SNBF, STDERR_FILENO)
lib/libc/stdio/freopen.c
155
if (f < 0 && isopen && wantfd > STDERR_FILENO &&
lib/libc/stdio/gets.c
54
(void) _write(STDERR_FILENO, w, sizeof(w) - 1);
lib/libc/stdlib/getenv.c
109
_write(STDERR_FILENO, _getprogname(), strlen(_getprogname()));
lib/libc/stdlib/getenv.c
110
_write(STDERR_FILENO, progSep, sizeof(progSep) - 1);
lib/libc/stdlib/getenv.c
111
_write(STDERR_FILENO, msg, strlen(msg));
lib/libc/stdlib/getenv.c
112
_write(STDERR_FILENO, name, nameLen);
lib/libc/stdlib/getenv.c
113
_write(STDERR_FILENO, nl, sizeof(nl) - 1);
lib/libc/stdlib/set_constraint_handler_s.c
88
(void) _write(STDERR_FILENO, ahs, sizeof(ahs) - 1);
lib/libc/stdlib/set_constraint_handler_s.c
89
(void) _write(STDERR_FILENO, msg, strlen(msg));
lib/libc/stdlib/set_constraint_handler_s.c
90
(void) _write(STDERR_FILENO, "\n", 1);
lib/libc/tests/gen/fmtmsg_test.c
174
if (pip[1] != STDERR_FILENO &&
lib/libc/tests/gen/fmtmsg_test.c
175
dup2(pip[1], STDERR_FILENO) == -1)
lib/libc/tests/gen/fts_test.h
35
isatty(STDERR_FILENO);
lib/libc/tests/stdlib/qsort_bench.c
110
isatty(STDERR_FILENO);
lib/libc/tests/stdtime/detect_tz_changes_test.c
240
dup2(epd[1], STDERR_FILENO);
lib/libc/tests/stdtime/detect_tz_changes_test.c
465
isatty(STDERR_FILENO);
lib/libcapsicum/capsicum_helpers.h
111
return (caph_limit_stream(STDERR_FILENO, CAPH_WRITE));
lib/libcapsicum/capsicum_helpers.h
128
caph_limit_stream(STDERR_FILENO, CAPH_WRITE | iebadf) == -1)
lib/libcasper/libcasper/libcasper_impl.c
53
if (*fdp > STDERR_FILENO)
lib/libcasper/libcasper/libcasper_impl.c
60
while (*fdp <= STDERR_FILENO) {
lib/libcasper/libcasper/service.c
378
if (dup2(fd, STDERR_FILENO) == -1)
lib/libcasper/libcasper/service.c
381
if (fd > STDERR_FILENO)
lib/libcasper/libcasper/service.c
393
assert(*sockp > STDERR_FILENO);
lib/libcasper/libcasper/service.c
394
assert(*procfdp > STDERR_FILENO);
lib/libcasper/libcasper/service.c
409
for (fd = STDERR_FILENO + 1; fd < maxfd; fd++) {
lib/libcasper/libcasper/zygote.c
116
assert(*sockp > STDERR_FILENO);
lib/libcasper/services/cap_syslog/cap_syslog.c
164
prev_stderr = dup(STDERR_FILENO);
lib/libcasper/services/cap_syslog/cap_syslog.c
166
(void)dup2(stderr_fd, STDERR_FILENO);
lib/libcasper/services/cap_syslog/cap_syslog.c
168
(void)dup2(prev_stderr, STDERR_FILENO);
lib/libcasper/services/cap_syslog/cap_syslog.c
186
(void)dup2(prev_stderr, STDERR_FILENO);
lib/libcasper/services/cap_syslog/cap_syslog.c
90
nvlist_add_descriptor(nvl, "stderr", STDERR_FILENO);
lib/libnv/tests/cnv_tests.cc
228
nvlist_add_descriptor(nvl, key, STDERR_FILENO);
lib/libnv/tests/cnv_tests.cc
518
in_array[i] = dup(STDERR_FILENO);
lib/libnv/tests/nv_array_tests.cc
1013
desc[i] = dup(STDERR_FILENO);
lib/libnv/tests/nv_array_tests.cc
159
fd[i] = dup(STDERR_FILENO);
lib/libnv/tests/nv_array_tests.cc
347
testfd[i] = dup(STDERR_FILENO);
lib/libnv/tests/nv_array_tests.cc
640
testfd[i] = dup(STDERR_FILENO);
lib/libnv/tests/nvlist_add_test.c
131
nvlist_add_descriptor(nvl, "nvlist/descriptor/STDERR_FILENO", STDERR_FILENO);
lib/libnv/tests/nvlist_exists_test.c
156
nvlist_add_descriptor(nvl, "nvlist/descriptor", STDERR_FILENO);
lib/libnv/tests/nvlist_free_test.c
139
nvlist_add_descriptor(nvl, "nvlist/descriptor", STDERR_FILENO);
lib/libnv/tests/nvlist_free_test.c
58
nvlist_add_descriptor(nvl, "nvlist/descriptor", STDERR_FILENO);
lib/libnv/tests/nvlist_get_test.c
115
nvlist_add_descriptor(nvl, "nvlist/descriptor/STDERR_FILENO", STDERR_FILENO);
lib/libnv/tests/nvlist_move_test.c
90
fd = dup(STDERR_FILENO);
lib/libnv/tests/nvlist_send_recv_test.c
702
fds[0] = dup(STDERR_FILENO);
lib/libnv/tests/nvlist_send_recv_test.c
75
STDERR_FILENO);
lib/libpam/modules/pam_exec/pam_exec.c
322
dup2(cherr[1], STDERR_FILENO) != STDERR_FILENO) {
lib/libpam/modules/pam_ssh/pam_ssh.c
302
dup2(agent_pipe[1], STDERR_FILENO);
lib/libthr/thread/thr_exit.c
184
_thread_printf(STDERR_FILENO, "Fatal error '");
lib/libthr/thread/thr_exit.c
187
_thread_vprintf(STDERR_FILENO, fmt, ap);
lib/libthr/thread/thr_exit.c
190
_thread_printf(STDERR_FILENO, "' at line %d in file %s (errno = %d)\n",
lib/libthr/thread/thr_private.h
98
#define stderr_debug(args...) _thread_printf(STDERR_FILENO, ##args)
libexec/atrun/atrun.c
267
close(STDERR_FILENO);
libexec/atrun/atrun.c
291
if (dup(fd_out) != STDERR_FILENO)
libexec/fingerd/fingerd.c
195
dup2(STDOUT_FILENO, STDERR_FILENO);
libexec/fingerd/fingerd.c
201
write(STDERR_FILENO, prog, strlen(prog));
libexec/fingerd/fingerd.c
203
write(STDERR_FILENO, MSG, strlen(MSG));
libexec/rtld-elf/debug.c
53
rtld_vfdprintf(STDERR_FILENO, format, ap);
libexec/rtld-elf/debug.c
54
rtld_fdputchar(STDERR_FILENO, '\n');
libexec/rtld-elf/rtld-libc/rtld_libc.c
84
(void)rtld_fdprintf(STDERR_FILENO,
libexec/rtld-elf/rtld-libc/rtld_libc.c
88
(void)rtld_fdprintf(STDERR_FILENO,
libexec/rtld-elf/rtld.c
1282
rtld_fdputstr(STDERR_FILENO, _BASENAME_RTLD ": ");
libexec/rtld-elf/rtld.c
1283
rtld_fdputstr(STDERR_FILENO, msg);
libexec/rtld-elf/rtld.c
1284
rtld_fdputchar(STDERR_FILENO, '\n');
libexec/rtld-elf/rtld_malloc.c
296
rtld_fdprintf(STDERR_FILENO, _BASENAME_RTLD ": "
libexec/rtld-elf/rtld_malloc.c
310
rtld_fdprintf(STDERR_FILENO, _BASENAME_RTLD ": morepages: "
libexec/rtld-elf/xmalloc.c
45
rtld_fdputstr(STDERR_FILENO, "Out of memory\n");
libexec/rtld-elf/xmalloc.c
59
rtld_fdputstr(STDERR_FILENO, "Out of memory\n");
libexec/rtld-elf/xmalloc.c
88
rtld_fdputstr(STDERR_FILENO, "Out of memory\n");
libexec/tftpd/tests/functional.c
394
ATF_REQUIRE_EQ(STDERR_FILENO, dup2(server_s, STDERR_FILENO));
libexec/tftpd/tftpd.c
392
close(STDERR_FILENO);
sbin/dhclient/dhclient.c
2519
if (caph_rights_limit(STDERR_FILENO, &rights) < 0)
sbin/dhclient/dhclient.c
2866
dup2(nullfd, STDERR_FILENO);
sbin/hastd/hastd.c
1222
closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO), STDERR_FILENO) + 1);
sbin/hastd/hastd.c
204
fd == STDERR_FILENO) {
sbin/hastd/hooks.c
125
if (fd != STDERR_FILENO && dup2(fd, STDERR_FILENO) == -1) {
sbin/hastd/hooks.c
129
if (fd != STDOUT_FILENO && fd != STDERR_FILENO)
sbin/hastd/hooks.c
96
STDERR_FILENO) + 1);
sbin/init/init.c
610
dup2(STDOUT_FILENO, STDERR_FILENO);
sbin/init/init.c
628
write(STDERR_FILENO, message, strlen(message));
sbin/mdmfs/mdmfs.c
792
if (dup2(nfd, STDERR_FILENO) < 0)
sbin/pfctl/tests/pfctl_test.c
117
posix_spawn_file_actions_adddup2(&action, pipefds[0], STDERR_FILENO);
sbin/pfctl/tests/pfctl_test.c
148
posix_spawn_file_actions_addopen(&action, STDERR_FILENO, "/dev/null", O_WRONLY, 0);
sbin/routed/trace.c
196
if (isatty(STDERR_FILENO))
sbin/routed/trace.c
197
(void)dup2(fd, STDERR_FILENO);
sbin/routed/trace.c
359
dup2(fileno(ftrace), STDERR_FILENO);
sbin/swapon/swapon.c
689
if (dup2(nfd, STDERR_FILENO) < 0)
tests/sys/kern/ktrace_test.c
81
write(STDERR_FILENO, buf, strlen(buf));
tests/sys/kern/ktrace_test.c
84
write(STDERR_FILENO, buf, strlen(buf));
tests/sys/kern/pdwait.c
184
pdwait(STDERR_FILENO, NULL, WEXITED, NULL, NULL) < 0);
tests/sys/kern/ptrace_test.c
105
write(STDERR_FILENO, buf, strlen(buf));
tests/sys/kern/ptrace_test.c
108
write(STDERR_FILENO, buf, strlen(buf));
tools/regression/posixsem/posixsem.c
392
ksem_destroy_should_fail(STDERR_FILENO, EINVAL);
tools/regression/posixsem/posixsem.c
400
ksem_close_should_fail(STDERR_FILENO, EINVAL);
tools/regression/posixsem/posixsem.c
450
if (ksem_getvalue(STDERR_FILENO, &val) >= 0) {
tools/regression/posixsem/posixsem.c
466
ksem_post_should_fail(STDERR_FILENO, EINVAL);
tools/regression/posixsem/posixsem.c
474
if (ksem_wait(STDERR_FILENO) >= 0) {
tools/regression/posixsem/posixsem.c
490
if (ksem_trywait(STDERR_FILENO) >= 0) {
tools/regression/posixsem/posixsem.c
506
if (ksem_timedwait(STDERR_FILENO, NULL) >= 0) {
usr.bin/at/at.c
144
write(STDERR_FILENO, buf, strlen(buf));
usr.bin/biff/biff.c
60
(name = ttyname(STDERR_FILENO)) == NULL)
usr.bin/chat/chat.c
1155
write(STDERR_FILENO, "\n", 1);
usr.bin/chat/chat.c
1160
write(STDERR_FILENO, s, strlen(s));
usr.bin/chat/chat.c
875
write(STDERR_FILENO, s, strlen(s));
usr.bin/cmp/cmp.c
159
if (caph_limit_stream(STDERR_FILENO, CAPH_WRITE | CAPH_IGNORE_EBADF))
usr.bin/cmp/regular.c
189
write(STDERR_FILENO, msg, sizeof(msg));
usr.bin/csplit/csplit.c
225
write(STDERR_FILENO, msg, sizeof(msg) - 1);
usr.bin/fetch/fetch.c
1153
v_tty = isatty(STDERR_FILENO);
usr.bin/fetch/fetch.c
288
if (ioctl(STDERR_FILENO, TIOCGPGRP, &ctty_pgrp) != 0 ||
usr.bin/finger/net.c
227
write(STDERR_FILENO, ERRSTR, sizeof ERRSTR);
usr.bin/m4/misc.c
243
write(STDERR_FILENO, intrmessage, sizeof(intrmessage)-1);
usr.bin/mail/tests/mailx_signal_test.c
70
dup2(epd[1], STDERR_FILENO);
usr.bin/mesg/mesg.c
66
(tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/nohup/nohup.c
71
if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1)
usr.bin/passwd/passwd.c
142
pam_err = pam_set_item(pamh, PAM_TTY, ttyname(STDERR_FILENO));
usr.bin/rwall/rwall.c
149
tty = ttyname(STDERR_FILENO);
usr.bin/su/su.c
284
mytty = ttyname(STDERR_FILENO);
usr.bin/su/su.c
439
if (tcgetpgrp(STDERR_FILENO) == getpgrp())
usr.bin/su/su.c
440
tcsetpgrp(STDERR_FILENO, child_pid);
usr.bin/su/su.c
446
if (tcgetpgrp(STDERR_FILENO) == child_pgrp)
usr.bin/su/su.c
447
tcsetpgrp(STDERR_FILENO, getpgrp());
usr.bin/su/su.c
449
if (tcgetpgrp(STDERR_FILENO) == getpgrp()) {
usr.bin/su/su.c
451
tcsetpgrp(STDERR_FILENO, child_pgrp);
usr.bin/su/su.c
459
tcsetpgrp(STDERR_FILENO, getpgrp());
usr.bin/su/su.c
625
p = ttyname(STDERR_FILENO);
usr.bin/talk/init_disp.c
58
if ((tty = ttyname(STDERR_FILENO)) == NULL)
usr.bin/w/w.c
375
ioctl(STDERR_FILENO, TIOCGWINSZ, &ws) == -1 &&
usr.bin/wall/wall.c
197
tty = ttyname(STDERR_FILENO);
usr.bin/write/write.c
102
caph_fcntls_limit(STDERR_FILENO, CAP_FCNTL_GETFL) < 0)
usr.bin/write/write.c
96
caph_rights_limit(STDERR_FILENO, &rights) < 0 ||
usr.bin/write/write.c
99
caph_ioctls_limit(STDERR_FILENO, cmds, nitems(cmds)) < 0 ||
usr.sbin/acpi/acpidump/acpi.c
2945
close(STDERR_FILENO);
usr.sbin/bhyve/slirp/slirp-helper.c
496
if (dup2(fd, STDERR_FILENO) == -1)
usr.sbin/bluetooth/btpand/btpand.c
259
(void)dup2(fd, STDERR_FILENO);
usr.sbin/bsdinstall/runconsoles/child.c
319
error = dup2(fd, STDERR_FILENO);
usr.sbin/cxgbetool/cxgbetool.c
2651
close(STDERR_FILENO);
usr.sbin/daemon/daemon.c
811
.stdmask = STDOUT_FILENO | STDERR_FILENO,
usr.sbin/daemon/daemon.c
885
if (state->stdmask & STDERR_FILENO) {
usr.sbin/daemon/daemon.c
886
if (dup2(state->pipe_wr, STDERR_FILENO) == -1) {
usr.sbin/daemon/daemon.c
895
if (state->pipe_wr != STDERR_FILENO &&
usr.sbin/lpr/lpd/printjob.c
1408
dup2(errfd, STDERR_FILENO);
usr.sbin/lpr/lpd/printjob.c
159
(void) close(STDERR_FILENO); /* set up log file */
usr.sbin/lpr/lpd/printjob.c
815
dup2(n, STDERR_FILENO);
usr.sbin/lpr/lpd/recvjob.c
107
(void) close(STDERR_FILENO); /* set up log file */
usr.sbin/ppp/chap.c
308
close(STDERR_FILENO);
usr.sbin/ppp/chap.c
309
if (open(_PATH_DEVNULL, O_RDWR) != STDERR_FILENO) {
usr.sbin/ppp/chap.c
314
for (fd = getdtablesize(); fd > STDERR_FILENO; fd--)
usr.sbin/ppp/chat.c
743
dup2(fids[1], STDERR_FILENO);
usr.sbin/ppp/command.c
668
dup2(fd, STDERR_FILENO);
usr.sbin/ppp/command.c
669
for (i = getdtablesize(); i > STDERR_FILENO; i--)
usr.sbin/ppp/exec.c
334
dup2(fids[1], STDERR_FILENO);
usr.sbin/ppp/exec.c
335
for (i = getdtablesize(); i > STDERR_FILENO; i--)
usr.sbin/ppp/main.c
508
close(STDERR_FILENO);
usr.sbin/ppp/main.c
518
close(STDERR_FILENO);
usr.sbin/ppp/main.c
522
close(STDERR_FILENO);
usr.sbin/rtadvd/advcap.c
154
write(STDERR_FILENO, "Remcap entry too long\n",
usr.sbin/rtadvd/advcap.c
191
write(STDERR_FILENO, "Bad remcap entry\n", 18);
usr.sbin/rtadvd/advcap.c
204
write(STDERR_FILENO, "Infinite tc= loop\n", 18);
usr.sbin/rtadvd/advcap.c
214
write(STDERR_FILENO, "Remcap entry too long\n", 23);
usr.sbin/syslogd/syslogd.c
3407
(void)dup2(nulldesc, STDERR_FILENO);
usr.sbin/syslogd/syslogd.c
3744
dup2(nulldesc, STDERR_FILENO);
usr.sbin/syslogd/syslogd.c
3745
closefrom(STDERR_FILENO + 1);