Home
last modified time | relevance | path

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

1234

/external/bison/djgpp/
Dsubpipe.c37 #ifndef STDIN_FILENO
38 # define STDIN_FILENO 0 macro
125 old_stdin = dup(STDIN_FILENO); in create_subpipe()
198 if (dup2(from_out_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
211 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]); in end_of_output_subpipe()
216 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]); in end_of_output_subpipe()
232 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]); in end_of_output_subpipe()
238 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]); in end_of_output_subpipe()
257 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]); in end_of_output_subpipe()
260 if (dup2(to_in_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
[all …]
/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()
288 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen("/dev/"), UT_LINESIZE); in utmp_entry()
308 tcsetpgrp(STDIN_FILENO, pid); in getty_main()
[all …]
Dtelnet.c144 if (read(STDIN_FILENO, &input, 1) <= 0) { in handle_esc()
295 if (i) write(STDIN_FILENO, toybuf, i); in read_server()
347 pfds[0].fd = STDIN_FILENO; in telnet_main()
362 len = read(STDIN_FILENO, TT.buff, DATABUFSIZE); in telnet_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/selinux/policycoreutils/run_init/
Dopen_init_pty.c236 if (isatty(STDIN_FILENO)) { in main()
260 if (tcgetattr(STDIN_FILENO, &s_tty_attr)) { in main()
268 if (tcsetattr(STDIN_FILENO, TCSANOW, &s_tty_attr)) { in main()
281 setfd_nonblock(STDIN_FILENO); in main()
284 if (isatty(STDIN_FILENO)) { in main()
285 if (tty_semi_raw(STDIN_FILENO) < 0) { in main()
310 FD_SET(STDIN_FILENO, &readfds); in main()
369 if (FD_ISSET(STDIN_FILENO, &readfds)) { in main()
373 ssize_t n = rb_read(&inbuf, STDIN_FILENO); in main()
/external/bison/lib/
Dspawn-pipe.c155 orig_stdin = dup_safer_noinherit (STDIN_FILENO); in create_pipe()
166 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) in create_pipe()
176 && (stdinfd == STDIN_FILENO in create_pipe()
177 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
224 undup_safer_noinherit (orig_stdin, STDIN_FILENO); in create_pipe()
288 ofd[0], STDIN_FILENO)) in create_pipe()
315 STDIN_FILENO, in create_pipe()
Dfd-safer.c39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer()
Dfd-safer-flag.c42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer_flag()
/external/protobuf/src/google/protobuf/compiler/
Dplugin.cc41 #ifndef STDIN_FILENO
42 #define STDIN_FILENO 0 macro
103 _setmode(STDIN_FILENO, _O_BINARY); in PluginMain()
108 if (!request.ParseFromFileDescriptor(STDIN_FILENO)) { in PluginMain()
Dcommand_line_interface_unittest.cc67 #ifndef STDIN_FILENO
68 #define STDIN_FILENO 0 macro
1498 duped_stdin_ = dup(STDIN_FILENO); in SetUp()
1502 dup2(duped_stdin_, STDIN_FILENO); in TearDown()
1515 dup2(fd, STDIN_FILENO); in RedirectStdinFromFile()
/external/wpa_supplicant_8/src/utils/
Dedit_simple.c66 eloop_register_read_sock(STDIN_FILENO, edit_read_char, NULL, NULL); in edit_init()
79 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()
Dedit.c1129 tcgetattr(STDIN_FILENO, &prevt); in edit_init()
1132 tcsetattr(STDIN_FILENO, TCSANOW, &newt); in edit_init()
1134 eloop_register_read_sock(STDIN_FILENO, edit_read_char, NULL, NULL); in edit_init()
1157 eloop_unregister_read_sock(STDIN_FILENO); in edit_deinit()
1158 tcsetattr(STDIN_FILENO, TCSANOW, &prevt); in edit_deinit()
/external/openssh/openbsd-compat/
Dreadpassphrase.c93 input = STDIN_FILENO; in readpassphrase()
116 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) { in readpassphrase()
172 if (input != STDIN_FILENO) in readpassphrase()
Ddaemon.c72 (void)dup2(fd, STDIN_FILENO); in daemon()
Dreadpassphrase.c.orig93 input = STDIN_FILENO;
116 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) {
172 if (input != STDIN_FILENO)
/external/lldb/tools/debugserver/source/
DPseudoTerminal.cpp212 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
/external/llvm/tools/lli/Unix/
DRPCChannel.inc53 if (PipeFD[0][0] != STDIN_FILENO) {
54 dup2(PipeFD[0][0], STDIN_FILENO);
83 ConnectionData = (void *)new ConnectionData_t(STDIN_FILENO, STDOUT_FILENO);
/external/lldb/source/Utility/
DPseudoTerminal.cpp251 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
/external/bison/m4/
Dposix_spawn.m4108 #ifndef STDIN_FILENO
109 # define STDIN_FILENO 0
179 (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
251 #ifndef STDIN_FILENO
252 # define STDIN_FILENO 0
308 …(err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) !…
340 /* See if reading from STDIN_FILENO yields the expected contents. */
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_process_libcdep.cc194 internal_close(STDIN_FILENO); in StartSymbolizerSubprocess()
195 internal_dup2(outfd[0], STDIN_FILENO); in StartSymbolizerSubprocess()
/external/compiler-rt/test/asan/TestCases/
Dclosed-fds.cc17 close(STDIN_FILENO); in main()
/external/protobuf/src/google/protobuf/testing/
Dzcgunzip.cc55 FileInputStream fin(STDIN_FILENO); in main()
Dzcgzip.cc68 readlen = read(STDIN_FILENO, outptr, outlen); in main()
/external/lldb/test/pexpect-2.4/
Dpexpect.py378 self.STDIN_FILENO = pty.STDIN_FILENO
1494 mode = tty.tcgetattr(self.STDIN_FILENO)
1495 tty.setraw(self.STDIN_FILENO)
1499 tty.tcsetattr(self.STDIN_FILENO, tty.TCSAFLUSH, mode)
1523 r,w,e = self.__select([self.child_fd, self.STDIN_FILENO], [], [])
1531 if self.STDIN_FILENO in r:
1532 data = self.__interact_read(self.STDIN_FILENO)

1234