| /freebsd-13.1/lib/libc/gen/ |
| H A D | psignal.c | 56 (void)_write(STDERR_FILENO, s, strlen(s)); in psignal() 57 (void)_write(STDERR_FILENO, ": ", 2); in psignal() 59 (void)_write(STDERR_FILENO, c, strlen(c)); in psignal() 60 (void)_write(STDERR_FILENO, "\n", 1); in psignal()
|
| H A D | fstab.c | 294 (void)_write(STDERR_FILENO, "fstab: ", 7); in error() 295 (void)_write(STDERR_FILENO, path_fstab, strlen(path_fstab)); in error() 296 (void)_write(STDERR_FILENO, ":", 1); in error() 298 (void)_write(STDERR_FILENO, num, strlen(num)); in error() 300 (void)_write(STDERR_FILENO, p, strlen(p)); in error() 301 (void)_write(STDERR_FILENO, "\n", 1); in error()
|
| /freebsd-13.1/contrib/diff/lib/ |
| H A D | c-stack.c | 83 #ifndef STDERR_FILENO 84 # define STDERR_FILENO 2 macro 124 write (STDERR_FILENO, program_name, strlen (program_name)); in die() 125 write (STDERR_FILENO, ": ", 2); in die() 126 write (STDERR_FILENO, message, strlen (message)); in die() 127 write (STDERR_FILENO, "\n", 1); in die() 203 write (STDERR_FILENO, buf, strlen (buf)); in segv_handler()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_closefrom.c | 54 (void)closefrom(STDERR_FILENO + 1); in ATF_TC_BODY() 61 ATF_REQUIRE(cur1 == STDERR_FILENO + 1); in ATF_TC_BODY() 91 ATF_REQUIRE(closefrom(STDERR_FILENO + 1) == 0); in ATF_TC_BODY() 94 ATF_REQUIRE(cur == STDERR_FILENO); in ATF_TC_BODY() 102 ATF_REQUIRE(cur == __arraycount(buf) + STDERR_FILENO); in ATF_TC_BODY() 104 half = STDERR_FILENO + __arraycount(buf) / 2; in ATF_TC_BODY()
|
| /freebsd-13.1/contrib/ncurses/progs/ |
| H A D | progs.priv.h | 162 #ifndef STDERR_FILENO 163 #define STDERR_FILENO 2 macro 195 #ifndef STDERR_FILENO 196 #define STDERR_FILENO 2 macro
|
| /freebsd-13.1/lib/libcasper/services/cap_syslog/ |
| H A D | cap_syslog.c | 92 nvlist_add_descriptor(nvl, "stderr", STDERR_FILENO); in cap_openlog() 166 prev_stderr = dup(STDERR_FILENO); in slog_openlog() 168 (void)dup2(stderr_fd, STDERR_FILENO); in slog_openlog() 170 (void)dup2(prev_stderr, STDERR_FILENO); in slog_openlog() 188 (void)dup2(prev_stderr, STDERR_FILENO); in slog_closelog()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libpthread/ |
| H A D | h_atexit.c | 73 write(STDERR_FILENO, __func__, strlen(__func__)); \ 74 write(STDERR_FILENO, ": ", 2); \ 75 write(STDERR_FILENO, __STRING(expr), \ 77 write(STDERR_FILENO, "\n", 1); \
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/stdlib/ |
| H A D | h_atexit.c | 82 write(STDERR_FILENO, __func__, strlen(__func__)); \ 83 write(STDERR_FILENO, ": ", 2); \ 84 write(STDERR_FILENO, __STRING(expr), \ 86 write(STDERR_FILENO, "\n", 1); \
|
| /freebsd-13.1/lib/libc/stdlib/ |
| H A D | set_constraint_handler_s.c | 91 (void) _write(STDERR_FILENO, ahs, sizeof(ahs) - 1); in abort_handler_s() 92 (void) _write(STDERR_FILENO, msg, strlen(msg)); in abort_handler_s() 93 (void) _write(STDERR_FILENO, "\n", 1); in abort_handler_s()
|
| /freebsd-13.1/usr.bin/su/ |
| H A D | su.c | 299 mytty = ttyname(STDERR_FILENO); in main() 454 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) in main() 455 tcsetpgrp(STDERR_FILENO, child_pid); in main() 461 if (tcgetpgrp(STDERR_FILENO) == child_pgrp) in main() 462 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 464 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) { in main() 466 tcsetpgrp(STDERR_FILENO, child_pgrp); in main() 474 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 640 p = ttyname(STDERR_FILENO); in ontty()
|
| /freebsd-13.1/usr.bin/tset/ |
| H A D | tset.c | 83 if (tcgetattr(STDERR_FILENO, &mode) < 0) in main() 169 (void)ioctl(STDERR_FILENO, TIOCGWINSZ, &win); in main() 174 (void)ioctl(STDERR_FILENO, TIOCSWINSZ, &win); in main() 185 tcsetattr(STDERR_FILENO, TCSADRAIN, &mode); in main()
|
| /freebsd-13.1/contrib/xz/src/xz/ |
| H A D | private.h | 44 #ifndef STDERR_FILENO 45 # define STDERR_FILENO (fileno(stderr)) macro
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | readpass.c | 228 (void)write(STDERR_FILENO, "\r", 1); in writemsg() 229 (void)write(STDERR_FILENO, msg, strlen(msg)); in writemsg() 230 (void)write(STDERR_FILENO, "\r\n", 2); in writemsg() 254 if (!force_askpass && isatty(STDERR_FILENO)) { in notify_start() 280 closefrom(STDERR_FILENO + 1); in notify_start()
|
| /freebsd-13.1/bin/stty/ |
| H A D | util.c | 58 if (isatty(STDOUT_FILENO) && isatty(STDERR_FILENO) && in checkredirect() 59 !fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) && in checkredirect()
|
| /freebsd-13.1/lib/libcasper/libcasper/ |
| H A D | libcasper_impl.c | 55 if (*fdp > STDERR_FILENO) in fd_fix_environment() 62 while (*fdp <= STDERR_FILENO) { in fd_fix_environment()
|
| H A D | service.c | 381 if (dup2(fd, STDERR_FILENO) == -1) in stdnull() 384 if (fd > STDERR_FILENO) in stdnull() 396 assert(*sockp > STDERR_FILENO); in service_clean() 397 assert(*procfdp > STDERR_FILENO); in service_clean() 412 for (fd = STDERR_FILENO + 1; fd < maxfd; fd++) { in service_clean()
|
| /freebsd-13.1/usr.sbin/rtadvd/ |
| H A D | advcap.c | 155 write(STDERR_FILENO, "Remcap entry too long\n", in getent() 192 write(STDERR_FILENO, "Bad remcap entry\n", 18); in tnchktc() 205 write(STDERR_FILENO, "Infinite tc= loop\n", 18); in tnchktc() 215 write(STDERR_FILENO, "Remcap entry too long\n", 23); in tnchktc()
|
| /freebsd-13.1/contrib/file/src/ |
| H A D | compress.c | 863 file_pipe_closexec(fdp[STDERR_FILENO]) == -1) { in uncompressbuf() 903 if (copydesc(STDERR_FILENO, fdp[STDERR_FILENO][1])) in uncompressbuf() 904 (void) close(fdp[STDERR_FILENO][1]); in uncompressbuf() 905 if (fdp[STDERR_FILENO][0] > 2) in uncompressbuf() 906 (void) close(fdp[STDERR_FILENO][0]); in uncompressbuf() 907 file_clear_closexec(STDERR_FILENO); in uncompressbuf() 911 dprintf(STDERR_FILENO, "exec `%s' failed, %s", in uncompressbuf() 940 (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf() 960 closefd(fdp[STDERR_FILENO], 0); in uncompressbuf()
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed.c | 202 if (dup2(devnull, STDERR_FILENO) < 0) in _finish_daemonize() 206 if ((devnull > STDERR_FILENO) && (close(devnull) < 0)) in _finish_daemonize() 233 zed_file_close_from(STDERR_FILENO + 1); in main()
|
| /freebsd-13.1/libexec/rtld-elf/ |
| H A D | xmalloc.c | 47 rtld_fdputstr(STDERR_FILENO, "Out of memory\n"); in xcalloc() 61 rtld_fdputstr(STDERR_FILENO, "Out of memory\n"); in xmalloc()
|
| /freebsd-13.1/libexec/fingerd/ |
| H A D | fingerd.c | 209 dup2(STDOUT_FILENO, STDERR_FILENO); in main() 215 write(STDERR_FILENO, prog, strlen(prog)); in main() 217 write(STDERR_FILENO, MSG, strlen(MSG)); in main()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/net/ |
| H A D | h_dns_server.c | 194 if (__daemon2_detach_pipe[1] <= STDERR_FILENO && in daemon2_fork() 198 if (fd > STDERR_FILENO) in daemon2_fork() 247 (void)dup2(fd, STDERR_FILENO); in daemon2_detach() 248 if (fd > STDERR_FILENO) in daemon2_detach()
|
| /freebsd-13.1/sbin/hastd/ |
| H A D | hooks.c | 99 STDERR_FILENO) + 1); in descriptors() 128 if (fd != STDERR_FILENO && dup2(fd, STDERR_FILENO) == -1) { in descriptors() 132 if (fd != STDOUT_FILENO && fd != STDERR_FILENO) in descriptors()
|
| /freebsd-13.1/contrib/dialog/ |
| H A D | prgbox.c | 55 (void) dup2(STDOUT_FILENO, STDERR_FILENO); in dlg_popen() 63 (void) close(STDERR_FILENO); in dlg_popen()
|
| /freebsd-13.1/usr.bin/nohup/ |
| H A D | nohup.c | 85 if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1) in main()
|