Lines Matching refs:from
28 * Copies "from" to "to".
31 copy_file (const char *from, const char *to)
38 TRACE (TRACE_FUNCTION, "copy(%s,%s)", from, to);
45 if ((rsize = islink (from)) > 0)
47 char *source = Xreadlink (from, rsize);
53 if (isdevice (from))
56 if (stat (from, &sb) < 0)
57 error (1, errno, "cannot stat %s", from);
60 error (1, 0, "cannot copy device files on this system (%s)", from);
66 if ((fdin = open (from, O_RDONLY)) < 0)
67 error (1, errno, "cannot open %s for copying", from);
69 error (1, errno, "cannot fstat %s", from);
86 error (1, errno, "cannot read file %s for copying", from);
98 error (0, errno, "cannot close %s", from);
112 /* FIXME-krp: these functions would benefit from caching the char * &
407 rename_file (const char *from, const char *to)
409 TRACE (TRACE_FUNCTION, "rename(%s,%s)", from, to);
414 if (rename (from, to) < 0)
415 error (1, errno, "cannot rename file %s to %s", from, to);
558 /* Read NCHARS bytes from descriptor FD into BUF.
814 directory. What typically happens is that upon being started from