Lines Matching refs:gp
49 struct get_pathname_struct *gp;
52 gp = (struct get_pathname_struct *) priv_data;
56 gp->parent = dirent->inode;
57 if (dirent->inode == gp->search_ino) {
59 &gp->name);
61 gp->errcode = retval;
64 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF));
65 gp->name[dirent->name_len & 0xFF] = '\0';
75 struct get_pathname_struct gp;
95 gp.search_ino = ino;
96 gp.parent = 0;
97 gp.name = 0;
98 gp.errcode = 0;
100 retval = ext2fs_dir_iterate(fs, dir, 0, buf, get_pathname_proc, &gp);
103 if (gp.errcode) {
104 retval = gp.errcode;
108 retval = ext2fs_get_pathname_int(fs, gp.parent, dir, maxdepth-1,
117 if (gp.name)
118 retval = ext2fs_get_mem(strlen(parent_name)+strlen(gp.name)+2,
129 if (gp.name)
130 strcat(ret, gp.name);
138 if (gp.name)
139 ext2fs_free_mem(&gp.name);