Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 - 25 of 35) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile03.c11 * wrong out_fd or in_fd.
16 * - out_fd = -1
18 * - out_fd opened with O_RDONLY
25 static int out_fd; variable
30 int *out_fd; member
33 {&in_fd, &negative_fd, "out_fd=-1"},
34 {&in_fd, &in_fd, "out_fd=O_RDONLY"},
35 {&negative_fd, &out_fd, "in_fd=-1"},
36 {&out_fd, &out_fd, "out_f
[all...]
H A Dsendfile08.c30 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()
H A Dsendfile05.c23 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()
H A Dsendfile07.c12 * when passing full out_fd opened with O_NONBLOCK.
22 static int out_fd; variable
32 out_fd = p[1]; in setup()
35 TEST(write(out_fd, "a", 1)); in setup()
40 tst_brk(TBROK | TTERRNO, "write(out_fd, buf, 1)"); in setup()
59 TST_EXP_FAIL(sendfile(out_fd, in_fd, NULL, 1), EAGAIN, in run()
60 "sendfile(out_fd, in_fd, NULL, 1) with blocked out_fd"); in run()
H A Dsendfile04.c26 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()
H A Dsendfile06.c46 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()
H A Dsendfile09.c65 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()
H A Dsendfile02.c57 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()
/third_party/ltp/testcases/kernel/controllers/freezer/
H A Dlibltp30 local out_fd=1
50 out_fd=2
62 out_fd=2
65 out_fd=2
71 out_fd=2
76 #echo "LTP log: $cmd ${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd
77 echo "${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd
/third_party/toybox/toys/lsb/
H A Dgzip.c68 // Read from in_fd, write to out_fd, decompress if dd else compress
69 static int do_deflate(int in_fd, int out_fd, int dd, int level) in do_deflate() argument
77 if (out_fd == 1) out_fd = xdup(out_fd); in do_deflate()
79 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen"); in do_deflate()
83 if (len != writeall(out_fd, toybuf, len)) break; in do_deflate()
102 // Read from in_fd, write to out_fd, decompress if dd else compress
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));
[all...]
/third_party/exfatprogs/exfat2img/
H A Dexfat2img.c49 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, bu in dump_clusters_to_stdout()
[all...]
/third_party/musl/src/linux/
H A Dsendfile.c4 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/
H A Dsendfile.rs4 /// `sendfile(out_fd, in_fd, offset, count)`
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/
H A Dexec_process.cc185 int out_fd[2], err_fd[2];
193 if (pipe(out_fd) < 0)
195 base::ScopedFD out_read(out_fd[0]), out_write(out_fd[1]);
/third_party/rust/crates/nix/src/sys/
H A Dsendfile.rs12 /// Copy up to `count` bytes to `out_fd` from `in_fd` starting at `offset`.
27 out_fd: RawFd, in sendfile()
35 let ret = unsafe { libc::sendfile(out_fd, in_fd, offset, count) }; in sendfile()
39 /// Copy up to `count` bytes to `out_fd` from `in_fd` starting at `offset`.
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/
H A Dfs.c806 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()
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()
1005 * EXDEV - it will not work when in_fd and out_fd are not on the same in uv__fs_try_copy_file_range()
1020 int out_fd; in uv__fs_sendfile() local
1023 out_fd in uv__fs_sendfile()
969 uv__fs_try_copy_file_range(int in_fd, off_t* off, int out_fd, size_t len) uv__fs_try_copy_file_range() argument
2109 uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file out_fd, uv_file in_fd, int64_t off, size_t len, uv_fs_cb cb) uv_fs_sendfile() argument
[all...]
/third_party/libuv/src/unix/
H A Dfs.c753 int out_fd; in uv__fs_sendfile_emul() local
758 out_fd = req->file; in uv__fs_sendfile_emul()
816 n = write(out_fd, buf + nwritten, nread - nwritten); in uv__fs_sendfile_emul()
829 pfd.fd = out_fd; in uv__fs_sendfile_emul()
892 int out_fd, size_t len) { in uv__fs_try_copy_file_range()
901 r = uv__fs_copy_file_range(in_fd, off, out_fd, NULL, len, 0); in uv__fs_try_copy_file_range()
921 if (uv__is_cifs_or_smb(out_fd)) in uv__fs_try_copy_file_range()
927 * EXDEV - it will not work when in_fd and out_fd are not on the same in uv__fs_try_copy_file_range()
942 int out_fd; in uv__fs_sendfile() local
945 out_fd in uv__fs_sendfile()
891 uv__fs_try_copy_file_range(int in_fd, off_t* off, int out_fd, size_t len) uv__fs_try_copy_file_range() argument
2027 uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file out_fd, uv_file in_fd, int64_t off, size_t len, uv_fs_cb cb) uv_fs_sendfile() argument
[all...]
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
H A Dvirgl_vtest_socket.c287 int *out_fd) in virgl_vtest_send_resource_create2()
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()
342 nr_samples, size, out_fd); in virgl_vtest_send_resource_create()
275 virgl_vtest_send_resource_create2(struct virgl_vtest_winsys *vws, uint32_t handle, enum pipe_texture_target target, uint32_t format, uint32_t bind, uint32_t width, uint32_t height, uint32_t depth, uint32_t array_size, uint32_t last_level, uint32_t nr_samples, uint32_t size, int *out_fd) virgl_vtest_send_resource_create2() argument
322 virgl_vtest_send_resource_create(struct virgl_vtest_winsys *vws, uint32_t handle, enum pipe_texture_target target, uint32_t format, uint32_t bind, uint32_t width, uint32_t height, uint32_t depth, uint32_t array_size, uint32_t last_level, uint32_t nr_samples, uint32_t size, int *out_fd) virgl_vtest_send_resource_create() argument
H A Dvirgl_vtest_winsys.h122 int *out_fd);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dwpa_debug.c674 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/toybox/toys/other/
H A Dbzcat.c443 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()
505 // If !len, write up to len bytes of data to buf. Otherwise write to out_fd.
513 int out_fd, char *outbuf, int len) in write_bunzip_data()
564 if (bd->outbufPos == IOBUF_SIZE) flush_bunzip_outbuf(bd, out_fd); in write_bunzip_data()
512 write_bunzip_data(struct bunzip_data *bd, struct bwdata *bw, int out_fd, char *outbuf, int len) write_bunzip_data() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dwpa_debug.c935 int out_fd; in wpa_debug_open_file() local
946 out_fd = open(path, O_CREAT | O_APPEND | O_WRONLY, in wpa_debug_open_file()
948 if (out_fd < 0) { in wpa_debug_open_file()
956 if (fcntl(out_fd, F_SETFD, FD_CLOEXEC) < 0) { in wpa_debug_open_file()
963 out_file = fdopen(out_fd, "a"); in wpa_debug_open_file()
967 close(out_fd); in wpa_debug_open_file()
/third_party/musl/libc-test/src/functionalext/trace/
H A Dtrace_marker.c83 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/
H A Dposixmodule.c.h5124 "sendfile($module, /, out_fd, in_fd, offset, count, headers=(),\n"
5128 "Copy count bytes from file descriptor in_fd to file descriptor out_fd.");
5134 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset,
5142 static const char * const _keywords[] = {"out_fd", "in_fd", "offset", "count", "headers", "trailers", "flags", NULL}; in os_sendfile()
5146 int out_fd; in os_sendfile() local
5158 out_fd = _PyLong_AsInt(args[0]); in os_sendfile()
5159 if (out_fd == -1 && PyErr_Occurred()) { in os_sendfile()
5192 return_value = os_sendfile_impl(module, out_fd, in_fd, offset, sbytes, headers, trailers, flags); in os_sendfile()
5203 "sendfile($module, /, out_fd, in_fd, offset, count, headers=(),\n"
5207 "Copy count bytes from file descriptor in_fd to file descriptor out_fd
5225 int out_fd; os_sendfile() local
5310 int out_fd; os_sendfile() local
5367 int out_fd; os__fcopyfile() local
[all...]
/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_queue.c850 vn_create_sync_file(struct vn_device *dev, int *out_fd) in vn_create_sync_file() argument
873 *out_fd = vn_renderer_sync_export_syncobj(dev->renderer, sync, true); in vn_create_sync_file()
876 return *out_fd >= 0 ? VK_SUCCESS : VK_ERROR_TOO_MANY_OBJECTS; in vn_create_sync_file()

Completed in 32 milliseconds

12