| /netbsd-src/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 | 1968 * rename.c (smart_rename): Add fromfd and preserve_dates params. 1969 Pass fromfd and target_stat to simple_copy. Call set_times 1971 (simple_copy): Accept fromfd rather than from filename. Add 1972 target_stat param. Rewind fromfd rather than opening. Open
|
| /netbsd-src/external/gpl3/binutils.old/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-src/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-src/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 | 3446 make_bufs_from_fds(int tofd, int fromfd, int child_pid, cvsroot_t *root, in make_bufs_from_fds() argument 3453 assert (tofd == fromfd); in make_bufs_from_fds() 3462 close_on_exec (fromfd); in make_bufs_from_fds() 3467 if (tofd == fromfd) in make_bufs_from_fds() 3469 fromfd = dup (tofd); in make_bufs_from_fds() 3470 if (fromfd < 0) in make_bufs_from_fds() 3481 *from_server_p = fd_buffer_initialize (fromfd, child_pid, root, in make_bufs_from_fds() 3784 int tofd, fromfd; in connect_to_forked_server() local 3822 child_pid = piped_child (command, &tofd, &fromfd, false); in connect_to_forked_server() 3826 make_bufs_from_fds (tofd, fromfd, child_pid, root, to_server_p, in connect_to_forked_server() [all …]
|
| /netbsd-src/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-src/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-src/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-src/sys/kern/ |
| H A D | vfs_syscalls.c | 4382 syscallarg(int) fromfd; in do_sys_renameat() 4388 return do_sys_renameat(l, SCARG(uap, fromfd), SCARG(uap, from), in do_sys_renameat() 4430 do_sys_renameat(struct lwp *l, int fromfd, const char *from, int tofd, in do_sys_renameat() 4440 KASSERT(l != NULL || fromfd == AT_FDCWD); in do_sys_renameat() 4461 if ((error = fd_nameiat(l, fromfd, &fnd)) != 0) in do_sys_renameat() 4368 do_sys_renameat(struct lwp * l,int fromfd,const char * from,int tofd,const char * to,enum uio_seg seg,int retain) do_sys_renameat() argument
|
| H A D | systrace_args.c | 3494 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/lib/librumphijack/ |
| H A D | hijack.c | 1354 linkat(int fromfd, const char *from, int tofd, const char *to, int flags) in linkat() 1356 if (fromfd != AT_FDCWD || tofd != AT_FDCWD in linkat() 1353 linkat(int fromfd,const char * from,int tofd,const char * to,int flags) linkat() argument
|
| /netbsd-src/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;
|
| H A D | netbsd32_systrace_args.c | 3311 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/compat/linux/arch/aarch64/ |
| H A D | linux_systrace_args.c | 290 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args() 1781 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/rump/librump/rumpkern/ |
| H A D | rump_syscalls.c | 5830 rump___sysimpl_renameat(int fromfd, const char * from, int tofd, const char * to) in rump___sysimpl_renameat() argument 5838 SPARG(&callarg, fromfd) = fromfd; in rump___sysimpl_renameat()
|
| /netbsd-src/sys/compat/linux32/arch/amd64/ |
| H A D | linux32_systrace_args.c | 1799 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/compat/linux/arch/amd64/ |
| H A D | linux_systrace_args.c | 1808 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args() 2097 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/compat/linux32/arch/aarch64/ |
| H A D | linux32_systrace_args.c | 1872 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/compat/linux/arch/i386/ |
| H A D | linux_systrace_args.c | 1970 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args() 2228 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/compat/linux/arch/arm/ |
| H A D | linux_systrace_args.c | 1907 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args() 2196 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
|
| /netbsd-src/sys/sys/ |
| H A D | syscallargs.h | 3013 syscallarg(int) fromfd;
|