Home
last modified time | relevance | path

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

12345

/external/python/cpython3/Lib/
Dpty.py15 STDIN_FILENO = 0 variable
104 os.dup2(slave_fd, STDIN_FILENO)
134 fds = [master_fd, STDIN_FILENO]
143 if STDIN_FILENO in rfds:
144 data = stdin_read(STDIN_FILENO)
146 fds.remove(STDIN_FILENO)
158 mode = tty.tcgetattr(STDIN_FILENO)
159 tty.setraw(STDIN_FILENO)
167 tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
/external/python/cpython2/Lib/
Dpty.py15 STDIN_FILENO = 0 variable
115 os.dup2(slave_fd, STDIN_FILENO)
145 fds = [master_fd, STDIN_FILENO]
154 if STDIN_FILENO in rfds:
155 data = stdin_read(STDIN_FILENO)
157 fds.remove(STDIN_FILENO)
169 mode = tty.tcgetattr(STDIN_FILENO)
170 tty.setraw(STDIN_FILENO)
178 tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode)
/external/toybox/toys/pending/
Dgetty.c149 if (tcgetattr(STDIN_FILENO, &TT.termios) < 0) perror_exit("tcgetattr"); in termios_init()
151 tcflush(STDIN_FILENO, TCIOFLUSH); in termios_init()
172 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in termios_init()
186 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in sense_baud()
188 size = readall(STDIN_FILENO, TT.buff, sizeof(TT.buff)-1); in sense_baud()
199 if (tcsetattr(STDIN_FILENO, TCSANOW, &TT.termios) < 0) in sense_baud()
244 tcflush(STDIN_FILENO, TCIFLUSH); // Flush pending speed switches in read_login_name()
277 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + in utmp_entry()
287 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen("/dev/"), UT_LINESIZE); in utmp_entry()
306 tcsetpgrp(STDIN_FILENO, pid); in getty_main()
[all …]
Dtelnet.c111 if (read(STDIN_FILENO, &input, 1) <= 0) { in handle_esc()
262 if (i) xwrite(STDIN_FILENO, toybuf, i); in read_server()
314 pfds[0].fd = STDIN_FILENO; in telnet_main()
329 len = read(STDIN_FILENO, TT.buff, DATABUFSIZE); in telnet_main()
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c211 setfd_block(STDIN_FILENO); in setfd_atexit()
258 if (isatty(STDIN_FILENO)) { in main()
282 if (tcgetattr(STDIN_FILENO, &s_tty_attr)) { in main()
290 if (tcsetattr(STDIN_FILENO, TCSANOW, &s_tty_attr)) { in main()
303 setfd_nonblock(STDIN_FILENO); in main()
310 if (isatty(STDIN_FILENO)) { in main()
311 if (tty_semi_raw(STDIN_FILENO) < 0) { in main()
336 FD_SET(STDIN_FILENO, &readfds); in main()
396 if (FD_ISSET(STDIN_FILENO, &readfds)) { in main()
400 ssize_t n = rb_read(&inbuf, STDIN_FILENO); in main()
/external/vboot_reference/host/lib/
Dhost_signature.c192 close(p_to_c[STDIN_FILENO]); in InvokeExternalSigner()
202 n = read(c_to_p[STDIN_FILENO], outbuf, outbufsize); in InvokeExternalSigner()
218 close (c_to_p[STDIN_FILENO]); in InvokeExternalSigner()
221 if (STDIN_FILENO != p_to_c[STDIN_FILENO]) { in InvokeExternalSigner()
222 if (dup2(p_to_c[STDIN_FILENO], STDIN_FILENO) != STDIN_FILENO) { in InvokeExternalSigner()
/external/protobuf/src/google/protobuf/testing/
Dzcgunzip.cc47 #ifndef STDIN_FILENO
48 #define STDIN_FILENO 0 macro
62 FileInputStream fin(STDIN_FILENO); in main()
Dzcgzip.cc46 #ifndef STDIN_FILENO
47 #define STDIN_FILENO 0 macro
75 readlen = read(STDIN_FILENO, outptr, outlen); in main()
/external/linux-kselftest/tools/testing/selftests/filesystems/
Ddevpts_pts.c35 if (!terminal_dup2(fd, (int[]){STDIN_FILENO, STDOUT_FILENO, in terminal_set_stdfds()
151 ret = resolve_procfd_symlink(STDIN_FILENO, buf, sizeof(buf)); in do_tiocgptpeer()
162 STDIN_FILENO, buf); in do_tiocgptpeer()
167 "symlink are valid: %s\n", STDIN_FILENO, buf); in do_tiocgptpeer()
284 if (!isatty(STDIN_FILENO)) { in main()
/external/protobuf/src/google/protobuf/compiler/
Dplugin.cc41 #ifndef STDIN_FILENO
42 #define STDIN_FILENO 0 macro
163 _setmode(STDIN_FILENO, _O_BINARY); in PluginMain()
168 if (!request.ParseFromFileDescriptor(STDIN_FILENO)) { in PluginMain()
/external/curl/src/
Dtool_main.c87 int fd[2] = { STDIN_FILENO, STDIN_FILENO }; in main_checkfds()
88 while(fd[0] == STDIN_FILENO || in main_checkfds()
91 fd[1] == STDIN_FILENO || in main_checkfds()
Dtool_main.h31 #ifndef STDIN_FILENO
32 # define STDIN_FILENO fileno(stdin) macro
/external/libdrm/tests/kms/
Dkms-steal-crtc.c118 int nfds = STDIN_FILENO + 1; in main()
127 FD_SET(STDIN_FILENO, &fds); in main()
139 if (FD_ISSET(STDIN_FILENO, &fds)) in main()
Dkms-universal-planes.c328 FD_SET(STDIN_FILENO, &fds); in main()
330 err = select(STDIN_FILENO + 1, &fds, NULL, NULL, &timeout); in main()
340 if (FD_ISSET(STDIN_FILENO, &fds)) in main()
/external/curl/tests/libtest/
Dlib556.c28 #ifndef STDIN_FILENO
29 #define STDIN_FILENO 0 macro
/external/python/cpython2/Lib/test/
Dtest_pty.py217 self.orig_stdin_fileno = pty.STDIN_FILENO
225 pty.STDIN_FILENO = self.orig_stdin_fileno
249 pty.STDIN_FILENO = mock_stdin_fd
278 pty.STDIN_FILENO = mock_stdin_fd
/external/python/cpython3/Lib/test/
Dtest_pty.py218 self.orig_stdin_fileno = pty.STDIN_FILENO
227 pty.STDIN_FILENO = self.orig_stdin_fileno
261 pty.STDIN_FILENO = mock_stdin_fd
289 pty.STDIN_FILENO = mock_stdin_fd
/external/openssh/openbsd-compat/
Dreadpassphrase.c93 input = STDIN_FILENO; in readpassphrase()
102 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) { in readpassphrase()
177 if (input != STDIN_FILENO) in readpassphrase()
/external/wpa_supplicant_8/src/utils/
Dedit_simple.c72 eloop_register_read_sock(STDIN_FILENO, edit_read_char, NULL, NULL); in edit_init()
85 eloop_unregister_read_sock(STDIN_FILENO); in edit_deinit()
Dedit_readline.c128 eloop_register_read_sock(STDIN_FILENO, edit_read_char, NULL, NULL); in edit_init()
156 eloop_unregister_read_sock(STDIN_FILENO); in edit_deinit()
/external/libbrillo/brillo/
Dprocess_unittest.cc219 EXPECT_EQ(-1, process_.GetPipe(STDIN_FILENO)); in TEST_F()
238 EXPECT_EQ(-1, process_.GetPipe(STDIN_FILENO)); in TEST_F()
256 EXPECT_EQ(-1, process_.GetPipe(STDIN_FILENO)); in TEST_F()
266 process_.RedirectUsingPipe(STDIN_FILENO, true); in TEST_F()
269 int write_fd = process_.GetPipe(STDIN_FILENO); in TEST_F()
/external/honggfuzz/libhfuzz/
Dpersistent.c77 int in_fd = STDIN_FILENO; in HonggfuzzRunFromFile()
83 in_fd = STDIN_FILENO; in HonggfuzzRunFromFile()
/external/curl/docs/examples/
Drtsp.c49 tcgetattr(STDIN_FILENO, &oldt); in _getch()
52 tcsetattr(STDIN_FILENO, TCSANOW, &newt); in _getch()
54 tcsetattr(STDIN_FILENO, TCSANOW, &oldt); in _getch()
/external/mksh/src/
Dos2.c179 if (!isatty(STDIN_FILENO)) in os2_init()
180 setmode(STDIN_FILENO, O_BINARY); in os2_init()
421 saved_mode = setmode(STDIN_FILENO, O_TEXT); in execve()
442 setmode(STDIN_FILENO, saved_mode); in execve()
/external/libchrome/base/process/
Dlaunch_posix.cc248 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
278 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
400 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess()
401 if (new_fd != STDIN_FILENO) { in LaunchProcess()
603 fd_shuffle1.push_back(InjectionArc(dev_null, STDIN_FILENO, true)); in GetAppOutputInternal()

12345