/external/bison/djgpp/ |
D | subpipe.c | 37 #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/ |
D | getty.c | 149 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 …]
|
D | telnet.c | 111 if (read(STDIN_FILENO, &input, 1) <= 0) { in handle_esc() 262 if (i) xwrite(STDIN_FILENO, toybuf, i); in read_server() 313 pfds[0].fd = STDIN_FILENO; in telnet_main() 328 len = read(STDIN_FILENO, TT.buff, DATABUFSIZE); in telnet_main()
|
/external/vboot_reference/host/lib/ |
D | host_signature.c | 192 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/ |
D | open_init_pty.c | 236 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/protobuf/src/google/protobuf/compiler/ |
D | plugin.cc | 41 #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()
|
/external/bison/lib/ |
D | spawn-pipe.c | 155 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()
|
/external/curl/src/ |
D | tool_main.c | 77 int fd[2] = { STDIN_FILENO, STDIN_FILENO }; in main_checkfds() 78 while(fd[0] == STDIN_FILENO || in main_checkfds() 81 fd[1] == STDIN_FILENO || in main_checkfds()
|
D | tool_main.h | 31 #ifndef STDIN_FILENO 32 # define STDIN_FILENO fileno(stdin) macro
|
D | tool_getpass.c | 232 fd = STDIN_FILENO; /* use stdin if the tty couldn't be used */ in getpass_r() 249 if(STDIN_FILENO != fd) in getpass_r()
|
/external/libdrm/tests/kms/ |
D | kms-steal-crtc.c | 118 int nfds = STDIN_FILENO + 1; in main() 127 FD_SET(STDIN_FILENO, &fds); in main() 139 if (FD_ISSET(STDIN_FILENO, &fds)) in main()
|
D | kms-universal-planes.c | 329 FD_SET(STDIN_FILENO, &fds); in main() 331 err = select(STDIN_FILENO + 1, &fds, NULL, NULL, &timeout); in main() 341 if (FD_ISSET(STDIN_FILENO, &fds)) in main()
|
/external/curl/tests/libtest/ |
D | lib556.c | 28 #ifndef STDIN_FILENO 29 #define STDIN_FILENO 0 macro
|
/external/wpa_supplicant_8/src/utils/ |
D | edit_simple.c | 66 eloop_register_read_sock(STDIN_FILENO, edit_read_char, NULL, NULL); in edit_init() 79 eloop_unregister_read_sock(STDIN_FILENO); in edit_deinit()
|
D | edit_readline.c | 128 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/openssh/openbsd-compat/ |
D | readpassphrase.c | 93 input = STDIN_FILENO; in readpassphrase() 116 if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) { in readpassphrase() 172 if (input != STDIN_FILENO) in readpassphrase()
|
/external/lldb/tools/debugserver/source/ |
D | PseudoTerminal.cpp | 212 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
|
/external/llvm/tools/lli/Unix/ |
D | RPCChannel.inc | 53 if (PipeFD[0][0] != STDIN_FILENO) { 54 dup2(PipeFD[0][0], STDIN_FILENO); 83 ConnectionData = (void *)new ConnectionData_t(STDIN_FILENO, STDOUT_FILENO);
|
/external/curl/docs/examples/ |
D | rtsp.c | 49 tcgetattr(STDIN_FILENO, &oldt); in _getch() 52 tcsetattr(STDIN_FILENO, TCSANOW, &newt); in _getch() 54 tcsetattr(STDIN_FILENO, TCSANOW, &oldt); in _getch()
|
/external/lldb/source/Utility/ |
D | PseudoTerminal.cpp | 251 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
|
/external/bison/m4/ |
D | posix_spawn.m4 | 108 #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/libchrome/base/process/ |
D | launch_posix.cc | 233 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds() 263 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds() 381 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess() 382 if (new_fd != STDIN_FILENO) { in LaunchProcess() 594 fd_shuffle1.push_back(InjectionArc(dev_null, STDIN_FILENO, true)); in GetAppOutputInternal()
|
/external/ImageMagick/MagickWand/ |
D | studio.h | 297 #if !defined(STDIN_FILENO) 298 #define STDIN_FILENO 0x00 macro
|
/external/libbrillo/brillo/ |
D | process_unittest.cc | 185 EXPECT_EQ(-1, process_.GetPipe(STDIN_FILENO)); in TEST_F() 213 EXPECT_EQ(-1, process_.GetPipe(STDIN_FILENO)); in TEST_F() 223 process_.RedirectUsingPipe(STDIN_FILENO, true); in TEST_F() 226 int write_fd = process_.GetPipe(STDIN_FILENO); in TEST_F()
|
/external/ImageMagick/MagickCore/ |
D | studio.h | 315 #if !defined(STDIN_FILENO) 316 #define STDIN_FILENO 0x00 macro
|