Lines Matching defs:fd
164 read_safe(int fd, struct frame *fp, struct frame **savefp, uintptr_t *savepc)
172 if ((pread(fd, (void *)&newfp, sizeof (fp->fr_savfp),
174 pread(fd, (void *)savepc, sizeof (fp->fr_savpc),
196 int fd;
241 if ((fd = open("/proc/self/as", O_RDONLY)) < 0)
252 if (read_safe(fd, fp, &savefp, &savepc) != 0) {
253 (void) close(fd);
322 (void) close(fd);
375 * walk current thread stack, writing symbolic stack trace to specified fd
523 backtrace_symbols_fd(void *const *array, int size, int fd)
535 (void) write(fd, linebuffer, len + 1);