Searched refs:fromfd (Results 1 – 4 of 4) sorted by relevance
| /freebsd-12.1/contrib/binutils/binutils/ |
| H A D | rename.c | 53 int fromfd, tofd, nread; in simple_copy() local 57 fromfd = open (from, O_RDONLY | O_BINARY); in simple_copy() 58 if (fromfd < 0) in simple_copy() 68 close (fromfd); in simple_copy() 72 while ((nread = read (fromfd, buf, sizeof buf)) > 0) in simple_copy() 77 close (fromfd); in simple_copy() 84 close (fromfd); in simple_copy()
|
| /freebsd-12.1/usr.bin/patch/ |
| H A D | util.c | 55 int fromfd; in move_file() local 65 fromfd = open(from, O_RDONLY); in move_file() 66 if (fromfd < 0) in move_file() 68 while ((i = read(fromfd, buf, buf_size)) > 0) in move_file() 71 close(fromfd); in move_file() 167 int tofd, fromfd; in copy_file() local 173 fromfd = open(from, O_RDONLY, 0); in copy_file() 174 if (fromfd < 0) in copy_file() 176 while ((i = read(fromfd, buf, buf_size)) > 0) in copy_file() 179 close(fromfd); in copy_file()
|
| /freebsd-12.1/contrib/openbsm/bin/auditdistd/ |
| H A D | renameat.h | 37 renameat(int fromfd, const char *from, int tofd, const char *to) in renameat() argument 41 if (fromfd != tofd) { in renameat() 50 if (fchdir(fromfd) == -1) { in renameat()
|
| /freebsd-12.1/contrib/compiler-rt/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,
|