Searched refs:tofd (Results 1 – 3 of 3) sorted by relevance
| /NextBSD/contrib/binutils/binutils/ |
| HD | rename.c | 53 int fromfd, tofd, nread; in simple_copy() local 61 tofd = open (to, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, 0777); in simple_copy() 63 tofd = creat (to, 0777); in simple_copy() 65 if (tofd < 0) in simple_copy() 74 if (write (tofd, buf, nread) != nread) in simple_copy() 78 close (tofd); in simple_copy() 85 close (tofd); in simple_copy()
|
| /NextBSD/usr.bin/patch/ |
| HD | util.c | 167 int tofd, fromfd; in copy_file() local 170 tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666); in copy_file() 171 if (tofd < 0) in copy_file() 177 if (write(tofd, buf, i) != i) in copy_file() 180 close(tofd); in copy_file()
|
| /NextBSD/contrib/openbsm/bin/auditdistd/ |
| HD | renameat.h | 37 renameat(int fromfd, const char *from, int tofd, const char *to) in renameat() argument 41 if (fromfd != tofd) { in renameat()
|