Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 16 of 16) sorted by relevance

/linux/tools/include/nolibc/sys/
H A Dsendfile.h21 ssize_t _sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count) in _sys_sendfile() argument
27 return __nolibc_syscall4(__NR_sendfile64, out_fd, in_fd, offset, count); in _sys_sendfile()
31 return __nolibc_syscall4(__NR_sendfile, out_fd, in_fd, offset, count); in _sys_sendfile()
36 ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) in sendfile() argument
38 return __sysret(_sys_sendfile(out_fd, in_fd, offset, count)); in sendfile()
/linux/arch/powerpc/boot/
H A Dmktree.c44 int in_fd, out_fd; in main() local
87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
119 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
132 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
145 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c32 rw_ti->out_fd = -1; in rw_thread_info_new()
58 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
59 if (rw_ti->out_fd == -1) { in rw_thread_init()
65 rw_ti->out_fd = STDOUT_FILENO; in rw_thread_init()
148 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
H A Dtrace-agent.h38 int out_fd; member
H A Dtrace-agent.c252 close(s->rw_ti[i]->out_fd); in agent_info_free()
/linux/tools/tracing/rtla/src/
H A Dtrace.c74 int out_fd, in_fd; in save_trace_to_file()
89 out_fd = creat(filename, mode); in save_trace_to_file()
90 if (out_fd < 0) { in save_trace_to_file()
108 const ssize_t w = write(out_fd, buffer + n_written, n_read - n_written); in save_trace_to_file()
122 close(out_fd); in collect_registered_events()
373 int out_fd; in trace_event_save_hist()
390 out_fd = creat(path, mode); in trace_event_save_hist()
391 if (out_fd < 0) { in trace_event_save_hist()
405 const ssize_t written = write(out_fd, &hist[index], hist_len - index);
418 close(out_fd); in trace_event_disable_trigger()
75 int out_fd, in_fd; save_trace_to_file() local
362 int retval, index, out_fd; trace_event_save_hist() local
[all...]
/linux/arch/um/drivers/
H A Dharddog_user.c107 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
110 close(out_fd); in stop_watchdog()
H A Dharddog.h6 void stop_watchdog(int in_fd, int out_fd);
/linux/fs/
H A Dread_write.c1283 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in COMPAT_SYSCALL_DEFINE5()
1317 CLASS(fd, out)(out_fd); in do_sendfile()
1379 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in do_sendfile()
1389 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in do_sendfile()
1395 return do_sendfile(out_fd, in_fd, NULL, count, 0); in do_sendfile()
1398 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count)
1406 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1412 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1416 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in SYSCALL_DEFINE4()
1427 ret = do_sendfile(out_fd, in_f in SYSCALL_DEFINE4()
1303 do_sendfile(int out_fd,int in_fd,loff_t * ppos,size_t count,loff_t max) do_sendfile() argument
1399 SYSCALL_DEFINE4(sendfile,int,out_fd,int,in_fd,off_t __user *,offset,size_t,count) SYSCALL_DEFINE4() argument
1418 SYSCALL_DEFINE4(sendfile64,int,out_fd,int,in_fd,loff_t __user *,offset,size_t,count) SYSCALL_DEFINE4() argument
1436 COMPAT_SYSCALL_DEFINE4(sendfile,int,out_fd,int,in_fd,compat_off_t __user *,offset,compat_size_t,count) COMPAT_SYSCALL_DEFINE4() argument
1456 COMPAT_SYSCALL_DEFINE4(sendfile64,int,out_fd,int,in_fd,compat_loff_t __user *,offset,compat_size_t,count) COMPAT_SYSCALL_DEFINE4() argument
[all...]
/linux/include/uapi/linux/io_uring/
H A Dmock_file.h27 __u32 out_fd; member
/linux/tools/testing/selftests/exec/
H A Dexecveat.c159 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local
163 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
165 close(out_fd); in exe_cp()
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h563 static int _test_cmd_get_dmabuf(int fd, size_t len, int *out_fd) in _test_cmd_get_dmabuf() argument
571 *out_fd = ioctl(fd, IOMMU_TEST_CMD, &cmd); in _test_cmd_get_dmabuf()
572 if (*out_fd < 0) in _test_cmd_get_dmabuf()
576 #define test_cmd_get_dmabuf(len, out_fd) \ argument
577 ASSERT_EQ(0, _test_cmd_get_dmabuf(self->fd, len, out_fd))
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1611 int in_fd, out_fd; in test_sendfile() local
1616 out_fd = open("/tmp", O_TMPFILE | O_RDWR, 0644); in test_sendfile()
1618 if (in_fd == -1 || out_fd == -1) { in test_sendfile()
1637 ret = sendfile(out_fd, in_fd, NULL, data_sz + 5); in test_sendfile()
1644 if (lseek(out_fd, 0, SEEK_SET)) { in test_sendfile()
1650 ret = read(out_fd, data_out, sizeof(data_out)); in test_sendfile()
1666 close(out_fd); in test_sendfile()
/linux/io_uring/
H A Dmock_file.c270 mc.out_fd = fdf->fd; in io_create_mock_file()
/linux/include/linux/
H A Dcompat.h642 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
644 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
/linux/net/
H A Dsocket.c2058 goto out_fd; in do_accept()
2063 goto out_fd; in do_accept()
2069 goto out_fd; in do_accept()
2074 goto out_fd; in do_accept()
2079 out_fd: in do_accept()