/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_tag.c | 81 if ((tag_files.ofd = dup(STDOUT_FILENO)) == -1) { in term_tag_init() 131 if (dup2(ofd, STDOUT_FILENO) == -1) { in term_tag_init() 184 if ((irc = dup2(tag_files.ofd, STDOUT_FILENO)) == -1) in term_tag_close() 198 tc_pgid = tcgetpgrp(STDOUT_FILENO); in term_tag_unlink() 202 (void)tcsetpgrp(STDOUT_FILENO, tag_files.tcpgid); in term_tag_unlink()
|
H A D | main.c | 380 isatty(STDOUT_FILENO) == 0)) in main() 385 ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1 && in main() 1141 if ((written = write(STDOUT_FILENO, cp, len)) == -1) { in passthrough() 1236 tc_pgid = tcgetpgrp(STDOUT_FILENO); in run_pager() 1239 (void)tcsetpgrp(STDOUT_FILENO, man_pgid); in run_pager() 1251 (void)tcsetpgrp(STDOUT_FILENO, pager_pid); in run_pager() 1352 (void)tcsetpgrp(STDOUT_FILENO, pager_pid); in spawn_pager() 1369 while (tcgetpgrp(STDOUT_FILENO) != getpid()) in spawn_pager()
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgexecv.c | 385 if (isatty(STDOUT_FILENO)) { in pkgexecv() 396 (void) dup2(n, STDOUT_FILENO); in pkgexecv() 411 (void) dup2(n, STDOUT_FILENO); in pkgexecv() 419 (void) dup2(STDOUT_FILENO, STDERR_FILENO); in pkgexecv()
|
H A D | runcmd.c | 143 if (ofd >= 0 && ofd != STDOUT_FILENO) { in esystem() 144 (void) dup2(ofd, STDOUT_FILENO); in esystem() 398 (void) dup2(ipipe[1], STDOUT_FILENO); in e_ExecCmdArray()
|
/illumos-gate/usr/src/test/libc-tests/tests/posix_spawn/ |
H A D | getsid.c | 25 if (write(STDOUT_FILENO, &sid, sizeof (sid)) != sizeof (sid)) { in main() 29 if (write(STDOUT_FILENO, &pg, sizeof (pg)) != sizeof (pg)) { in main()
|
/illumos-gate/usr/src/cmd/enhance/ |
H A D | enhance.c | 157 if(!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) { in main() 539 while(dup2(subsid, STDOUT_FILENO) < 0 && errno==EINTR) in pty_child() 629 (void) pty_write_to_fd(STDOUT_FILENO, "\r", 1); in GL_FD_EVENT_FN() 633 (void) pty_write_to_fd(STDOUT_FILENO, rbuff, nextp - rbuff); in GL_FD_EVENT_FN() 637 (void) pty_write_to_fd(STDOUT_FILENO, "\r\n", 2); in GL_FD_EVENT_FN()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | daemon.c | 91 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { in daemon()
|
/illumos-gate/usr/src/cmd/syslogd/ |
H A D | conf.c | 75 (void) close(STDOUT_FILENO); in open_conf_pipe() 77 if (dup2(pfds[1], STDOUT_FILENO) == -1) { in open_conf_pipe()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 643 (void) write(STDOUT_FILENO, &cmdchar, 1); in process_user_input() 644 (void) write(STDOUT_FILENO, cc, strlen(cc)); in process_user_input() 672 (void) write(STDOUT_FILENO, obuf, ln); in process_user_input() 870 if (process_output(stdout_fd, STDOUT_FILENO) in doio() 961 (void) write(STDOUT_FILENO, ibuf, cc); in doio() 1617 (void) close(STDOUT_FILENO); in noninteractive_login() 1620 (void) dup2(stdout_pipe[1], STDOUT_FILENO); in noninteractive_login() 1631 (void) ioctl(STDOUT_FILENO, I_ANCHOR); in noninteractive_login() 2236 (void) dup2(slavefd, STDOUT_FILENO); in main() 2238 if (slavefd != STDIN_FILENO && slavefd != STDOUT_FILENO && in main()
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_exec.c | 243 (void) dup2(ipipe[1], STDOUT_FILENO); in z_ExecCmdArray() 488 (void) ioctl(STDOUT_FILENO, I_ANCHOR); in _zexec() 841 (void) dup2(ipipe[1], STDOUT_FILENO); in _z_zone_exec()
|
H A D | zones_utils.c | 156 if (a_fd == STDIN_FILENO || a_fd == STDOUT_FILENO || in _z_close_file_descriptors()
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | extern.h | 39 if (write(STDOUT_FILENO, p, size) != (ssize_t)size) \
|
/illumos-gate/usr/src/cmd/projects/ |
H A D | projects.c | 138 int smart = isatty(STDOUT_FILENO); in print_projects() 160 if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1 && in print_projects()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 122 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); in daemonize_fini()
|
/illumos-gate/usr/src/ucbhead/ |
H A D | unistd.h | 118 #define STDOUT_FILENO 1 macro
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | fork.c | 265 (void) close(STDOUT_FILENO); in fork_sulogin() 277 if (fd_console != STDOUT_FILENO) in fork_sulogin() 278 while (dup2(fd_console, STDOUT_FILENO) < 0 && in fork_sulogin()
|
H A D | log.c | 295 (void) dup2(fd, STDOUT_FILENO); in setlog() 298 if (fd != STDOUT_FILENO && fd != STDERR_FILENO) in setlog()
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 132 if (dup2(output_pipe[0], STDOUT_FILENO) != STDOUT_FILENO) { in bart_create()
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | fileno.c | 191 check_file(stdout, STDOUT_FILENO, "default stdout fd is correct"); in main()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/include/ |
H A D | db-int.h | 269 #define STDOUT_FILENO 1 macro
|
/illumos-gate/usr/src/cmd/nohup/ |
H A D | nohup.c | 162 if (isatty(STDOUT_FILENO)) { in main() 166 (void) dup2(fd, STDOUT_FILENO); in main()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
H A D | mDNSUNP.c | 1043 if (fd != STDOUT_FILENO) (void)dup2(fd, STDOUT_FILENO); in daemon() 1045 if (fd != STDIN_FILENO && fd != STDOUT_FILENO && fd != STDERR_FILENO) in daemon()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rlogin.c | 1034 if (write(STDOUT_FILENO, buf, p - buf) < 0) in echo() 1201 if (ioctl(STDOUT_FILENO, TIOCFLUSH, (char *)&out) == -1) in oob() 1269 n = write(STDOUT_FILENO, bufp, remaining); in reader()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | script_handler.c | 143 (void) dup2(n, STDOUT_FILENO); in run_script()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_main.c | 214 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); in daemonize_fini()
|