Lines Matching defs:destpath
964 static int copy_inode(const char *destpath, const struct stat *dest_stat,
968 <destpath> The destination path. An existing inode may be deleted.
986 || (dest_len = readlink(destpath , dest_link , STRING_LENGTH - 1)) < 0
992 unlink(destpath);
993 symlink(source_link, destpath);
997 chmod(destpath, new_mode & ~S_IFMT);
998 chown(destpath, source_stat->st_uid, source_stat->st_gid);
1002 unlink(destpath);
1008 snprintf(un_addr.sun_path, sizeof(un_addr.sun_path), "%s", destpath);
1011 if (val != 0 || chmod(destpath, new_mode & ~S_IFMT) != 0)
1018 if (symlink(symlink_val, destpath) == 0)
1022 if ((fd = open(destpath, O_RDONLY | O_CREAT, new_mode & ~S_IFMT)) < 0)
1025 if (chmod(destpath, new_mode & ~S_IFMT) != 0)
1031 if (mknod(destpath, new_mode, source_stat->st_rdev) != 0)
1035 if (mkdir(destpath, new_mode & ~S_IFMT) != 0)
1038 if (chown(destpath, source_stat->st_uid, source_stat->st_gid) == 0)