/linux-4.4.14/arch/powerpc/boot/ |
H A D | mktree.c | 43 int in_fd, out_fd; main() local 86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { main() 118 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { main() 131 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { main() 140 if (lseek(out_fd, 0, SEEK_SET) < 0) { main() 144 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { main()
|
/linux-4.4.14/init/ |
H A D | do_mounts_rd.c | 45 static int __init crd_load(int in_fd, int out_fd, decompress_fn deco); 188 int in_fd, out_fd; rd_load_image() local 198 out_fd = sys_open("/dev/ram", O_RDWR, 0); rd_load_image() 199 if (out_fd < 0) rd_load_image() 211 if (crd_load(in_fd, out_fd, decompressor) == 0) rd_load_image() 227 if (sys_ioctl(out_fd, BLKGETSIZE, (unsigned long)&rd_blocks) < 0) rd_load_image() 279 sys_write(out_fd, buf, BLOCK_SIZE); rd_load_image() 294 sys_close(out_fd); rd_load_image() 345 static int __init crd_load(int in_fd, int out_fd, decompress_fn deco) crd_load() argument 349 crd_outfd = out_fd; crd_load()
|
/linux-4.4.14/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 34 rw_ti->out_fd = -1; rw_thread_info_new() 60 rw_ti->out_fd = open(out_path, O_WRONLY); rw_thread_init() 61 if (rw_ti->out_fd == -1) { rw_thread_init() 62 pr_err("Could not open out_fd (CPU:%d)\n", cpu); rw_thread_init() 67 rw_ti->out_fd = STDOUT_FILENO; rw_thread_init() 150 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, rw_thread_main()
|
H A D | trace-agent.h | 29 * @out_fd: fd of writing trace data path in cpu_num 37 int out_fd; member in struct:rw_thread_info
|
H A D | trace-agent.c | 250 close(s->rw_ti[i]->out_fd); agent_info_free()
|
/linux-4.4.14/arch/um/drivers/ |
H A D | harddog_user.c | 106 void stop_watchdog(int in_fd, int out_fd) stop_watchdog() argument 109 close(out_fd); stop_watchdog()
|
H A D | harddog_kern.c | 95 extern void stop_watchdog(int in_fd, int out_fd);
|
/linux-4.4.14/fs/ |
H A D | read_write.c | 1155 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, do_sendfile() argument 1191 out = fdget(out_fd); do_sendfile() 1255 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) SYSCALL_DEFINE4() 1265 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); SYSCALL_DEFINE4() 1271 return do_sendfile(out_fd, in_fd, NULL, count, 0); SYSCALL_DEFINE4() 1274 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) SYSCALL_DEFINE4() 1282 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); SYSCALL_DEFINE4() 1288 return do_sendfile(out_fd, in_fd, NULL, count, 0); SYSCALL_DEFINE4() 1292 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, COMPAT_SYSCALL_DEFINE4() 1303 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); COMPAT_SYSCALL_DEFINE4() 1309 return do_sendfile(out_fd, in_fd, NULL, count, 0); COMPAT_SYSCALL_DEFINE4() 1312 COMPAT_SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, COMPAT_SYSCALL_DEFINE4() 1321 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); COMPAT_SYSCALL_DEFINE4() 1327 return do_sendfile(out_fd, in_fd, NULL, count, 0); COMPAT_SYSCALL_DEFINE4()
|
/linux-4.4.14/tools/testing/selftests/exec/ |
H A D | execveat.c | 140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); exe_cp() local 144 sendfile(out_fd, in_fd, NULL, info.st_size); exe_cp() 146 close(out_fd); exe_cp()
|
/linux-4.4.14/include/linux/ |
H A D | compat.h | 685 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd, 687 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
|
H A D | syscalls.h | 510 asmlinkage long sys_sendfile(int out_fd, int in_fd, 512 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
|
/linux-4.4.14/lib/ |
H A D | decompress_bunzip2.c | 516 If start_bunzip was initialized with out_fd =-1, then up to len bytes of 518 error (all errors are negative numbers). If out_fd!=-1, outbuf and len 519 are ignored, data is written to out_fd and return is RETVAL_OK or error.
|
/linux-4.4.14/net/ |
H A D | socket.c | 1473 goto out_fd; SYSCALL_DEFINE4() 1477 goto out_fd; SYSCALL_DEFINE4() 1483 goto out_fd; SYSCALL_DEFINE4() 1488 goto out_fd; SYSCALL_DEFINE4() 1500 out_fd: SYSCALL_DEFINE4()
|