/src/bin/mv/ |
mv.c | 278 int from_fd, to_fd; local in function:fastcopy 282 if ((from_fd = open(from, O_RDONLY, 0)) < 0) { 289 (void)close(from_fd); 295 (void)close(from_fd); 299 while ((nread = read(from_fd, bp, blen)) > 0) { 318 (void)close(from_fd); 323 if (fcpxattr(from_fd, to_fd) == -1) 326 (void)close(from_fd);
|
/src/bin/cp/ |
utils.c | 103 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local in function:copy_file 117 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { 144 (void)close(from_fd); 153 (void)close(from_fd); 175 (void)close(from_fd); 201 from_fd, (off_t)0); 241 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { 258 if (pflag && (fcpxattr(from_fd, to_fd) != 0)) 262 if (pflag && preserve_fd_acls(from_fd, to_fd) != 0) 266 (void)close(from_fd); [all...] |
/src/usr.sbin/pwd_mkdb/ |
pwd_mkdb.c | 641 int from_fd, to_fd; local in function:cp 644 if ((from_fd = open(from, O_RDONLY, 0)) < 0) 647 (void)close(from_fd); 650 while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { 653 (void)close(from_fd); 659 close(from_fd);
|
/src/usr.bin/xinstall/ |
xinstall.c | 672 int devnull, from_fd, to_fd, serrno, tmpmode; local in function:install 751 if ((from_fd = open(from_name, O_RDONLY, 0)) < 0) { 756 copy(from_fd, from_name, to_fd, to_name, from_sb.st_size); 757 (void)close(from_fd); 860 copy(int from_fd, char *from_name, int to_fd, char *to_name, off_t size) 913 MAP_FILE|MAP_SHARED, from_fd, (off_t)0)) 954 while ((nr = read(from_fd, buf, sizeof(buf))) > 0) {
|