/third_party/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile03.c | 25 static int out_fd; variable 30 int *out_fd; member 35 {&negative_fd, &out_fd, "in_fd=-1"}, 36 {&out_fd, &out_fd, "out_fd=O_WRONLY"}, 42 out_fd = SAFE_CREAT("out_file", 0600); in setup() 48 SAFE_CLOSE(out_fd); in cleanup() 53 TST_EXP_FAIL2(sendfile(*(tc[i].out_fd), *(tc[i].in_fd), NULL, 1), in run()
|
D | sendfile08.c | 30 static int out_fd; variable 34 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in run() 40 SAFE_LSEEK(out_fd, 0, SEEK_SET); in run() 41 SAFE_READ(0, out_fd, buf, BUFSIZ); in run() 59 out_fd = SAFE_OPEN(OUT_FILE, O_TRUNC | O_CREAT | O_RDWR, 0777); in setup() 60 SAFE_WRITE(SAFE_WRITE_ALL, out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup() 66 SAFE_CLOSE(out_fd); in cleanup()
|
D | sendfile05.c | 23 static int out_fd; variable 28 out_fd = SAFE_CREAT("out_file", 0600); in setup() 34 SAFE_CLOSE(out_fd); in cleanup() 41 TST_EXP_FAIL(sendfile(out_fd, in_fd, &offset, 1), EINVAL, in run()
|
D | sendfile07.c | 22 static int out_fd; variable 32 out_fd = p[1]; in setup() 35 TEST(write(out_fd, "a", 1)); in setup() 59 TST_EXP_FAIL(sendfile(out_fd, in_fd, NULL, 1), EAGAIN, in run()
|
D | sendfile04.c | 26 static int out_fd; variable 43 out_fd = SAFE_CREAT("out_file", 0600); in setup() 49 SAFE_CLOSE(out_fd); in cleanup() 62 TST_EXP_FAIL2(sendfile(out_fd, in_fd, protected_buffer, 1), in run()
|
D | sendfile06.c | 46 int out_fd = SAFE_OPEN(OUT_FILE, O_WRONLY); in run() local 48 TEST(sendfile(out_fd, in_fd, NULL, sb.st_size)); in run() 64 SAFE_CLOSE(out_fd); in run()
|
D | sendfile02.c | 57 int out_fd = SAFE_OPEN(OUT_FILE, O_WRONLY); in run() local 63 TEST(sendfile(out_fd, in_fd, &offset, tc[i].count)); in run() 83 SAFE_CLOSE(out_fd); in run()
|
D | sendfile09.c | 65 int out_fd = SAFE_OPEN(OUT_FILE, O_WRONLY); in run() local 71 TEST(sendfile(out_fd, in_fd, &offset, tc[i].count)); in run() 91 SAFE_CLOSE(out_fd); in run()
|
/third_party/toybox/toys/lsb/ |
D | gzip.c | 69 static int do_deflate(int in_fd, int out_fd, int dd, int level) 77 if (out_fd == 1) out_fd = xdup(out_fd); 79 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen"); 83 if (len != writeall(out_fd, toybuf, len)) break; 103 static int do_deflate(int in_fd, int out_fd, int dd, int level) 107 if (dd) WOULD_EXIT(x, gunzip_fd(in_fd, out_fd)); 108 else WOULD_EXIT(x, gzip_fd(in_fd, out_fd));
|
/third_party/ltp/testcases/kernel/controllers/freezer/ |
D | libltp | 30 local out_fd=1 50 out_fd=2 62 out_fd=2 65 out_fd=2 71 out_fd=2 77 echo "${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd
|
/third_party/mbedtls/tests/suites/ |
D | helpers.function | 82 int out_fd, dup_fd; 85 out_fd = fileno(out_stream); 86 dup_fd = dup(out_fd); 99 if (dup2(fileno(path_stream), out_fd) == -1) { 111 int out_fd = fileno(out_stream); 114 if (dup2(dup_fd, out_fd) == -1) { 115 close(out_fd);
|
/third_party/exfatprogs/exfat2img/ |
D | exfat2img.c | 49 int out_fd; member 105 if (ei->out_fd) in free_exfat2img() 106 close(ei->out_fd); in free_exfat2img() 138 ei->out_fd = open(out_path, O_CREAT | O_TRUNC | O_RDWR, 0664); in create_exfat2img() 141 ei->out_fd = fileno(stdout); in create_exfat2img() 144 if (ei->out_fd < 0) { in create_exfat2img() 192 ret = pwrite(ei->out_fd, ei->dump_bdesc[0].buffer, in dump_range() 581 ret = write(ei->out_fd, ei->dump_bdesc[0].buffer, len); in dump_bytes_to_stdout() 589 ret = write(ei->out_fd, exfat->zero_cluster, len); in dump_bytes_to_stdout() 636 if (write(ei->out_fd, buf, cc_len) != (ssize_t)cc_len) { in dump_clusters_to_stdout() [all …]
|
/third_party/musl/src/linux/ |
D | sendfile.c | 4 ssize_t sendfile(int out_fd, int in_fd, off_t *ofs, size_t count) in sendfile() argument 6 return syscall(SYS_sendfile, out_fd, in_fd, ofs, count); in sendfile()
|
/third_party/rust/crates/rustix/src/fs/ |
D | sendfile.rs | 13 out_fd: OutFd, in sendfile() 18 backend::fs::syscalls::sendfile(out_fd.as_fd(), in_fd.as_fd(), offset, count) in sendfile()
|
/third_party/gn/src/gn/ |
D | exec_process.cc | 184 int out_fd[2], err_fd[2]; 192 if (pipe(out_fd) < 0) 194 base::ScopedFD out_read(out_fd[0]), out_write(out_fd[1]);
|
/third_party/rust/crates/nix/src/sys/ |
D | sendfile.rs | 27 out_fd: RawFd, in sendfile() 35 let ret = unsafe { libc::sendfile(out_fd, in_fd, offset, count) }; in sendfile() 54 out_fd: RawFd, in sendfile64() 62 let ret = unsafe { libc::sendfile64(out_fd, in_fd, offset, count) }; in sendfile64()
|
/third_party/node/deps/uv/src/unix/ |
D | fs.c | 806 int out_fd; in uv__fs_sendfile_emul() local 811 out_fd = req->file; in uv__fs_sendfile_emul() 869 n = write(out_fd, buf + nwritten, nread - nwritten); in uv__fs_sendfile_emul() 882 pfd.fd = out_fd; in uv__fs_sendfile_emul() 970 int out_fd, size_t len) { in uv__fs_try_copy_file_range() argument 979 r = uv__fs_copy_file_range(in_fd, off, out_fd, NULL, len, 0); in uv__fs_try_copy_file_range() 999 if (uv__is_cifs_or_smb(out_fd)) in uv__fs_try_copy_file_range() 1020 int out_fd; in uv__fs_sendfile() local 1023 out_fd = req->file; in uv__fs_sendfile() 1037 r = uv__fs_try_copy_file_range(in_fd, &off, out_fd, len); in uv__fs_sendfile() [all …]
|
/third_party/libuv/src/unix/ |
D | fs.c | 827 int out_fd; in uv__fs_sendfile_emul() local 832 out_fd = req->file; in uv__fs_sendfile_emul() 890 n = write(out_fd, buf + nwritten, nread - nwritten); in uv__fs_sendfile_emul() 903 pfd.fd = out_fd; in uv__fs_sendfile_emul() 991 int out_fd, size_t len) { in uv__fs_try_copy_file_range() argument 1000 r = uv__fs_copy_file_range(in_fd, off, out_fd, NULL, len, 0); in uv__fs_try_copy_file_range() 1020 if (uv__is_cifs_or_smb(out_fd)) in uv__fs_try_copy_file_range() 1041 int out_fd; in uv__fs_sendfile() local 1044 out_fd = req->file; in uv__fs_sendfile() 1058 r = uv__fs_try_copy_file_range(in_fd, &off, out_fd, len); in uv__fs_sendfile() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | wpa_debug.c | 674 int out_fd; in wpa_debug_open_file() local 685 out_fd = open(path, O_CREAT | O_APPEND | O_WRONLY, in wpa_debug_open_file() 687 if (out_fd < 0) { in wpa_debug_open_file() 695 if (fcntl(out_fd, F_SETFD, FD_CLOEXEC) < 0) { in wpa_debug_open_file() 702 out_file = fdopen(out_fd, "a"); in wpa_debug_open_file() 706 close(out_fd); in wpa_debug_open_file()
|
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/ |
D | virgl_vtest_socket.c | 287 int *out_fd) in virgl_vtest_send_resource_create2() argument 313 *out_fd = virgl_vtest_receive_fd(vws->sock_fd); in virgl_vtest_send_resource_create2() 314 if (*out_fd < 0) { in virgl_vtest_send_resource_create2() 334 int *out_fd) in virgl_vtest_send_resource_create() argument 342 nr_samples, size, out_fd); in virgl_vtest_send_resource_create()
|
D | virgl_vtest_winsys.h | 122 int *out_fd);
|
/third_party/toybox/toys/other/ |
D | bzcat.c | 443 static void flush_bunzip_outbuf(struct bunzip_data *bd, int out_fd) in flush_bunzip_outbuf() argument 446 if (write(out_fd, bd->outbuf, bd->outbufPos) != bd->outbufPos) in flush_bunzip_outbuf() 513 int out_fd, char *outbuf, int len) in write_bunzip_data() argument 564 if (bd->outbufPos == IOBUF_SIZE) flush_bunzip_outbuf(bd, out_fd); in write_bunzip_data()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | wpa_debug.c | 875 int out_fd; in wpa_debug_open_file() local 886 out_fd = open(path, O_CREAT | O_APPEND | O_WRONLY, in wpa_debug_open_file() 888 if (out_fd < 0) { in wpa_debug_open_file() 896 if (fcntl(out_fd, F_SETFD, FD_CLOEXEC) < 0) { in wpa_debug_open_file() 903 out_file = fdopen(out_fd, "a"); in wpa_debug_open_file() 907 close(out_fd); in wpa_debug_open_file()
|
/third_party/musl/libc-test/src/functionalext/trace/ |
D | trace_marker.c | 83 int out_fd = open(OUTFILE, O_WRONLY | O_CREAT, TEST_MODE); in dump_trace() local 84 if (out_fd == -1) { in dump_trace() 92 nwrite = TRACE_TEMP_FAILURE_RETRY(write(out_fd, buffer, nread)); in dump_trace() 94 close(out_fd); in dump_trace()
|
/third_party/python/Modules/clinic/ |
D | posixmodule.c.h | 5058 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset, 5070 int out_fd; in os_sendfile() local 5082 out_fd = _PyLong_AsInt(args[0]); in os_sendfile() 5083 if (out_fd == -1 && PyErr_Occurred()) { in os_sendfile() 5116 … return_value = os_sendfile_impl(module, out_fd, in_fd, offset, sbytes, headers, trailers, flags); in os_sendfile() 5137 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset, 5149 int out_fd; in os_sendfile() local 5161 out_fd = _PyLong_AsInt(args[0]); in os_sendfile() 5162 if (out_fd == -1 && PyErr_Occurred()) { in os_sendfile() 5204 return_value = os_sendfile_impl(module, out_fd, in_fd, offset, count, headers, trailers, flags); in os_sendfile() [all …]
|