HomeSort by: relevance | last modified time | path
    Searched defs:to_fd (Results 1 - 4 of 4) sorted by relevancy

  /src/bin/mv/
mv.c 278 int from_fd, to_fd; local in function:fastcopy
286 if ((to_fd =
296 (void)close(to_fd);
300 if (write(to_fd, bp, nread) != nread) {
319 (void)close(to_fd);
323 if (fcpxattr(from_fd, to_fd) == -1)
345 if (futimens(to_fd, ts))
347 if (futimes(to_fd, tval))
351 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
356 if (fchmod(to_fd, sbp->st_mode)
    [all...]
  /src/bin/cp/
utils.c 103 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local in function:copy_file
122 to_fd = -1;
158 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
160 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
163 if (to_fd == -1 && (fflag || tolnk)) {
169 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
173 if (to_fd == -1) {
221 if (write(to_fd, &p[fsize - remainder],
242 wcount = write(to_fd, buf, (size_t)rcount);
258 if (pflag && (fcpxattr(from_fd, to_fd) != 0)
    [all...]
  /src/usr.sbin/pwd_mkdb/
pwd_mkdb.c 641 int from_fd, to_fd; local in function:cp
646 if ((to_fd = open(to, O_WRONLY | O_CREAT | O_EXCL, mode)) < 0) {
651 wcount = write(to_fd, buf, (size_t)rcount);
654 (void)close(to_fd);
660 if (close(to_fd))
  /src/usr.bin/xinstall/
xinstall.c 672 int devnull, from_fd, to_fd, serrno, tmpmode; local in function:install
742 if ((to_fd = mkstemp(to_name)) == -1)
745 if ((to_fd = open(to_name,
756 copy(from_fd, from_name, to_fd, to_name, from_sb.st_size);
767 close(to_fd);
768 if ((to_fd = open(to_name, O_RDONLY, S_IRUSR | S_IWUSR)) < 0)
774 if (fstat(to_fd, &to_sb) != 0)
778 copy(to_fd, to_name, -1, NULL, size);
789 close(to_fd);
790 if ((to_fd = open(to_name, O_RDONLY, S_IRUSR | S_IWUSR)) < 0
    [all...]

Completed in 14 milliseconds