Lines Matching refs:newfile
3132 char newfile[PATH_MAX + 1]; in devfsadm_rm_work() local
3146 (void) strcpy(newfile, dev_dir); in devfsadm_rm_work()
3147 (void) strcat(newfile, "/"); in devfsadm_rm_work()
3148 (void) strcat(newfile, file); in devfsadm_rm_work()
3155 ((linksize = readlink(newfile, contents, PATH_MAX)) > 0)) { in devfsadm_rm_work()
3180 vprint(VERBOSE_MID, DEVFSADM_UNLINK, newfile); in devfsadm_rm_work()
3183 s_unlink(newfile); in devfsadm_rm_work()
3184 rm_parent_dir_if_empty(newfile); in devfsadm_rm_work()
5859 char newfile[PATH_MAX + 1]; in devfsadm_copy_file() local
5864 (void) strcpy(newfile, root_dir); in devfsadm_copy_file()
5865 (void) strcat(newfile, "/"); in devfsadm_copy_file()
5866 (void) strcat(newfile, file); in devfsadm_copy_file()
5868 if (lstat(newfile, &sp) == 0) { in devfsadm_copy_file()
5879 if (mknod(newfile, stat->st_mode, newdev) == -1) { in devfsadm_copy_file()
5880 err_print(MKNOD_FAILED, newfile, strerror(errno)); in devfsadm_copy_file()
5884 if (mknod(newfile, stat->st_mode, 0) == -1) { in devfsadm_copy_file()
5885 err_print(MKNOD_FAILED, newfile, strerror(errno)); in devfsadm_copy_file()
5899 if (symlink(linkcontents, newfile) == -1) { in devfsadm_copy_file()
5900 err_print(SYMLINK_FAILED, newfile, newfile, in devfsadm_copy_file()
5906 (void) lchown(newfile, stat->st_uid, stat->st_gid); in devfsadm_copy_file()