Home
last modified time | relevance | path

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

12345

/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.c111 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/
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/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()
/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()
/external/curl/src/
Dtool_main.c77 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()
Dtool_main.h31 #ifndef STDIN_FILENO
32 # define STDIN_FILENO fileno(stdin) macro
Dtool_getpass.c232 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/
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.c329 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/
Dlib556.c28 #ifndef STDIN_FILENO
29 #define STDIN_FILENO 0 macro
/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()
/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()
/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/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/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/libchrome/base/process/
Dlaunch_posix.cc233 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/
Dstudio.h297 #if !defined(STDIN_FILENO)
298 #define STDIN_FILENO 0x00 macro
/external/libbrillo/brillo/
Dprocess_unittest.cc185 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/
Dstudio.h315 #if !defined(STDIN_FILENO)
316 #define STDIN_FILENO 0x00 macro

12345