Home
last modified time | relevance | path

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

12345678910

/openbsd/usr.bin/vi/cl/
H A Dcl_read.c147 switch (nr = read(STDIN_FILENO, bp, blen)) { in cl_read()
165 pfd[0].fd = STDIN_FILENO; in cl_read()
188 if (LF_ISSET(EC_QUOTED | EC_RAW) && !tcgetattr(STDIN_FILENO, &term1)) { in cl_read()
194 (void)tcsetattr(STDIN_FILENO, in cl_read()
197 (void)tcsetattr(STDIN_FILENO, in cl_read()
229 switch (nr = read(STDIN_FILENO, bp, blen - ONE_FOR_EOF)) { in cl_read()
268 (void)tcsetattr(STDIN_FILENO, TCSASOFT | TCSADRAIN, &term1); in cl_read()
H A Dcl_funcs.c525 (void)tcgetattr(STDIN_FILENO, &t); in cl_suspend()
526 (void)tcsetattr(STDIN_FILENO, in cl_suspend()
537 (void)tcsetattr(STDIN_FILENO, TCSASOFT | TCSADRAIN, &t); in cl_suspend()
573 (void)tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->orig); in cl_suspend()
H A Dcl_screen.c169 (void)tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->orig); in cl_quit()
324 if (tcgetattr(STDIN_FILENO, &clp->vi_enter)) { in cl_vi_init()
353 if (tcsetattr(STDIN_FILENO, TCSASOFT | TCSADRAIN, &clp->vi_enter)) { in cl_vi_init()
462 fast: if (tcsetattr(STDIN_FILENO, TCSADRAIN | TCSASOFT, &clp->ex_enter)) { in cl_ex_init()
/openbsd/regress/lib/libpthread/stdfiles/
H A Dstdfiles.c30 stdin_flags = fcntl(STDIN_FILENO, F_GETFL); in main()
44 assert(fcntl(STDIN_FILENO, F_SETFL, new_flags) != -1); in main()
46 new_flags = fcntl(STDIN_FILENO, F_GETFL); in main()
96 assert(fcntl(STDIN_FILENO, F_SETFL, stdin_flags) != -1); in main()
98 new_flags = fcntl(STDIN_FILENO, F_GETFL); in main()
/openbsd/usr.bin/script/
H A Dscript.c136 if (tcgetattr(STDIN_FILENO, &tt) == 0 && in main()
137 ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == 0) in main()
149 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt); in main()
187 cc = read(STDIN_FILENO, ibuf, BUFSIZ); in main()
230 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) != -1) { in handlesigwinch()
248 (void)close(STDIN_FILENO); in dooutput()
352 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &tt); in done()
/openbsd/games/hunt/hunt/
H A Dplayit.c124 tcflush(STDIN_FILENO, TCIFLUSH); in playit()
190 FD_SET(STDIN_FILENO, &s_readfds); in getchr()
191 s_nfds = (Socket > STDIN_FILENO) ? Socket : STDIN_FILENO; in getchr()
202 if (FD_ISSET(STDIN_FILENO, &readfds)) in getchr()
228 count = read(STDIN_FILENO, Buf, sizeof Buf); in send_stuff()
/openbsd/games/tetris/
H A Dinput.c72 pfd[0].fd = STDIN_FILENO; in rwait()
111 if (rwait(&ts) && read(STDIN_FILENO, &c, 1) != 1) in tsleep()
140 if (read(STDIN_FILENO, &c, 1) != 1) in tgetchar()
/openbsd/gnu/lib/libreadline/examples/
H A Dexcallback.c103 if( tcgetattr(STDIN_FILENO, &term) < 0 ) { in main()
112 if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { in main()
144 if( tcsetattr(STDIN_FILENO, TCSANOW, &term) < 0 ) { in process_line()
H A Drlfe.c157 tcsetattr(STDIN_FILENO, TCSANOW, &orig_term); in sig_child()
487 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0) in main()
543 dup2(slave, STDIN_FILENO); in main()
579 tcgetattr(STDIN_FILENO, &orig_term); in main()
601 tcsetattr(STDIN_FILENO, TCSANOW, &t); in main()
618 in_from_tty_fd = STDIN_FILENO; in main()
633 if (ioctl (STDIN_FILENO, TIOCGWINSZ, &ws) >= 0) in main()
678 int count = read (STDIN_FILENO, ch, sizeof(ch)); in main()
722 tcsetattr(STDIN_FILENO, TCSANOW, &orig_term); in main()
/openbsd/usr.bin/cu/
H A Dcu.c95 if (isatty(STDIN_FILENO) && tcgetattr(STDIN_FILENO, &saved_tio) != 0) in main()
219 input_ev = bufferevent_new(STDIN_FILENO, stream_read, NULL, in main()
269 if (!isatty(STDIN_FILENO)) in set_termios()
284 if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &tio) != 0) in set_termios()
291 if (isatty(STDIN_FILENO)) in restore_termios()
292 tcsetattr(STDIN_FILENO, TCSAFLUSH, &saved_tio); in restore_termios()
326 state_change = isatty(STDIN_FILENO); in stream_read()
/openbsd/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dpty_spawn.py191 self.STDIN_FILENO = pty.STDIN_FILENO
761 mode = tty.tcgetattr(self.STDIN_FILENO)
762 tty.setraw(self.STDIN_FILENO)
768 tty.tcsetattr(self.STDIN_FILENO, tty.TCSAFLUSH, mode)
793 r = poll_ignore_interrupts([self.child_fd, self.STDIN_FILENO])
796 [self.child_fd, self.STDIN_FILENO], [], []
813 if self.STDIN_FILENO in r:
814 data = self.__interact_read(self.STDIN_FILENO)
/openbsd/usr.sbin/rdate/
H A Drdate.c144 dup2(p[1], STDIN_FILENO); in main()
145 if (p[1] != STDIN_FILENO) in main()
147 dup2(STDIN_FILENO, STDOUT_FILENO); in main()
/openbsd/games/boggle/boggle/
H A Dtimer.c97 FD_SET(STDIN_FILENO, &fdbits); in waitch()
98 return (select(STDIN_FILENO+1, &fdbits, NULL, NULL, &duration)); in waitch()
/openbsd/usr.bin/tmux/
H A Dclient.c301 if ((ttynam = ttyname(STDIN_FILENO)) == NULL) in client_main()
321 if (isatty(STDIN_FILENO) && in client_main()
323 tty_term_read_list(termname, STDIN_FILENO, &caps, &ncaps, in client_main()
340 if (tcgetattr(STDIN_FILENO, &saved_tio) != 0) { in client_main()
354 tcsetattr(STDIN_FILENO, TCSANOW, &tio); in client_main()
404 setblocking(STDIN_FILENO, 1); in client_main()
470 if ((fd = dup(STDIN_FILENO)) == -1) in client_send_identify()
502 setblocking(STDIN_FILENO, 1); in client_exec()
/openbsd/gnu/llvm/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
H A D_fork_pty.py6 from pty import (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO, CHILD)
33 os.dup2(child_fd, STDIN_FILENO)
/openbsd/libexec/lockspool/
H A Dlockspool.c89 pfd.fd = STDIN_FILENO; in main()
97 nread = read(STDIN_FILENO, &c, 1); in main()
/openbsd/sys/arch/octeon/stand/rdboot/
H A Dcmd.c263 tcgetattr(STDIN_FILENO, &saved_tio); in readline()
266 tcsetattr(STDIN_FILENO, TCSANOW, &tio); in readline()
269 FD_SET(STDIN_FILENO, &fdset); in readline()
272 if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0) in readline()
276 tcsetattr(STDIN_FILENO, TCSANOW, &saved_tio); in readline()
/openbsd/sys/arch/powerpc64/stand/rdboot/
H A Dcmd.c263 tcgetattr(STDIN_FILENO, &saved_tio); in readline()
266 tcsetattr(STDIN_FILENO, TCSANOW, &tio); in readline()
269 FD_SET(STDIN_FILENO, &fdset); in readline()
272 if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0) in readline()
276 tcsetattr(STDIN_FILENO, TCSANOW, &saved_tio); in readline()
/openbsd/lib/libc/gen/
H A Dreadpassphrase.c71 input = STDIN_FILENO; in readpassphrase()
80 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) { in readpassphrase()
153 if (input != STDIN_FILENO) in readpassphrase()
/openbsd/gnu/llvm/lldb/tools/debugserver/source/
H A DPseudoTerminal.cpp166 if (::dup2(m_secondary_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
/openbsd/gnu/usr.bin/cvs/src/
H A Dserver.h4 #ifndef STDIN_FILENO
5 #define STDIN_FILENO 0 macro
/openbsd/usr.sbin/cron/
H A Dpopen.c112 if (pdes[0] != STDIN_FILENO) { in cron_popen()
113 dup2(pdes[0], STDIN_FILENO); in cron_popen()
/openbsd/gnu/usr.bin/gcc/gcc/fixinc/
H A Dprocopen.c157 close (STDIN_FILENO);
165 fcntl (stdin_fd, F_DUPFD, STDIN_FILENO);
/openbsd/gnu/gcc/fixincludes/
H A Dprocopen.c151 close (STDIN_FILENO); in chain_open()
159 dup2 (stdin_fd, STDIN_FILENO); in chain_open()
/openbsd/usr.bin/mg/
H A Dttyio.c48 if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) in ttopen()
169 ret = read(STDIN_FILENO, &c, 1); in ttgetc()

12345678910