Home
last modified time | relevance | path

Searched refs:STDERR_FILENO (Results 1 – 25 of 178) sorted by relevance

12345678

/openbsd/src/regress/lib/libpthread/stdfiles/
Dstdfiles.c36 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/
Dmain.c102 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/
Dmisc.c76 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/
Dmore.c308 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/
Dprogs.priv.h173 #ifndef STDERR_FILENO
174 #define STDERR_FILENO 2 macro
206 #ifndef STDERR_FILENO
207 #define STDERR_FILENO 2 macro
/openbsd/src/usr.bin/nohup/
Dnohup.c87 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/
Dlogin_tty.c45 (void) dup2(fd, STDERR_FILENO); in login_tty()
46 if (fd > STDERR_FILENO) in login_tty()
/openbsd/src/usr.bin/ssh/
Dreadpass.c226 (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()
Dsshd-session.c97 #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)
Dlog.c56 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.py6 from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD)
35 os.dup2(child_fd, STDERR_FILENO)
/openbsd/src/regress/lib/libc/atexit/
Datexit_test.c146 dprintf(STDERR_FILENO, "SIGSEGV\n"); in handle_signal()
149 dprintf(STDERR_FILENO, "unexpected signal caught\n"); in handle_signal()
/openbsd/src/usr.bin/lock/
Dlock.c231 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/
Dpax.c98 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/
Dt_dup.c177 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/
DPseudoTerminal.cpp170 if (::dup2(m_secondary_fd, STDERR_FILENO) != STDERR_FILENO) in Fork()
/openbsd/src/gnu/llvm/lldb/source/Host/windows/
DProcessLauncherWindows.cpp73 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/
Disakmpd.c372 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/
DCommandOptionsProcessLaunch.cpp61 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/
Drdate.c148 dup2(STDOUT_FILENO, STDERR_FILENO); in main()
178 write(STDERR_FILENO, pdata.message, strlen(pdata.message)); in main()
/openbsd/src/usr.sbin/tcpdump/
Dtcpdump.c543 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/
Dsystem.h85 #ifndef STDERR_FILENO
86 #define STDERR_FILENO 2 macro
/openbsd/src/usr.bin/cu/
Dcommand.c76 if (closefrom(STDERR_FILENO + 1) != 0) in pipe_command()
126 if (closefrom(STDERR_FILENO + 1) != 0) in connect_command()
/openbsd/src/usr.bin/skeyaudit/
Dskeyaudit.c53 while (++dupfd <= STDERR_FILENO) { in sanitise_stdfd()
62 if (nullfd > STDERR_FILENO) in sanitise_stdfd()
/openbsd/src/gnu/llvm/lldb/source/Host/common/
DProcessLaunchInfo.cpp64 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()

12345678