Home
last modified time | relevance | path

Searched refs:fdout (Results 1 – 17 of 17) sorted by relevance

/external/toybox/toys/posix/
Dcp.c128 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() local
138 fdout = try->extra; in cp_node()
242 fdout = AT_FDCWD; in cp_node()
259 fdout = AT_FDCWD; in cp_node()
271 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode); in cp_node()
272 if (fdout >= 0) { in cp_node()
273 xsendfile(fdin, fdout); in cp_node()
292 if (fsetxattr(fdout, name, value, len, 0)) in cp_node()
307 if (fdout != -1) { in cp_node()
317 if (fdout == AT_FDCWD) in cp_node()
[all …]
Dsed.c181 int fdout, noeol;
207 if (TT.noeol && !writeall(TT.fdout, "\n", 1)) return 1; in emit()
211 l = writeall(TT.fdout, line, len); in emit()
558 fd = TT.fdout; in process_line()
563 memcpy(&TT.fdout, name, 4); in process_line()
572 TT.fdout = fd; in process_line()
611 if (TT.noeol) xwrite(TT.fdout, "\n", 1); in process_line()
613 xsendfile(fd, TT.fdout); in process_line()
637 TT.fdout = copy_tempfile(fd, name, &tmp); in do_sed()
645 replace_tempfile(-1, TT.fdout, &tmp); in do_sed()
[all …]
/external/kmod/testsuite/
Dtestsuite.c220 static inline int test_run_child(const struct test *t, int fdout[2], in test_run_child()
230 close(fdout[0]); in test_run_child()
231 if (dup2(fdout[1], STDOUT_FILENO) < 0) { in test_run_child()
294 int fdout, int fderr, int fdmonitor, pid_t child) in test_run_parent_check_outputs() argument
317 ep_outpipe.data.ptr = &fdout; in test_run_parent_check_outputs()
318 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fdout, &ep_outpipe) < 0) { in test_run_parent_check_outputs()
324 fdout = -1; in test_run_parent_check_outputs()
358 for (err = 0; fdmonitor >= 0 || fdout >= 0 || fderr >= 0;) { in test_run_parent_check_outputs()
394 if (*fd == fdout) { in test_run_parent_check_outputs()
741 static inline int test_run_parent(const struct test *t, int fdout[2], in test_run_parent()
[all …]
/external/toybox/toys/pending/
Dcrontab.c231 int fdin, fdout; in update_crontab() local
234 fdout = xcreate(toybuf, O_WRONLY|O_CREAT|O_TRUNC, 0600); in update_crontab()
236 xsendfile(fdin, fdout); in update_crontab()
239 fchown(fdout, getuid(), geteuid()); in update_crontab()
240 xclose(fdout); in update_crontab()
/external/ltp/testcases/kernel/syscalls/tee/
Dtee02.c49 int *fdout; member
104 TEST(tee(*(tc->fdin), *(tc->fdout), TEE_TEST_LEN, 0)); in tee_verify()
/external/e2fsprogs/lib/ext2fs/
Dqcow2.c134 static int qcow2_copy_data(int fdin, int fdout, ext2_off64_t off_in, in qcow2_copy_data() argument
141 if (ext2fs_llseek(fdout, off_out, SEEK_SET) < 0) in qcow2_copy_data()
151 size = write(fdout, buf, count); in qcow2_copy_data()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice03.c64 int *fdout; member
132 TEST(splice(*(tc->fdin), tc->offin, *(tc->fdout), in splice_verify()
/external/openssh/
Dscp.c123 int do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout);
124 int do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout);
231 do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout) in do_cmd() argument
290 *fdout = pin[1]; in do_cmd()
305 do_cmd2(char *host, char *remuser, char *cmd, int fdin, int fdout) in do_cmd2() argument
320 dup2(fdout, 1); in do_cmd2()
Dsession.c480 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
495 if ((fdout = dup(ptyfd)) < 0) { in do_exec_pty()
506 close(fdout); in do_exec_pty()
514 close(fdout); in do_exec_pty()
522 close(fdout); in do_exec_pty()
578 session_set_fds(s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
2121 session_set_fds(Session *s, int fdin, int fdout, int fderr, int ignore_fderr, in session_set_fds() argument
2131 fdout, fdin, fderr, in session_set_fds()
/external/toybox/lib/
Dlib.c684 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument
687 close(fdout); in delete_tempfile()
695 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument
701 xsendfile(fdin, fdout); in replace_tempfile()
704 xclose(fdout); in replace_tempfile()
Dlib.h220 void delete_tempfile(int fdin, int fdout, char **tempname);
221 void replace_tempfile(int fdin, int fdout, char **tempname);
/external/libedit/src/
Del.c96 int fdin, int fdout, int fderr) in el_init_fd() argument
110 el->el_outfd = fdout; in el_init_fd()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-mips64-linux.c244 PRE_REG_READ4(long, "sys_tee", int, fdin, int, fdout, vki_size_t, len, in PRE()
254 fdout, vki_loff_t, sizeout, vki_size_t, len, int, flags); in PRE()
/external/fio/engines/
Dnet.c352 static int splice_io_u(int fdin, int fdout, unsigned int len) in splice_io_u() argument
357 int ret = splice(fdin, NULL, fdout, NULL, len, 0); in splice_io_u()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1684 #define __sanitizer_syscall_pre_tee(fdin, fdout, len, flags) \ argument
1685 __sanitizer_syscall_pre_impl_tee((long)(fdin), (long)(fdout), (long)(len), \
1687 #define __sanitizer_syscall_post_tee(res, fdin, fdout, len, flags) \ argument
1688 __sanitizer_syscall_post_impl_tee(res, (long)(fdin), (long)(fdout), \
2969 void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len,
2971 void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,
/external/toybox/generated/
Dglobals.h1298 int fdout, noeol; member
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2658 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {}
2660 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}