| /freebsd/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/lib/libc/gen/ |
| H A D | psignal.c | 52 (void)_write(STDERR_FILENO, s, strlen(s)); in psignal() 53 (void)_write(STDERR_FILENO, ": ", 2); in psignal() 55 (void)_write(STDERR_FILENO, c, strlen(c)); in psignal() 56 (void)_write(STDERR_FILENO, "\n", 1); in psignal()
|
| H A D | fstab.c | 286 (void)_write(STDERR_FILENO, "fstab: ", 7); in error() 287 (void)_write(STDERR_FILENO, path_fstab, strlen(path_fstab)); in error() 288 (void)_write(STDERR_FILENO, ":", 1); in error() 290 (void)_write(STDERR_FILENO, num, strlen(num)); in error() 292 (void)_write(STDERR_FILENO, p, strlen(p)); in error() 293 (void)_write(STDERR_FILENO, "\n", 1); in error()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | InitLLVM.cpp | 30 #ifndef STDERR_FILENO 31 #define STDERR_FILENO 2 macro 41 llvm::restoreStdHandleAutoConversion(STDERR_FILENO); in CleanupStdHandles() 81 ExitOnErr(errorCodeToError(llvm::enableAutoConversion(STDERR_FILENO))); in InitLLVM()
|
| H A D | AutoConvert.cpp | 37 assert(FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO); in restorezOSStdHandleAutoConversion() 67 if ((FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO) && in enablezOSAutoConversion() 71 if (FD == STDOUT_FILENO || FD == STDERR_FILENO) in enablezOSAutoConversion() 77 (FD == STDIN_FILENO || FD == STDOUT_FILENO || FD == STDERR_FILENO) in enablezOSAutoConversion()
|
| /freebsd/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/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/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/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/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/usr.bin/su/ |
| H A D | su.c | 284 mytty = ttyname(STDERR_FILENO); in main() 439 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) in main() 440 tcsetpgrp(STDERR_FILENO, child_pid); in main() 446 if (tcgetpgrp(STDERR_FILENO) == child_pgrp) in main() 447 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 449 if (tcgetpgrp(STDERR_FILENO) == getpgrp()) { in main() 451 tcsetpgrp(STDERR_FILENO, child_pgrp); in main() 459 tcsetpgrp(STDERR_FILENO, getpgrp()); in main() 625 p = ttyname(STDERR_FILENO); in ontty()
|
| /freebsd/bin/stty/ |
| H A D | util.c | 52 if (isatty(STDOUT_FILENO) && isatty(STDERR_FILENO) && in checkredirect() 53 !fstat(STDOUT_FILENO, &sb1) && !fstat(STDERR_FILENO, &sb2) && in checkredirect()
|
| /freebsd/contrib/xz/src/xz/ |
| H A D | private.h | 51 #ifndef STDERR_FILENO 52 # define STDERR_FILENO (fileno(stderr)) macro
|
| /freebsd/crypto/openssh/ |
| H A D | readpass.c | 226 (void)write(STDERR_FILENO, "\r", 1); in writemsg() 227 (void)write(STDERR_FILENO, msg, strlen(msg)); in writemsg() 228 (void)write(STDERR_FILENO, "\r\n", 2); in writemsg() 252 if (!force_askpass && isatty(STDERR_FILENO)) { in notify_start() 278 closefrom(STDERR_FILENO + 1); in notify_start()
|
| /freebsd/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/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 | 378 if (dup2(fd, STDERR_FILENO) == -1) in stdnull() 381 if (fd > STDERR_FILENO) in stdnull() 393 assert(*sockp > STDERR_FILENO); in service_clean() 394 assert(*procfdp > STDERR_FILENO); in service_clean() 409 for (fd = STDERR_FILENO + 1; fd < maxfd; fd++) { in service_clean()
|
| /freebsd/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | oclo_errors.c | 64 int fd = dup3(STDERR_FILENO, 23, flags); in oclo_dup3() 71 int fd = fcntl(STDERR_FILENO, F_DUP3FD | (flags << F_DUP3FD_SHIFT), 23); in oclo_dup3fd() 135 closefrom(STDERR_FILENO + 1); in main()
|
| /freebsd/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/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed.c | 205 if (dup2(devnull, STDERR_FILENO) < 0) in _finish_daemonize() 209 if ((devnull > STDERR_FILENO) && (close(devnull) < 0)) in _finish_daemonize() 236 zed_file_close_from(STDERR_FILENO + 1); in main()
|
| /freebsd/libexec/fingerd/ |
| H A D | fingerd.c | 195 dup2(STDOUT_FILENO, STDERR_FILENO); in main() 201 write(STDERR_FILENO, prog, strlen(prog)); in main() 203 write(STDERR_FILENO, MSG, strlen(MSG)); in main()
|
| /freebsd/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/sbin/hastd/ |
| H A D | hooks.c | 96 STDERR_FILENO) + 1); in descriptors() 125 if (fd != STDERR_FILENO && dup2(fd, STDERR_FILENO) == -1) { in descriptors() 129 if (fd != STDOUT_FILENO && fd != STDERR_FILENO) in descriptors()
|
| /freebsd/usr.bin/nohup/ |
| H A D | nohup.c | 71 if (isatty(STDERR_FILENO) && dup2(STDOUT_FILENO, STDERR_FILENO) == -1) in main()
|
| /freebsd/contrib/mandoc/ |
| H A D | mandocd.c | 230 (old_stderr = dup(STDERR_FILENO)) == -1) { in main() 238 dup2(fds[2], STDERR_FILENO) == -1) { in main() 256 if (dup2(old_stderr, STDERR_FILENO) == -1 ||
|