| /freebsd-14.2/lib/libc/gen/ |
| H A D | psignal.c | 54 (void)_write(STDERR_FILENO, s, strlen(s)); in psignal() 55 (void)_write(STDERR_FILENO, ": ", 2); in psignal() 57 (void)_write(STDERR_FILENO, c, strlen(c)); in psignal() 58 (void)_write(STDERR_FILENO, "\n", 1); in psignal()
|
| H A D | fstab.c | 288 (void)_write(STDERR_FILENO, "fstab: ", 7); in error() 289 (void)_write(STDERR_FILENO, path_fstab, strlen(path_fstab)); in error() 290 (void)_write(STDERR_FILENO, ":", 1); in error() 292 (void)_write(STDERR_FILENO, num, strlen(num)); in error() 294 (void)_write(STDERR_FILENO, p, strlen(p)); in error() 295 (void)_write(STDERR_FILENO, "\n", 1); in error()
|
| /freebsd-14.2/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-14.2/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-14.2/lib/libcasper/services/cap_syslog/ |
| H A D | cap_syslog.c | 90 nvlist_add_descriptor(nvl, "stderr", STDERR_FILENO); in cap_openlog() 164 prev_stderr = dup(STDERR_FILENO); in slog_openlog() 166 (void)dup2(stderr_fd, STDERR_FILENO); in slog_openlog() 168 (void)dup2(prev_stderr, STDERR_FILENO); in slog_openlog() 186 (void)dup2(prev_stderr, STDERR_FILENO); in slog_closelog()
|
| /freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | AutoConvert.cpp | 35 assert(FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO); in restoreStdHandleAutoConversion() 65 if ((FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO) && in enableAutoConversion() 69 if (FD == STDOUT_FILENO || FD == STDERR_FILENO) in enableAutoConversion() 75 (FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO) in enableAutoConversion()
|
| H A D | InitLLVM.cpp | 32 llvm::restoreStdHandleAutoConversion(STDERR_FILENO); in CleanupStdHandles() 73 ExitOnErr(errorCodeToError(llvm::enableAutoConversion(STDERR_FILENO))); in InitLLVM()
|
| /freebsd-14.2/libexec/rtld-elf/ |
| H A D | xmalloc.c | 45 rtld_fdputstr(STDERR_FILENO, "Out of memory\n"); in xcalloc() 59 rtld_fdputstr(STDERR_FILENO, "Out of memory\n"); in xmalloc() 88 rtld_fdputstr(STDERR_FILENO, "Out of memory\n"); in xmalloc_aligned()
|
| /freebsd-14.2/lib/libc/stdlib/ |
| H A D | set_constraint_handler_s.c | 88 (void) _write(STDERR_FILENO, ahs, sizeof(ahs) - 1); in abort_handler_s() 89 (void) _write(STDERR_FILENO, msg, strlen(msg)); in abort_handler_s() 90 (void) _write(STDERR_FILENO, "\n", 1); in abort_handler_s()
|
| /freebsd-14.2/usr.bin/su/ |
| H A D | su.c | 297 mytty = ttyname(STDERR_FILENO); in main() 452 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) in main() 453 tcsetpgrp(STDERR_FILENO, child_pid); in main() 459 if (tcgetpgrp(STDERR_FILENO) == child_pgrp) in main() 460 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 462 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) { in main() 464 tcsetpgrp(STDERR_FILENO, child_pgrp); in main() 472 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 638 p = ttyname(STDERR_FILENO); in ontty()
|
| /freebsd-14.2/contrib/xz/src/xz/ |
| H A D | private.h | 44 #ifndef STDERR_FILENO 45 # define STDERR_FILENO (fileno(stderr)) macro
|
| /freebsd-14.2/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-14.2/bin/stty/ |
| H A D | util.c | 56 if (isatty(STDOUT_FILENO) && isatty(STDERR_FILENO) && in checkredirect() 57 !fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) && in checkredirect()
|
| /freebsd-14.2/lib/libcasper/libcasper/ |
| H A D | libcasper_impl.c | 53 if (*fdp > STDERR_FILENO) in fd_fix_environment() 60 while (*fdp <= STDERR_FILENO) { in fd_fix_environment()
|
| H A D | service.c | 379 if (dup2(fd, STDERR_FILENO) == -1) in stdnull() 382 if (fd > STDERR_FILENO) in stdnull() 394 assert(*sockp > STDERR_FILENO); in service_clean() 395 assert(*procfdp > STDERR_FILENO); in service_clean() 410 for (fd = STDERR_FILENO + 1; fd < maxfd; fd++) { in service_clean()
|
| /freebsd-14.2/usr.sbin/rtadvd/ |
| H A D | advcap.c | 154 write(STDERR_FILENO, "Remcap entry too long\n", in getent() 191 write(STDERR_FILENO, "Bad remcap entry\n", 18); in tnchktc() 204 write(STDERR_FILENO, "Infinite tc= loop\n", 18); in tnchktc() 214 write(STDERR_FILENO, "Remcap entry too long\n", 23); in tnchktc()
|
| /freebsd-14.2/libexec/rtld-elf/rtld-libc/ |
| H A D | rtld_libc.c | 84 (void)rtld_fdprintf(STDERR_FILENO, in __assert() 88 (void)rtld_fdprintf(STDERR_FILENO, in __assert()
|
| /freebsd-14.2/libexec/fingerd/ |
| H A D | fingerd.c | 207 dup2(STDOUT_FILENO, STDERR_FILENO); in main() 213 write(STDERR_FILENO, prog, strlen(prog)); in main() 215 write(STDERR_FILENO, MSG, strlen(MSG)); in main()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed.c | 204 if (dup2(devnull, STDERR_FILENO) < 0) in _finish_daemonize() 208 if ((devnull > STDERR_FILENO) && (close(devnull) < 0)) in _finish_daemonize() 235 zed_file_close_from(STDERR_FILENO + 1); in main()
|
| /freebsd-14.2/sbin/hastd/ |
| H A D | hooks.c | 97 STDERR_FILENO) + 1); in descriptors() 126 if (fd != STDERR_FILENO && dup2(fd, STDERR_FILENO) == -1) { in descriptors() 130 if (fd != STDOUT_FILENO && fd != STDERR_FILENO) in descriptors()
|
| /freebsd-14.2/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-14.2/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-14.2/usr.bin/nohup/ |
| H A D | nohup.c | 83 if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1) in main()
|