| /openbsd/src/regress/lib/libpthread/stdfiles/ |
| D | stdfiles.c | 36 stderr_flags = fcntl(STDERR_FILENO, F_GETFL); in main() 70 new_flags = fcntl(STDERR_FILENO, F_GETFL); in main() 83 assert(close(STDERR_FILENO) != -1); in main() 85 assert(new_fd == STDERR_FILENO); in main() 86 new_flags = fcntl(STDERR_FILENO, F_GETFL); in main() 91 assert(fcntl(STDERR_FILENO, F_SETFL, stdin_flags) != -1); in main() 118 new_flags = fcntl(STDERR_FILENO, F_GETFL); in main()
|
| /openbsd/src/usr.bin/awk/ |
| D | main.c | 102 dprintf(STDERR_FILENO, "floating point exception%s%s\n", in fpecatch() 111 dprintf(STDERR_FILENO, " input record number %d", (int) (*FNR)); in fpecatch() 113 dprintf(STDERR_FILENO, ", file %s", *FILENAME); in fpecatch() 115 dprintf(STDERR_FILENO, "\n"); in fpecatch() 118 dprintf(STDERR_FILENO, " source line number %d", curnode->lineno); in fpecatch() 120 dprintf(STDERR_FILENO, " source line number %d", lineno); in fpecatch() 123 dprintf(STDERR_FILENO, " source file %s", cursource()); in fpecatch() 125 dprintf(STDERR_FILENO, "\n"); in fpecatch()
|
| /openbsd/src/bin/dd/ |
| D | misc.c | 76 dprintf(STDERR_FILENO, "%zu+%zu records in\n%zu+%zu records out\n", in sig_summary() 80 dprintf(STDERR_FILENO, "%zu odd length swab %s\n", in sig_summary() 84 dprintf(STDERR_FILENO, "%zu truncated %s\n", in sig_summary() 88 dprintf(STDERR_FILENO, in sig_summary()
|
| /openbsd/src/distrib/special/more/ |
| D | more.c | 308 dup2(STDERR_FILENO, STDIN_FILENO); /* stderr is a tty */ in main() 612 write(STDERR_FILENO, "\n", 1); in end_it() 658 write(STDERR_FILENO, &bell, 1); in prompt() 911 write(STDERR_FILENO, &bell, 1); in command() 1004 write(STDERR_FILENO, &bell, 1); in command() 1015 write(STDERR_FILENO, &bell, 1); in command() 1034 write(STDERR_FILENO, "\r", 1); in command() 1043 write(STDERR_FILENO, "\r", 1); in command() 1070 write(STDERR_FILENO, &bell, 1); in command() 1122 write(STDERR_FILENO, &bell, 1); in colon() [all …]
|
| /openbsd/src/usr.bin/tic/ |
| D | progs.priv.h | 173 #ifndef STDERR_FILENO 174 #define STDERR_FILENO 2 macro 206 #ifndef STDERR_FILENO 207 #define STDERR_FILENO 2 macro
|
| /openbsd/src/usr.bin/nohup/ |
| D | nohup.c | 87 if ((isatty(STDERR_FILENO) || errno == EBADF) && in main() 88 dup2(STDOUT_FILENO, STDERR_FILENO) == -1) { in main() 129 if (fd > STDERR_FILENO) in dofile()
|
| /openbsd/src/lib/libutil/ |
| D | login_tty.c | 45 (void) dup2(fd, STDERR_FILENO); in login_tty() 46 if (fd > STDERR_FILENO) in login_tty()
|
| /openbsd/src/usr.bin/ssh/ |
| 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()
|
| D | sshd-session.c | 97 #define REEXEC_DEVCRYPTO_RESERVED_FD (STDERR_FILENO + 1) 98 #define REEXEC_STARTUP_PIPE_FD (STDERR_FILENO + 2) 99 #define REEXEC_CONFIG_PASS_FD (STDERR_FILENO + 3) 100 #define REEXEC_MIN_FREE_FD (STDERR_FILENO + 4) 103 #define PRIVSEP_MONITOR_FD (STDERR_FILENO + 1) 104 #define PRIVSEP_LOG_FD (STDERR_FILENO + 2) 105 #define PRIVSEP_MIN_FREE_FD (STDERR_FILENO + 3)
|
| D | log.c | 56 static int log_stderr_fd = STDERR_FILENO; 271 return log_on_stderr && log_stderr_fd == STDERR_FILENO; in log_is_on_stderr() 281 if (log_stderr_fd != STDERR_FILENO) { in log_redirect_stderr_to() 283 log_stderr_fd = STDERR_FILENO; in log_redirect_stderr_to()
|
| /openbsd/src/gnu/llvm/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/ |
| D | _fork_pty.py | 6 from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD) 35 os.dup2(child_fd, STDERR_FILENO)
|
| /openbsd/src/regress/lib/libc/atexit/ |
| D | atexit_test.c | 146 dprintf(STDERR_FILENO, "SIGSEGV\n"); in handle_signal() 149 dprintf(STDERR_FILENO, "unexpected signal caught\n"); in handle_signal()
|
| /openbsd/src/usr.bin/lock/ |
| D | lock.c | 231 dprintf(STDERR_FILENO, "%s: type in the unlock key.", in hi() 235 dprintf(STDERR_FILENO, " timeout in %lld:%02d minutes", in hi() 239 dprintf(STDERR_FILENO, "\n"); in hi()
|
| /openbsd/src/bin/pax/ |
| D | pax.c | 98 int listfd = STDERR_FILENO; /* fd matching listf, for sighandler output */ 351 dprintf(STDERR_FILENO, "\nCPU time limit reached, cleaning up.\n"); in sig_cleanup() 353 dprintf(STDERR_FILENO, "\nSignal caught, cleaning up.\n"); in sig_cleanup()
|
| /openbsd/src/regress/lib/libc/sys/ |
| D | t_dup.c | 177 ATF_REQUIRE_ERRNO(EBADF, dup2(STDERR_FILENO, res.rlim_cur + 1) == -1); in ATF_TC_BODY() 251 ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO, in ATF_TC_BODY() 309 (void)closefrom(STDERR_FILENO + 1); 335 for (i = 1; i < n - (STDERR_FILENO + 1); i++) {
|
| /openbsd/src/gnu/llvm/lldb/tools/debugserver/source/ |
| D | PseudoTerminal.cpp | 170 if (::dup2(m_secondary_fd, STDERR_FILENO) != STDERR_FILENO) in Fork()
|
| /openbsd/src/gnu/llvm/lldb/source/Host/windows/ |
| D | ProcessLauncherWindows.cpp | 73 HANDLE stderr_handle = GetStdioHandle(launch_info, STDERR_FILENO); in LaunchProcess() 167 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) { in GetStdioHandle() 170 if (fd == STDERR_FILENO) in GetStdioHandle()
|
| /openbsd/src/sbin/isakmpd/ |
| D | isakmpd.c | 372 while (++dupfd <= STDERR_FILENO) { in sanitise_stdfd() 381 if (nullfd > STDERR_FILENO) in sanitise_stdfd() 393 closefrom(STDERR_FILENO + 1); in main()
|
| /openbsd/src/gnu/llvm/lldb/source/Commands/ |
| D | CommandOptionsProcessLaunch.cpp | 61 if (action.Open(STDERR_FILENO, FileSpec(option_arg), false, true)) in SetOptionValue() 78 if (action.Open(STDERR_FILENO, dev_null, false, true)) in SetOptionValue()
|
| /openbsd/src/usr.sbin/rdate/ |
| D | rdate.c | 148 dup2(STDOUT_FILENO, STDERR_FILENO); in main() 178 write(STDERR_FILENO, pdata.message, strlen(pdata.message)); in main()
|
| /openbsd/src/usr.sbin/tcpdump/ |
| D | tcpdump.c | 543 dprintf(STDERR_FILENO, "\n"); in cleanup() 546 dprintf(STDERR_FILENO, in cleanup() 549 dprintf(STDERR_FILENO, in cleanup() 551 dprintf(STDERR_FILENO, in cleanup()
|
| /openbsd/src/gnu/usr.bin/cvs/diff/ |
| D | system.h | 85 #ifndef STDERR_FILENO 86 #define STDERR_FILENO 2 macro
|
| /openbsd/src/usr.bin/cu/ |
| D | command.c | 76 if (closefrom(STDERR_FILENO + 1) != 0) in pipe_command() 126 if (closefrom(STDERR_FILENO + 1) != 0) in connect_command()
|
| /openbsd/src/usr.bin/skeyaudit/ |
| D | skeyaudit.c | 53 while (++dupfd <= STDERR_FILENO) { in sanitise_stdfd() 62 if (nullfd > STDERR_FILENO) in sanitise_stdfd()
|
| /openbsd/src/gnu/llvm/lldb/source/Host/common/ |
| D | ProcessLaunchInfo.cpp | 64 if (file_action.Open(STDERR_FILENO, stderr_file_spec, read, write)) in ProcessLaunchInfo() 208 bool stderr_free = GetFileActionForFD(STDERR_FILENO) == nullptr; in SetUpPtyRedirection() 234 AppendOpenFileAction(STDERR_FILENO, secondary_file_spec, false, true); in SetUpPtyRedirection()
|