Home
last modified time | relevance | path

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

/freebsd-9-stable/gnu/usr.bin/patch/
Dutil.c37 Reg3 int fromfd; in move_file() local
46 fromfd = open(from, 0); in move_file()
47 if (fromfd < 0) in move_file()
49 while ((i = read(fromfd, buf, buf_size)) > 0) in move_file()
52 Close(fromfd); in move_file()
126 fromfd = open(from, 0); in move_file()
127 if (fromfd < 0) in move_file()
129 while ((i = read(fromfd, buf, buf_size)) > 0) in move_file()
132 Close(fromfd); in move_file()
146 Reg2 int fromfd; in copy_file() local
[all …]
/freebsd-9-stable/contrib/binutils/binutils/
Drename.c53 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-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()
52 if (fchdir(fromfd) == -1) { 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
3701 int fromfd;
3713 assert (tofd == fromfd);
3724 close_on_exec (fromfd);
3729 if (tofd == fromfd)
3731 fromfd = dup (tofd);
3732 if (fromfd < 0)
3748 from_server_fp = fdopen (fromfd, FOPEN_BINARY_READ);
3750 error (1, errno, "cannot fdopen %d for read", fromfd);
4030 int tofd, fromfd; local
[all …]
DChangeLog-963633 (connect_to_pserver): Put tofd and fromfd declarations inside