Home
last modified time | relevance | path

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

12

/netbsd-src/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 DChangeLog1968 * 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 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-src/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-src/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.c3446 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 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-src/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-src/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-src/sys/kern/
H A Dvfs_syscalls.c4382 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 Dsystrace_args.c3494 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd-src/lib/librumphijack/
H A Dhijack.c1354 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 Dnetbsd32_fs.c1170 NETBSD32TO64_UAP(fromfd); in netbsd32_renameat()
H A Dnetbsd32_syscallargs.h2478 syscallarg(int) fromfd;
H A Dnetbsd32_systrace_args.c3311 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd-src/sys/compat/linux/arch/aarch64/
H A Dlinux_systrace_args.c290 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 Drump_syscalls.c5830 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 Dlinux32_systrace_args.c1799 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd-src/sys/compat/linux/arch/amd64/
H A Dlinux_systrace_args.c1808 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 Dlinux32_systrace_args.c1872 iarg[0] = SCARG(p, fromfd); /* int */ in systrace_args()
/netbsd-src/sys/compat/linux/arch/i386/
H A Dlinux_systrace_args.c1970 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 Dlinux_systrace_args.c1907 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 Dsyscallargs.h3013 syscallarg(int) fromfd;

12