| /netbsd/src/bin/dd/ |
| D | misc.c | 76 (void)write(STDERR_FILENO, "\n", 1); in summary() 100 (void)write(STDERR_FILENO, "\n", 1); in posix_summary() 112 (void)write(STDERR_FILENO, buf, strlen(buf)); in posix_summary() 117 (void)write(STDERR_FILENO, buf, strlen(buf)); in posix_summary() 123 (void)write(STDERR_FILENO, buf, strlen(buf)); in posix_summary() 129 (void)write(STDERR_FILENO, buf, strlen(buf)); in posix_summary() 137 (void)write(STDERR_FILENO, buf, strlen(buf)); in posix_summary() 175 (void)write(STDERR_FILENO, wbuf, cnt); in buffer_write() 181 (void)write(STDERR_FILENO, wbuf, cnt); in buffer_write()
|
| /netbsd/src/tests/lib/libc/gen/ |
| 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()
|
| /netbsd/src/sys/arch/atari/stand/tostools/libtos/ |
| D | keywait.c | 54 tcgetattr(STDERR_FILENO, &term_attr); in key_wait() 59 tcsetattr(STDERR_FILENO, TCSAFLUSH, &term_attr); in key_wait() 60 read(STDERR_FILENO, &c, 1); in key_wait() 62 tcsetattr(STDERR_FILENO, TCSAFLUSH, &term_attr); in key_wait()
|
| D | error.c | 50 if (isatty(STDERR_FILENO) && (!*arg0 || !getenv("STDERR"))) in init_toslib() 51 (void)Fforce(STDERR_FILENO, -1); in init_toslib()
|
| /netbsd/src/crypto/external/cpl/tpm-tools/dist/src/tpm_mgmt/ |
| D | tpm_version.c | 36 int olderr = dup(STDERR_FILENO); in capture_stderr() 51 if (0 > dup2(fileno(f), STDERR_FILENO)) { in capture_stderr() 77 if (0 > fstat(STDERR_FILENO, &st)) { in end_capture_stderr() 94 if (0 > lseek(STDERR_FILENO, 0, SEEK_SET)) { in end_capture_stderr() 98 if (st.st_size != read(STDERR_FILENO, buf, st.st_size)) { in end_capture_stderr() 104 if (0 > dup2(olderr, STDERR_FILENO)) { in end_capture_stderr()
|
| /netbsd/src/external/gpl2/xcvs/dist/lib/ |
| D | dup-safer.c | 32 #ifndef STDERR_FILENO 33 # define STDERR_FILENO 2 macro 43 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
|
| D | fd-safer.c | 36 #ifndef STDERR_FILENO 37 # define STDERR_FILENO 2 macro 52 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer()
|
| /netbsd/src/tests/lib/libc/stdlib/ |
| D | h_atexit.c | 58 write(STDERR_FILENO, __func__, strlen(__func__)); \ 59 write(STDERR_FILENO, ": ", 2); \ 60 write(STDERR_FILENO, __STRING(expr), \ 62 write(STDERR_FILENO, "\n", 1); \
|
| /netbsd/src/tests/lib/libpthread/ |
| D | h_atexit.c | 63 write(STDERR_FILENO, __func__, strlen(__func__)); \ 64 write(STDERR_FILENO, ": ", 2); \ 65 write(STDERR_FILENO, __STRING(expr), \ 67 write(STDERR_FILENO, "\n", 1); \
|
| /netbsd/src/lib/libc/gen/ |
| D | disklabel.c | 231 (void)write(STDERR_FILENO, "disktab: ", 9); 232 (void)write(STDERR_FILENO, _PATH_DISKTAB, sizeof(_PATH_DISKTAB) - 1); 233 (void)write(STDERR_FILENO, ": ", 2); 235 (void)write(STDERR_FILENO, p, strlen(p)); 236 (void)write(STDERR_FILENO, "\n", 1);
|
| D | posix_spawnp.c | 109 (void)write(STDERR_FILENO, "posix_spawnp: ", 14); in posix_spawnp() 110 (void)write(STDERR_FILENO, p, lp); in posix_spawnp() 111 (void)write(STDERR_FILENO, ": path too long\n", 16); in posix_spawnp()
|
| D | execvp.c | 109 (void)write(STDERR_FILENO, "execvp: ", 8); in __weak_alias() 110 (void)write(STDERR_FILENO, p, lp); in __weak_alias() 111 (void)write(STDERR_FILENO, ": path too long\n", 16); in __weak_alias()
|
| D | daemon.c | 74 (void)dup2(fd, STDERR_FILENO); in __weak_alias() 75 if (fd > STDERR_FILENO) in __weak_alias()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/liblutil/ |
| D | detach.c | 107 dup2( sd, STDERR_FILENO ); in lutil_detach() 114 case STDERR_FILENO: in lutil_detach() 124 i != STDERR_FILENO ) in lutil_detach()
|
| D | getopt.c | 43 #ifndef STDERR_FILENO 44 #define STDERR_FILENO 2 macro 72 (void) write(STDERR_FILENO,outbuf,ptr - outbuf); in ERR()
|
| /netbsd/src/usr.bin/tset/ |
| D | tset.c | 72 if (tcgetattr(STDERR_FILENO, &mode) < 0) in main() 161 (void)ioctl(STDERR_FILENO, TIOCGWINSZ, &win); in main() 169 (void)ioctl(STDERR_FILENO, TIOCSWINSZ, &win); in main() 180 tcsetattr(STDERR_FILENO, TCSADRAIN, &mode); in main()
|
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | readpass.c | 230 (void)write(STDERR_FILENO, "\r", 1); in writemsg() 231 (void)write(STDERR_FILENO, msg, strlen(msg)); in writemsg() 232 (void)write(STDERR_FILENO, "\r\n", 2); in writemsg() 256 if (!force_askpass && isatty(STDERR_FILENO)) { in notify_start() 282 closefrom(STDERR_FILENO + 1); in notify_start()
|
| /netbsd/src/lib/librumpuser/ |
| D | rumpuser_daemonize.c | 71 dup2(fd, STDERR_FILENO); in openstdoutstderr() 159 dup2(fd, STDERR_FILENO); in rumpuser_daemonize_done() 160 if (fd > STDERR_FILENO) in rumpuser_daemonize_done()
|
| /netbsd/src/external/public-domain/xz/dist/src/xz/ |
| D | private.h | 44 #ifndef STDERR_FILENO 45 # define STDERR_FILENO (fileno(stderr)) macro
|
| /netbsd/src/lib/libutil/ |
| D | login_tty.c | 60 (void) dup2(fd, STDERR_FILENO); in login_tty() 61 if (fd != STDIN_FILENO && fd != STDOUT_FILENO && fd != STDERR_FILENO) in login_tty()
|
| /netbsd/src/external/bsd/pcc/dist/pcc/os/win32/ |
| D | config.h | 40 #ifndef STDERR_FILENO 41 #define STDERR_FILENO 2 macro
|
| /netbsd/src/libexec/rexecd/ |
| D | rexecd.c | 168 (void)dup2(STDIN_FILENO, STDERR_FILENO); 266 (void)write(STDERR_FILENO, "\0", 1); 281 (void)close(STDERR_FILENO); 315 if (dup2(pv[1], STDERR_FILENO) < 0) { 388 (void)write(STDERR_FILENO, buf, len);
|
| /netbsd/src/libexec/rshd/ |
| D | rshd.c | 390 (void)dup2(f, STDERR_FILENO); in doit() 556 (void)write(STDERR_FILENO, "\0", 1); in doit() 570 (void)close(STDERR_FILENO); in doit() 609 (void)dup2(pv[1], STDERR_FILENO); in doit() 643 (void)fcntl(STDERR_FILENO + 1, F_CLOSEM, 0); in doit() 645 for (fd = getdtablesize(); fd > STDERR_FILENO; fd--) in doit() 740 (void)write(STDERR_FILENO, buf, len + rv); in rshd_errx()
|
| /netbsd/src/external/bsd/mdocml/dist/ |
| D | mandocd.c | 196 (old_stderr = dup(STDERR_FILENO)) == -1) { in main() 204 dup2(fds[2], STDERR_FILENO) == -1) { in main() 222 if (dup2(old_stderr, STDERR_FILENO) == -1 || in main()
|
| /netbsd/src/external/bsd/kyua-testers/dist/ |
| D | stacktrace.c | 138 if (output_fd != STDERR_FILENO) { in run_gdb() 140 (void)dup2(output_fd, STDERR_FILENO); in run_gdb() 142 if (output_fd != STDOUT_FILENO && output_fd != STDERR_FILENO) in run_gdb()
|