Home
last modified time | relevance | path

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

/freebsd-9-stable/contrib/binutils/binutils/
Drename.c53 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()
/freebsd-9-stable/gnu/usr.bin/patch/
Dutil.c118 Reg4 int tofd; in move_file() local
120 tofd = creat(to, 0666); in move_file()
121 if (tofd < 0) { in move_file()
130 if (write(tofd, buf, i) != i) in move_file()
133 Close(tofd); in move_file()
145 Reg3 int tofd; in copy_file() local
149 tofd = creat(to, 0666); in copy_file()
150 if (tofd < 0) in copy_file()
156 if (write(tofd, buf, i) != i) in copy_file()
159 Close(tofd); in copy_file()
/freebsd-9-stable/contrib/openbsm/bin/auditdistd/
Drenameat.h39 renameat(int fromfd, const char *from, int tofd, const char *to) in renameat() argument
43 if (fromfd != tofd) { in renameat()
/freebsd-9-stable/contrib/cvs/src/
Dclient.c3699 make_bufs_from_fds (tofd, fromfd, child_pid, to_server, from_server, is_sock) in make_bufs_from_fds() argument
3700 int tofd; in make_bufs_from_fds()
3713 assert (tofd == fromfd);
3714 *to_server = socket_buffer_initialize (tofd, 0,
3716 *from_server = socket_buffer_initialize (tofd, 1,
3723 close_on_exec (tofd);
3729 if (tofd == fromfd)
3731 fromfd = dup (tofd);
3742 to_server_fp = fdopen (tofd, FOPEN_BINARY_WRITE);
3744 error (1, errno, "cannot fdopen %d for write", tofd);
[all …]
DChangeLog-962953 (start_tcp_server): tofd wasn't getting set to -1 early enough,
3633 (connect_to_pserver): Put tofd and fromfd declarations inside