Searched refs:fdout (Results 1 - 16 of 16) sorted by relevance

/external/linux-tools-perf/src/tools/perf/util/
H A Drun-command.c21 int fdin[2], fdout[2], fderr[2]; local
42 if (pipe(fdout) < 0) {
49 cmd->out = fdout[0];
60 close_pair(fdout);
93 dup2(fdout[1], 1);
94 close_pair(fdout);
128 close_pair(fdout);
144 close(fdout[1]);
/external/toybox/toys/posix/
H A Dcp.c106 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, local
116 fdout = try->extra;
220 fdout = AT_FDCWD;
237 fdout = AT_FDCWD;
249 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode);
250 if (fdout >= 0) {
251 xsendfile(fdin, fdout);
260 if (fdout != -1) {
271 if (fdout == AT_FDCWD)
274 else rc = fchown(fdout, tr
[all...]
H A Dsed.c178 int fdout, noeol;
197 if (TT.noeol && !writeall(TT.fdout, "\n", 1)) return 1;
201 l = writeall(TT.fdout, line, len);
582 fd = TT.fdout;
587 memcpy(&TT.fdout, name, 4);
596 TT.fdout = fd;
637 if (TT.noeol) xwrite(TT.fdout, "\n", 1);
639 xsendfile(fd, TT.fdout);
684 TT.fdout = copy_tempfile(fd, name, &tmp);
692 replace_tempfile(-1, TT.fdout,
[all...]
/external/openssh/
H A Dserverloop.c94 static int fdout; /* Descriptor for stdout (for reading); variable
102 static int fdout_eof = 0; /* EOF encountered reading from fdout. */
332 FD_SET(fdout, *readsetp);
381 FD_SET(fdout, *readsetp);
430 if (!fdout_eof && FD_ISSET(fdout, readset)) {
432 len = read(fdout, buf, sizeof(buf));
439 } else if ((!isatty(fdout) && len <= 0) ||
440 (isatty(fdout) && (len < 0 || (len == 0 && errno != 0)))) {
488 if (fdin != fdout)
586 fdout
[all...]
H A Dscp.c122 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout);
123 int do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout);
230 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout) argument
289 *fdout = pin[1];
304 do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout) argument
319 dup2(fdout, 1);
H A Dsession.c610 * handle the case that fdin and fdout are the same.
632 int fdout, ptyfd, ttyfd, ptymaster; local
647 if ((fdout = dup(ptyfd)) < 0) {
658 close(fdout);
666 close(fdout);
674 close(fdout);
737 session_set_fds(s, ptyfd, fdout, -1, 1, 1);
739 server_loop(pid, ptyfd, fdout, -1);
740 /* server_loop _has_ closed ptyfd and fdout. */
2327 session_set_fds(Session *s, int fdin, int fdout, in argument
[all...]
/external/toybox/toys/pending/
H A Dcrontab.c231 int fdin, fdout; local
234 fdout = xcreate(toybuf, O_WRONLY|O_CREAT|O_TRUNC, 0600);
236 xsendfile(fdin, fdout);
239 fchown(fdout, getuid(), geteuid());
240 xclose(fdout);
/external/e2fsprogs/lib/ext2fs/
H A Dqcow2.c129 static int qcow2_copy_data(int fdin, int fdout, ext2_off64_t off_in, argument
136 if (ext2fs_llseek(fdout, off_out, SEEK_SET) < 0)
146 size = write(fdout, buf, count);
/external/toybox/lib/
H A Dlib.h174 void delete_tempfile(int fdin, int fdout, char **tempname);
175 void replace_tempfile(int fdin, int fdout, char **tempname);
H A Dlib.c539 void delete_tempfile(int fdin, int fdout, char **tempname) argument
542 close(fdout);
550 void replace_tempfile(int fdin, int fdout, char **tempname) argument
556 xsendfile(fdin, fdout);
559 xclose(fdout);
/external/libedit/src/
H A Del.c96 int fdin, int fdout, int fderr)
110 el->el_outfd = fdout;
95 el_init_fd(const char *prog, FILE *fin, FILE *fout, FILE *ferr, int fdin, int fdout, int fderr) argument
/external/libvncserver/x11vnc/
H A Duser.c2494 char fdout[128]; local
2524 fdout[0] = '\0';
2526 snprintf(fdout, 120, " FIND_DISPLAY_OUTPUT='%s' ", getenv("FIND_DISPLAY_OUTPUT"));
2530 + strlen(nd) + strlen(" FD_TAG='' ") + strlen(tag) + strlen(tmp) + strlen("/bin/sh ") + strlen(fdout) + 1);
2533 sprintf(cmd, "env X11VNC_SKIP_DISPLAY='%s' FD_TAG='%s' %s /bin/sh %s", nd, tag, fdout, tmp);
2535 sprintf(cmd, "env X11VNC_SKIP_DISPLAY='%s' %s /bin/sh %s", nd, fdout, tmp);
/external/valgrind/coregrind/m_syswrap/
H A Dsyswrap-mips64-linux.c324 PRE_REG_READ4(long, "sys_tee", int, fdin, int, fdout, vki_size_t, len,
334 fdout, vki_loff_t, sizeout, vki_size_t, len, int, flags);
/external/toybox/generated/
H A Dglobals.h1089 int fdout, noeol; member in struct:sed_data
/external/fio/engines/
H A Dnet.c349 static int splice_io_u(int fdin, int fdout, unsigned int len) argument
354 int ret = splice(fdin, NULL, fdout, NULL, len, 0);
/external/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1684 #define __sanitizer_syscall_pre_tee(fdin, fdout, len, flags) \
1685 __sanitizer_syscall_pre_impl_tee((long)(fdin), (long)(fdout), (long)(len), \
1687 #define __sanitizer_syscall_post_tee(res, fdin, fdout, len, flags) \
1688 __sanitizer_syscall_post_impl_tee(res, (long)(fdin), (long)(fdout), \
2962 void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len,
2964 void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,

Completed in 717 milliseconds