Lines Matching defs:from
6 * This code is derived from software contributed to Berkeley by
18 * may be used to endorse or promote products derived from this software
165 * Create a hard link to arcn->ln_name from arcn->name. arcn->ln_name
181 syswarn(1,errno,"Unable to link to %s from %s", arcn->ln_name,
197 * Create a hard link to arcn->org_name from arcn->name. Only used in copy
260 * finding the from file exists and the user has set -k).
267 mk_link(char *to, struct stat *to_sb, char *from,
274 * if from file exists, it has to be unlinked to make the link. If the
277 if (lstat(from, &sb) == 0) {
293 if (rmdir(from) < 0) {
294 syswarn(1, errno, "Unable to remove %s", from);
297 } else if (unlink(from) < 0) {
299 syswarn(1, errno, "Unable to remove %s", from);
307 * from file is gone (or did not exist), try to make the hard link.
312 if (link(to, from) == 0)
315 if (!nodirs && chk_path(from, to_sb->st_uid, to_sb->st_gid) == 0)
318 syswarn(1, oerrno, "Could not link to %s from %s", to,
319 from);
471 * since we changed it from the default as created.
485 * Remove node from file system with the specified name. We pass the type
561 * work forward from the first / and check each part of the path
729 * cannot determine one of those file from here, we ignore them). If this