Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/cmd/bhyve/
H A Dconsport.c65 tcsetattr(STDIN_FILENO, TCSANOW, &tio_orig); in ttyclose()
73 tcgetattr(STDIN_FILENO, &tio_orig); in ttyopen()
76 tcsetattr(STDIN_FILENO, TCSANOW, &tio_new); in ttyopen()
90 FD_SET(STDIN_FILENO, &rfds); in tty_char_available()
93 if (select(STDIN_FILENO + 1, &rfds, NULL, NULL, &tv) > 0) { in tty_char_available()
106 read(STDIN_FILENO, &rb, 1); in ttyread()
150 if (caph_rights_limit(STDIN_FILENO, &rights) == -1) in console_handler()
152 if (caph_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1) in console_handler()
/illumos-gate/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()
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()
911 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &winsize) == 0) in writeroob()
955 n = read(STDIN_FILENO, &c, 1); in writer()
1181 if (compat_ioctl(STDIN_FILENO, TIOCSETP, &sb) == -1) in oob()
1338 if (compat_ioctl(STDIN_FILENO, TIOCSLTC, ltc) == -1) in mode()
1340 if (compat_ioctl(STDIN_FILENO, TIOCSETC, tc) == -1) in mode()
[all …]
/illumos-gate/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);
/illumos-gate/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()
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c735 cc = read(STDIN_FILENO, ibuf, ZLOGIN_RDBUFSIZ); in process_raw_input()
829 pollfds[2].fd = STDIN_FILENO; in doio()
1616 (void) close(STDIN_FILENO); in noninteractive_login()
1619 (void) dup2(stdin_pipe[1], STDIN_FILENO); in noninteractive_login()
1630 (void) ioctl(STDIN_FILENO, I_ANCHOR); in noninteractive_login()
1851 if (isatty(STDIN_FILENO)) in main()
1970 if (set_tty_rawmode(STDIN_FILENO) == -1) { in main()
2088 if (nfd != STDIN_FILENO) { in main()
2089 if (dup2(nfd, STDIN_FILENO) < 0) { in main()
2136 if (set_tty_rawmode(STDIN_FILENO) == -1) { in main()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddaemon.c87 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { in daemon()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/acpi/common/
H A Dosunixxf.c249 if (!isatty (STDIN_FILENO)) in OsEnterLineEditMode()
256 if (tcgetattr (STDIN_FILENO, &OriginalTermAttributes)) in OsEnterLineEditMode()
271 if (tcsetattr (STDIN_FILENO, TCSANOW, &LocalTermAttributes)) in OsEnterLineEditMode()
293 if (tcsetattr (STDIN_FILENO, TCSANOW, &OriginalTermAttributes)) in OsExitLineEditMode()
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/powertop/common/
H A Dpowertop.c265 pollset.fd = STDIN_FILENO; in main()
291 (void) read(STDIN_FILENO, &key, 1); in main()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Ddaemon.c123 (void) fcntl(fd, F_DUP2FD, STDIN_FILENO); in daemonize_fini()
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c241 (void) dup2(stdinfile, STDIN_FILENO); in z_ExecCmdArray()
487 (void) ioctl(STDIN_FILENO, I_ANCHOR); in _zexec()
839 (void) dup2(stdinfile, STDIN_FILENO); in _z_zone_exec()
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlisten.c37 if (tcgetattr(STDIN_FILENO, &termbuf) == 0) { in print_prompt()
39 tcsetattr(STDIN_FILENO, TCSANOW, &termbuf); in print_prompt()

1234