Lines Matching refs:newfile
3120 char newfile[PATH_MAX + 1];
3134 (void) strcpy(newfile, dev_dir);
3135 (void) strcat(newfile, "/");
3136 (void) strcat(newfile, file);
3143 ((linksize = readlink(newfile, contents, PATH_MAX)) > 0)) {
3168 vprint(VERBOSE_MID, DEVFSADM_UNLINK, newfile);
3171 s_unlink(newfile);
3172 rm_parent_dir_if_empty(newfile);
5846 char newfile[PATH_MAX + 1];
5851 (void) strcpy(newfile, root_dir);
5852 (void) strcat(newfile, "/");
5853 (void) strcat(newfile, file);
5855 if (lstat(newfile, &sp) == 0) {
5856 /* newfile already exists, so no need to continue */
5866 if (mknod(newfile, stat->st_mode, newdev) == -1) {
5867 err_print(MKNOD_FAILED, newfile, strerror(errno));
5871 if (mknod(newfile, stat->st_mode, 0) == -1) {
5872 err_print(MKNOD_FAILED, newfile, strerror(errno));
5886 if (symlink(linkcontents, newfile) == -1) {
5887 err_print(SYMLINK_FAILED, newfile, newfile,
5893 (void) lchown(newfile, stat->st_uid, stat->st_gid);