Lines Matching refs:errp
55 ctf_zopen(int *errp)
67 return (ctf_set_open_errno(errp, ECTF_ZINIT));
75 return (ctf_set_open_errno(errp, ECTF_ZINIT));
175 ctf_fdopen(int fd, int *errp)
195 return (ctf_set_open_errno(errp, errno));
198 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT));
207 return (ctf_set_open_errno(errp, ECTF_CTFVERS));
213 return (ctf_set_open_errno(errp, errno));
222 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp)) == NULL)
249 return (ctf_set_open_errno(errp, ECTF_ENDIAN));
251 return (ctf_set_open_errno(errp, ECTF_ELFVERS));
255 return (ctf_set_open_errno(errp, ECTF_FMT));
262 return (ctf_set_open_errno(errp, ECTF_CORRUPT));
268 return (ctf_set_open_errno(errp, errno));
282 return (ctf_set_open_errno(errp, errno));
292 return (ctf_set_open_errno(errp, errno));
310 return (ctf_set_open_errno(errp, ECTF_MMAP));
358 return (ctf_set_open_errno(errp, ECTF_NOCTFDATA));
367 return (ctf_set_open_errno(errp, ECTF_MMAP));
374 (void) ctf_set_open_errno(errp, ECTF_MMAP);
377 fp = ctf_bufopen(&ctfsect, &symsect, &strsect, errp);
379 fp = ctf_bufopen(&ctfsect, NULL, NULL, errp);
392 return (ctf_set_open_errno(errp, ECTF_FMT));
401 ctf_open(const char *filename, int *errp)
407 if (errp != NULL)
408 *errp = errno;
412 fp = ctf_fdopen(fd, errp);