Home
last modified time | relevance | path

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

/freebsd/usr.bin/patch/
H A Dutil.c54 int fromfd; in move_file() local
64 fromfd = open(from, O_RDONLY); in move_file()
65 if (fromfd < 0) in move_file()
67 while ((i = read(fromfd, buf, buf_size)) > 0) in move_file()
70 close(fromfd); in move_file()
166 int tofd, fromfd; in copy_file() local
172 fromfd = open(from, O_RDONLY, 0); in copy_file()
173 if (fromfd < 0) in copy_file()
175 while ((i = read(fromfd, buf, buf_size)) > 0) in copy_file()
178 close(fromfd); in copy_file()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Drenameat.h37 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/sys/kern/
H A Dvfs_syscalls.c3754 kern_renameat_mac(struct thread *td, int fromfd, const char *from, int tofd, in kern_renameat_mac() argument
3761 ndflags, pathseg, from, fromfd, &cap_renameat_source_rights); in kern_renameat_mac()
3779 kern_renameat(struct thread *td, int fromfd, const char *from, int tofd, in kern_renameat() argument
3808 error = kern_renameat_mac(td, fromfd, from, tofd, to, pathseg, in kern_renameat()
3815 pathseg, from, fromfd, &cap_renameat_source_rights); in kern_renameat()
/freebsd/contrib/llvm-project/compiler-rt/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,
/freebsd/sys/sys/
H A Dsyscallsubr.h335 int kern_renameat(struct thread *td, int fromfd, const char *from,