Home
last modified time | relevance | path

Searched refs:STDIN_FILENO (Results 1 – 25 of 93) sorted by relevance

1234

/titanic_41/usr/src/cmd/cmd-inet/usr.bin/
H A Drlogin.c239 (void) ioctl(STDIN_FILENO, I_POP, 0); in pop()
241 (void) tcsetattr(STDIN_FILENO, TCSANOW, &savetty); in pop()
307 if ((getattr_ret = tcgetattr(STDIN_FILENO, &savetty)) < 0) in main()
309 it = ioctl(STDIN_FILENO, I_FIND, "ttcompat"); in main()
315 if (ioctl(STDIN_FILENO, I_PUSH, "ttcompat") < 0) { in main()
768 if (ioctl(STDIN_FILENO, TIOCGETP, (char *)&sb) == -1) in doit()
775 if (ioctl(STDIN_FILENO, TIOCLGET, (char *)&deflflags) == -1) in doit()
777 if (ioctl(STDIN_FILENO, TIOCGETC, (char *)&deftc) == -1) in doit()
781 if (ioctl(STDIN_FILENO, TIOCGLTC, (char *)&defltc) == -1) in doit()
911 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &winsize) == 0) in writeroob()
[all …]
/titanic_41/usr/src/cmd/tcpd/
H A Dtry-from.c29 #ifndef STDIN_FILENO
30 #define STDIN_FILENO 0 macro
66 request_init(&request, RQ_DAEMON, argv[0], RQ_FILE, STDIN_FILENO, 0);
H A Dtcpd.c32 #ifndef STDIN_FILENO
33 #define STDIN_FILENO 0 macro
86 request_init(&request, RQ_DAEMON, argv[0], RQ_FILE, STDIN_FILENO, 0);
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.discardd/
H A Din.discardd.c68 dg_template(noop, STDIN_FILENO, NULL, 0); in main()
71 discard_stream(STDIN_FILENO, argv); in main()
/titanic_41/usr/src/lib/libc/port/gen/
H A Ddaemon.c86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { in daemon()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.daytimed/
H A Din.daytimed.c79 dg_template(daytime_dg, STDIN_FILENO, NULL, 0); in main()
82 (void) safe_write(STDIN_FILENO, daytime(), TIMEBUF_SIZE); in main()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.echod/
H A Din.echod.c70 dg_template(echo_dg, STDIN_FILENO, buf, sizeof (buf)); in main()
73 echo_stream(STDIN_FILENO, argv); in main()
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c343 if (tcgetattr(STDIN_FILENO, &save_termios) == -1) { in get_master_pty()
347 (void) ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&winsize); in get_master_pty()
486 if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &term)) { in set_tty_rawmode()
500 if (tcgetattr(STDIN_FILENO, &effective_termios) < 0) { in set_tty_rawmode()
617 nbytes = read(STDIN_FILENO, ibuf, ZLOGIN_RDBUFSIZ); in process_user_input()
734 cc = read(STDIN_FILENO, ibuf, ZLOGIN_RDBUFSIZ); in process_raw_input()
828 pollfds[2].fd = STDIN_FILENO; in doio()
1615 (void) close(STDIN_FILENO); in noninteractive_login()
1618 (void) dup2(stdin_pipe[1], STDIN_FILENO); in noninteractive_login()
1629 (void) ioctl(STDIN_FILENO, I_ANCHOR); in noninteractive_login()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.timed/
H A Din.timed.c86 dg_template(machtime_dg, STDIN_FILENO, NULL, 0); in main()
89 machtime_stream(STDIN_FILENO); in main()
/titanic_41/usr/src/lib/libpkg/common/
H A Dpkgexecv.c350 if (isatty(STDIN_FILENO)) { in pkgexecv()
356 (void) dup2(n, STDIN_FILENO); in pkgexecv()
366 (void) dup2(n, STDIN_FILENO); in pkgexecv()
H A Druncmd.c140 (void) dup2(ifd, STDIN_FILENO); in esystem()
396 (void) dup2(stdinfile, STDIN_FILENO); in e_ExecCmdArray()
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dreadpassphrase.c84 input = STDIN_FILENO; in readpassphrase()
107 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) { in readpassphrase()
155 if (input != STDIN_FILENO) in readpassphrase()
/titanic_41/usr/src/cmd/tsol/atohexlabel/
H A Datohexlabel.c120 if ((c = read(STDIN_FILENO, ascii, sizeof (ascii))) <= 0) { in main()
134 (void) ioctl(STDIN_FILENO, I_FLUSH, FLUSHR); in main()
/titanic_41/usr/src/cmd/tsol/hextoalabel/
H A Dhextoalabel.c119 if ((c = read(STDIN_FILENO, hex, sizeof (hex))) <= 0) { in main()
134 (void) ioctl(STDIN_FILENO, I_FLUSH, FLUSHR); in main()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.chargend/
H A Din.chargend.c140 dg_template(chargen_dg, STDIN_FILENO, NULL, 0); in main()
143 chargen_stream(STDIN_FILENO, argv); in main()
/titanic_41/usr/src/cmd/streams/strcmd/
H A Dstrconf.c136 if ((i = ioctl(STDIN_FILENO, I_LIST, NULL)) < 0) { in main()
150 if (ioctl(STDIN_FILENO, I_LIST, &strlist) < 0) { in main()
/titanic_41/usr/src/cmd/tsol/lslabels/
H A Dlslabels.c183 if ((c = read(STDIN_FILENO, ascii, sizeof (ascii))) <= 0) { in main()
197 (void) ioctl(STDIN_FILENO, I_FLUSH, FLUSHR); in main()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_shell.c190 (void) close(STDIN_FILENO); in mdb_shell_pipe()
191 (void) dup2(pfds[0], STDIN_FILENO); in mdb_shell_pipe()
/titanic_41/usr/src/cmd/ssh/ssh-http-proxy-connect/
H A Dssh-http-proxy-connect.c248 fds[0].fd = STDIN_FILENO; /* Poll stdin for data. */ in main()
261 if (proxy_read_write_loop(STDIN_FILENO, sock) == 0) { in main()
/titanic_41/usr/src/cmd/ssh/ssh-keysign/
H A Dssh-keysign.c227 if (ssh_msg_recv(STDIN_FILENO, &b) < 0) in main()
232 if ((fd == STDIN_FILENO) || (fd == STDOUT_FILENO)) in main()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/
H A Dencr.c158 while ((i = read(STDIN_FILENO, buf, read_size)) > 0) { in encr_gen()
178 while ((j = read(STDIN_FILENO, bufp, j)) != k && in encr_gen()
/titanic_41/usr/src/cmd/ipf/svc/
H A Dipfd.c125 (void) close(STDIN_FILENO); in daemonize_self()
130 } else if (fd != STDIN_FILENO) { in daemonize_self()
131 (void) dup2(fd, STDIN_FILENO); in daemonize_self()
/titanic_41/usr/src/cmd/ssh/ssh-socks5-proxy-connect/
H A Dssh-socks5-proxy-connect.c346 fds[0].fd = STDIN_FILENO; /* Poll stdin for data. */ in main()
359 if (proxy_read_write_loop(STDIN_FILENO, sock) == 0) { in main()
/titanic_41/usr/src/cmd/powertop/common/
H A Dpowertop.c267 pollset.fd = STDIN_FILENO; in main()
293 (void) read(STDIN_FILENO, &key, 1); in main()
/titanic_41/usr/src/cmd/drd/
H A Ddrd.c167 (void) close(STDIN_FILENO); in drd_daemonize()
169 (void) dup2(STDIN_FILENO, STDOUT_FILENO); in drd_daemonize()

1234