/openbmc/linux/arch/powerpc/boot/ |
H A D | mktree.c | 44 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()
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | trace.c | 75 int out_fd, in_fd; in save_trace_to_file() local 84 out_fd = creat(filename, mode); in save_trace_to_file() 85 if (out_fd < 0) { in save_trace_to_file() 95 retval = write(out_fd, buffer, retval); in save_trace_to_file() 102 close(out_fd); in save_trace_to_file() 320 int retval, index, out_fd; in trace_event_save_hist() local 341 out_fd = creat(path, mode); in trace_event_save_hist() 342 if (out_fd < 0) { in trace_event_save_hist() 355 index += write(out_fd, &hist[index], strlen(hist) - index); in trace_event_save_hist() 360 close(out_fd); in trace_event_save_hist()
|
/openbmc/linux/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 32 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 D | trace-agent.h | 38 int out_fd; member
|
H A D | trace-agent.c | 252 close(s->rw_ti[i]->out_fd); in agent_info_free()
|
/openbmc/linux/tools/spi/ |
H A D | spidev_test.c | 121 int out_fd; in transfer() local 158 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in transfer() 159 if (out_fd < 0) in transfer() 162 ret = write(out_fd, rx, len); in transfer() 166 close(out_fd); in transfer()
|
/openbmc/linux/arch/um/drivers/ |
H A D | harddog_user.c | 107 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument 110 close(out_fd); in stop_watchdog()
|
H A D | harddog.h | 6 void stop_watchdog(int in_fd, int out_fd);
|
/openbmc/phosphor-ipmi-flash/internal/ |
H A D | sys.cpp | 112 ssize_t SysImpl::sendfile(int out_fd, int in_fd, off_t* offset, in sendfile() argument 115 return ::sendfile(out_fd, in_fd, offset, count); in sendfile()
|
H A D | sys.hpp | 51 virtual ssize_t sendfile(int out_fd, int in_fd, off_t* offset, 86 ssize_t sendfile(int out_fd, int in_fd, off_t* offset,
|
/openbmc/linux/fs/ |
H A D | read_write.c | 1180 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument 1218 out = fdget(out_fd); in do_sendfile() 1289 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument 1299 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4() 1305 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4() 1308 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument 1316 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4() 1322 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4() 1326 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument 1337 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4() [all …]
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A D | execveat.c | 143 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local 147 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp() 149 close(out_fd); in exe_cp()
|
/openbmc/qemu/qga/ |
H A D | commands.c | 421 gint in_fd, out_fd, err_fd; in qmp_guest_exec() local 475 has_output ? &out_fd : NULL, has_output ? &err_fd : NULL, &gerr); in qmp_guest_exec() 506 out_ch = g_io_channel_win32_new_fd(out_fd); in qmp_guest_exec() 509 out_ch = g_io_channel_unix_new(out_fd); in qmp_guest_exec()
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/ |
H A D | 0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch | 312 if (lseek(out_fd, pos, SEEK_SET) != pos) 316 if (write(out_fd, buf, c->leb_size) != c->leb_size)
|
/openbmc/linux/include/linux/ |
H A D | compat.h | 638 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd, 640 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
|
H A D | syscalls.h | 471 asmlinkage long sys_sendfile64(int out_fd, int in_fd, 1014 asmlinkage long sys_sendfile(int out_fd, int in_fd,
|
/openbmc/linux/net/ |
H A D | socket.c | 1936 goto out_fd; in do_accept() 1941 goto out_fd; in do_accept() 1947 goto out_fd; in do_accept() 1952 goto out_fd; in do_accept() 1957 out_fd: in do_accept()
|
/openbmc/qemu/block/ |
H A D | file-posix.c | 2006 static off_t copy_file_range(int in_fd, off_t *in_off, int out_fd, in copy_file_range() argument 2010 return syscall(__NR_copy_file_range, in_fd, in_off, out_fd, in copy_file_range()
|