Home
last modified time | relevance | path

Searched refs:fromfd (Results 1 – 25 of 27) sorted by relevance

12

/netbsd/external/gpl3/binutils/dist/binutils/
H A Drename.c38 simple_copy (int fromfd, const char *to, in simple_copy() argument
45 if (fromfd < 0 in simple_copy()
46 || lseek (fromfd, 0, SEEK_SET) != 0) in simple_copy()
53 close (fromfd); in simple_copy()
58 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy()
63 close (fromfd); in simple_copy()
79 close (fromfd); in simple_copy()
210 smart_rename (const char *from, const char *to, int fromfd, in smart_rename() argument
217 ret = simple_copy (fromfd, to, target_stat); in smart_rename()
H A DChangeLog1463 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1464 Pass fromfd and target_stat to simple_copy. Call set_times
1466 (simple_copy): Accept fromfd rather than from filename. Add
1467 target_stat param. Rewind fromfd rather than opening. Open
/netbsd/external/gpl3/gdb/dist/binutils/
H A Drename.c45 int fromfd, tofd, nread; in simple_copy() local
49 fromfd = open (from, O_RDONLY | O_BINARY); in simple_copy()
50 if (fromfd < 0) in simple_copy()
60 close (fromfd); in simple_copy()
64 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy()
69 close (fromfd); in simple_copy()
76 close (fromfd); in simple_copy()
/netbsd/external/gpl3/binutils.old/dist/binutils/
H A Drename.c45 int fromfd, tofd, nread; in simple_copy() local
49 fromfd = open (from, O_RDONLY | O_BINARY); in simple_copy()
50 if (fromfd < 0) in simple_copy()
60 close (fromfd); in simple_copy()
64 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy()
69 close (fromfd); in simple_copy()
76 close (fromfd); in simple_copy()
/netbsd/external/gpl3/gdb.old/dist/binutils/
H A Drename.c45 int fromfd, tofd, nread; in simple_copy() local
49 fromfd = open (from, O_RDONLY | O_BINARY); in simple_copy()
50 if (fromfd < 0) in simple_copy()
60 close (fromfd); in simple_copy()
64 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy()
69 close (fromfd); in simple_copy()
76 close (fromfd); in simple_copy()
/netbsd/usr.bin/patch/
H A Dutil.c60 int fromfd; in move_file() local
70 fromfd = open(from, O_RDONLY); in move_file()
71 if (fromfd < 0) in move_file()
73 while ((i = read(fromfd, buf, bufsz)) > 0) in move_file()
76 close(fromfd); in move_file()
172 int tofd, fromfd; in copy_file() local
178 fromfd = open(from, O_RDONLY, 0); in copy_file()
179 if (fromfd < 0) in copy_file()
181 while ((i = read(fromfd, buf, bufsz)) > 0) in copy_file()
184 close(fromfd); in copy_file()
/netbsd/external/gpl2/xcvs/dist/src/
H A Drsh-client.c144 int tofd, fromfd; in start_rsh_server() local
194 child_pid = piped_child (argv, &tofd, &fromfd, true); in start_rsh_server()
201 make_bufs_from_fds (tofd, fromfd, child_pid, root, to_server_p, in start_rsh_server()
H A Drelease.c61 int tofd, fromfd; in setup_update_command() local
85 *child_pid = run_piped (&tofd, &fromfd); in setup_update_command()
91 return fdopen (fromfd, "r"); in setup_update_command()
H A Dclient.c3452 assert (tofd == fromfd); in make_bufs_from_fds()
3461 close_on_exec (fromfd); in make_bufs_from_fds()
3466 if (tofd == fromfd) in make_bufs_from_fds()
3468 fromfd = dup (tofd); in make_bufs_from_fds()
3469 if (fromfd < 0) in make_bufs_from_fds()
3783 int tofd, fromfd; in connect_to_forked_server() local
3821 child_pid = piped_child (command, &tofd, &fromfd, false); in connect_to_forked_server()
3907 int tofd, fromfd; in open_connection_to_server() local
3908 START_SERVER (&tofd, &fromfd, getcaller (), in open_connection_to_server()
3913 make_bufs_from_fds (tofd, fromfd, 0, root, to_server_p, in open_connection_to_server()
[all …]
/netbsd/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2553 #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \ argument
2554 __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \
2557 #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \ argument
2558 __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \
4772 void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from,
4774 void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd,
/netbsd/sys/external/bsd/compiler_rt/dist/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2525 #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \ argument
2526 __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \
2529 #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \ argument
2530 __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \
4591 void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from,
4593 void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd,
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2553 #define __sanitizer_syscall_pre_renameat(fromfd, from, tofd, to) \ argument
2554 __sanitizer_syscall_pre_impl_renameat((long long)(fromfd), \
2557 #define __sanitizer_syscall_post_renameat(res, fromfd, from, tofd, to) \ argument
2558 __sanitizer_syscall_post_impl_renameat(res, (long long)(fromfd), \
4772 void __sanitizer_syscall_pre_impl_renameat(long long fromfd, long long from,
4774 void __sanitizer_syscall_post_impl_renameat(long long res, long long fromfd,
/netbsd/sys/kern/
H A Dvfs_syscalls.c4313 return (do_sys_renameat(l, SCARG(uap, fromfd), SCARG(uap, from), in sys_renameat()
4352 do_sys_renameat(struct lwp *l, int fromfd, const char *from, int tofd, in do_sys_renameat() argument
4362 KASSERT(l != NULL || fromfd == AT_FDCWD); in do_sys_renameat()
4383 if ((error = fd_nameiat(l, fromfd, &fnd)) != 0) in do_sys_renameat()
H A Dsystrace_args.c3494 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/lib/librumphijack/
H A Dhijack.c1353 linkat(int fromfd, const char *from, int tofd, const char *to, int flags) in linkat() argument
1355 if (fromfd != AT_FDCWD || tofd != AT_FDCWD in linkat()
/netbsd/sys/compat/netbsd32/
H A Dnetbsd32_fs.c1170 NETBSD32TO64_UAP(fromfd); in netbsd32_renameat()
H A Dnetbsd32_syscallargs.h2478 syscallarg(int) fromfd;
/netbsd/sys/compat/linux/arch/aarch64/
H A Dlinux_systrace_args.c266 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/rump/librump/rumpkern/
H A Drump_syscalls.c5828 rump___sysimpl_renameat(int fromfd, const char * from, int tofd, const char * to) in rump___sysimpl_renameat() argument
5836 SPARG(&callarg, fromfd) = fromfd; in rump___sysimpl_renameat()
/netbsd/sys/compat/linux32/arch/amd64/
H A Dlinux32_systrace_args.c1799 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/compat/linux/arch/amd64/
H A Dlinux_systrace_args.c1719 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/compat/linux32/arch/aarch64/
H A Dlinux32_systrace_args.c1872 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/compat/linux/arch/i386/
H A Dlinux_systrace_args.c1881 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/compat/linux/arch/arm/
H A Dlinux_systrace_args.c1818 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd/sys/sys/
H A Dsyscallargs.h3013 syscallarg(int) fromfd;

12