Lines Matching refs:fp
126 idle_add_mapping(struct ps_prochandle *P, GElf_Phdr *php, file_info_t *fp)
136 (void) strncpy(pmap.pr_mapname, fp->file_pname,
151 return (Padd_mapping(P, php->p_offset, fp, &pmap));
162 file_info_t *fp = NULL;
203 if ((fp = calloc(1, sizeof (file_info_t))) == NULL) {
208 if ((fp->file_lo = calloc(1, sizeof (rd_loadobj_t))) == NULL) {
214 (void) strncpy(fp->file_pname, fname, sizeof (fp->file_pname));
218 if (getcwd(fp->file_pname, sizeof (fp->file_pname) - 1) ==
224 sz = strlen(fp->file_pname);
225 (void) snprintf(&fp->file_pname[sz],
226 sizeof (fp->file_pname) - sz, "/%s", fname);
229 fp->file_fd = fd;
230 fp->file_lo->rl_lmident = LM_ID_BASE;
231 if ((fp->file_lname = strdup(fp->file_pname)) == NULL) {
235 fp->file_lbase = basename(fp->file_lname);
237 if ((P->execname = strdup(fp->file_pname)) == NULL) {
243 list_link(fp, &P->file_head);
271 if (idle_add_mapping(P, php, fp) != 0) {
280 P->map_exec = fp->file_map;
308 if (Pfindobj(P, fp->file_lname, buf, sizeof (buf)) != NULL) {
311 if ((fp->file_rname = strdup(buf)) != NULL)
312 fp->file_rbase = basename(fp->file_rname);