/netbsd/external/gpl3/binutils/dist/binutils/ |
H A D | rename.c | 38 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 D | ChangeLog | 1463 * 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 D | rename.c | 45 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 D | rename.c | 45 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 D | rename.c | 45 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 D | util.c | 60 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 D | rsh-client.c | 144 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 D | release.c | 61 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 D | client.c | 3452 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 D | netbsd_syscall_hooks.h | 2553 #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 D | netbsd_syscall_hooks.h | 2525 #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 D | netbsd_syscall_hooks.h | 2553 #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 D | vfs_syscalls.c | 4313 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 D | systrace_args.c | 3494 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/lib/librumphijack/ |
H A D | hijack.c | 1353 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 D | netbsd32_fs.c | 1170 NETBSD32TO64_UAP(fromfd); in netbsd32_renameat()
|
H A D | netbsd32_syscallargs.h | 2478 syscallarg(int) fromfd;
|
/netbsd/sys/compat/linux/arch/aarch64/ |
H A D | linux_systrace_args.c | 266 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/rump/librump/rumpkern/ |
H A D | rump_syscalls.c | 5828 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 D | linux32_systrace_args.c | 1799 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/compat/linux/arch/amd64/ |
H A D | linux_systrace_args.c | 1719 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/compat/linux32/arch/aarch64/ |
H A D | linux32_systrace_args.c | 1872 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/compat/linux/arch/i386/ |
H A D | linux_systrace_args.c | 1881 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/compat/linux/arch/arm/ |
H A D | linux_systrace_args.c | 1818 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
/netbsd/sys/sys/ |
H A D | syscallargs.h | 3013 syscallarg(int) fromfd;
|