Lines Matching defs:errp
75 ctf_zopen(int *errp)
83 return (ctf_set_open_errno(errp, ECTF_ZMISSING));
86 return (ctf_set_open_errno(errp, ECTF_ZINIT));
94 return (ctf_set_open_errno(errp, ECTF_ZINIT));
194 ctf_fdopen(int fd, int *errp)
214 return (ctf_set_open_errno(errp, errno));
217 return (ctf_set_open_errno(errp, nbytes < 0? errno : ECTF_FMT));
226 return (ctf_set_open_errno(errp, ECTF_CTFVERS));
232 return (ctf_set_open_errno(errp, errno));
241 if ((fp = ctf_bufopen(&ctfsect, NULL, NULL, errp)) == NULL)
268 return (ctf_set_open_errno(errp, ECTF_ENDIAN));
270 return (ctf_set_open_errno(errp, ECTF_ELFVERS));
274 return (ctf_set_open_errno(errp, ECTF_FMT));
281 return (ctf_set_open_errno(errp, ECTF_CORRUPT));
287 return (ctf_set_open_errno(errp, errno));
301 return (ctf_set_open_errno(errp, errno));
311 return (ctf_set_open_errno(errp, errno));
329 return (ctf_set_open_errno(errp, ECTF_MMAP));
377 return (ctf_set_open_errno(errp, ECTF_NOCTFDATA));
386 return (ctf_set_open_errno(errp, ECTF_MMAP));
393 (void) ctf_set_open_errno(errp, ECTF_MMAP);
396 fp = ctf_bufopen(&ctfsect, &symsect, &strsect, errp);
398 fp = ctf_bufopen(&ctfsect, NULL, NULL, errp);
411 return (ctf_set_open_errno(errp, ECTF_FMT));
420 ctf_open(const char *filename, int *errp)
426 if (errp != NULL)
427 *errp = errno;
431 fp = ctf_fdopen(fd, errp);