Home
last modified time | relevance | path

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

/external/toybox/toys/posix/
Dcp.c126 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() local
136 fdout = try->extra; in cp_node()
241 fdout = AT_FDCWD; in cp_node()
259 fdout = AT_FDCWD; in cp_node()
273 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode); in cp_node()
274 if (fdout >= 0) { in cp_node()
275 xsendfile(fdin, fdout); in cp_node()
294 if (xattr_fset(fdout, name, value, len, 0)) in cp_node()
309 if (fdout != -1) { in cp_node()
319 if (fdout == AT_FDCWD) in cp_node()
[all …]
Dsed.c132 int fdout, noeol;
159 if (TT.noeol && !writeall(TT.fdout, "\n", 1)) return 1; in emit()
163 l = writeall(TT.fdout, line, len); in emit()
166 if (TT.fdout != 1) perror_msg("short write"); in emit()
533 fd = TT.fdout; in sed_line()
538 memcpy(&TT.fdout, name, 4); in sed_line()
547 TT.fdout = fd; in sed_line()
586 if (TT.noeol) xwrite(TT.fdout, "\n", 1); in sed_line()
588 xsendfile(fd, TT.fdout); in sed_line()
606 TT.fdout = copy_tempfile(fd, name, &tmp); in do_sed_file()
[all …]
/external/kmod/testsuite/
Dtestsuite.c221 static inline int test_run_child(const struct test *t, int fdout[2], in test_run_child()
231 close(fdout[0]); in test_run_child()
232 if (dup2(fdout[1], STDOUT_FILENO) < 0) { in test_run_child()
572 int fdout, int fderr, int fdmonitor, in test_run_parent_check_outputs() argument
590 FD_CMP_OUT, t->output.out, fdout, fd_ep); in test_run_parent_check_outputs()
944 static inline int test_run_parent(const struct test *t, int fdout[2], in test_run_parent()
953 close(fdout[1]); in test_run_parent()
958 matchout = test_run_parent_check_outputs(t, fdout[0], fderr[0], in test_run_parent()
966 close(fdout[0]); in test_run_parent()
1078 int fdout[2]; in test_run() local
[all …]
/external/toybox/toys/pending/
Dcrontab.c234 int fdin, fdout; in update_crontab() local
237 fdout = xcreate(toybuf, O_WRONLY|O_CREAT|O_TRUNC, 0600); in update_crontab()
239 xsendfile(fdin, fdout); in update_crontab()
242 fchown(fdout, getuid(), geteuid()); in update_crontab()
243 xclose(fdout); in update_crontab()
/external/ltp/testcases/kernel/syscalls/tee/
Dtee02.c37 int *fdout; member
56 TEST(tee(*(tc->fdin), *(tc->fdout), TEE_TEST_LEN, 0)); in tee_verify()
/external/oss-fuzz/projects/mysql-server/targets/
Dutil_fuzz.cc37 int fdout = open(newname, O_WRONLY|O_CREAT, sb->st_mode); in cp_cb() local
40 write(fdout, buf, nb); in cp_cb()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice03.c52 int *fdout; member
83 TEST(splice(*(tc->fdin), tc->offin, *(tc->fdout), in splice_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/openssh/
Dscp.c130 int do_cmd(char *host, char *remuser, int port, char *cmd, int *fdin, int *fdout);
131 int do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout);
241 do_cmd(char *host, char *remuser, int port, char *cmd, int *fdin, int *fdout) in do_cmd() argument
307 *fdout = pin[1]; in do_cmd()
322 do_cmd2(char *host, char *remuser, int port, char *cmd, int fdin, int fdout) in do_cmd2() argument
340 dup2(fdout, 1); in do_cmd2()
Dsession.c565 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
580 if ((fdout = dup(ptyfd)) == -1) { in do_exec_pty()
591 close(fdout); in do_exec_pty()
599 close(fdout); in do_exec_pty()
607 close(fdout); in do_exec_pty()
654 session_set_fds(ssh, s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
2252 int fdin, int fdout, int fderr, int ignore_fderr, int is_tty) in session_set_fds() argument
2261 fdout, fdin, fderr, in session_set_fds()
/external/toybox/lib/
Dlib.c816 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument
819 close(fdout); in delete_tempfile()
827 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument
833 xsendfile(fdin, fdout); in replace_tempfile()
836 xclose(fdout); in replace_tempfile()
Dlib.h254 void delete_tempfile(int fdin, int fdout, char **tempname);
255 void replace_tempfile(int fdin, int fdout, char **tempname);
/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/llvm-project/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1683 #define __sanitizer_syscall_pre_tee(fdin, fdout, len, flags) \ argument
1684 __sanitizer_syscall_pre_impl_tee((long)(fdin), (long)(fdout), (long)(len), \
1686 #define __sanitizer_syscall_post_tee(res, fdin, fdout, len, flags) \ argument
1687 __sanitizer_syscall_post_impl_tee(res, (long)(fdin), (long)(fdout), \
2970 void __sanitizer_syscall_pre_impl_tee(long fdin, long fdout, long len,
2972 void __sanitizer_syscall_post_impl_tee(long res, long fdin, long fdout,
/external/toybox/android/linux/generated/
Dglobals.h1442 int fdout, noeol; member
/external/toybox/android/device/generated/
Dglobals.h1442 int fdout, noeol; member
/external/toybox/android/mac/generated/
Dglobals.h1442 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) {}
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2659 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {}
2661 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}