Home
last modified time | relevance | path

Searched refs:obj_fd (Results 1 – 3 of 3) sorted by relevance

/external/google-breakpad/src/common/solaris/
Ddump_symbols.cc645 int obj_fd = open(obj_file.c_str(), O_RDONLY); in WriteSymbolFile() local
646 if (obj_fd < 0) in WriteSymbolFile()
648 FDWrapper obj_fd_wrapper(obj_fd); in WriteSymbolFile()
650 if (fstat(obj_fd, &st) != 0 && st.st_size <= 0) in WriteSymbolFile()
653 PROT_READ, MAP_PRIVATE, obj_fd, 0); in WriteSymbolFile()
658 Elf *elf = elf_begin(obj_fd, ELF_C_READ, NULL); in WriteSymbolFile()
/external/google-breakpad/src/common/linux/
Ddump_symbols.cc369 int obj_fd = open(obj_file.c_str(), O_RDONLY); in LoadELF() local
370 if (obj_fd < 0) { in LoadELF()
375 FDWrapper obj_fd_wrapper(obj_fd); in LoadELF()
377 if (fstat(obj_fd, &st) != 0 && st.st_size <= 0) { in LoadELF()
383 PROT_READ | PROT_WRITE, MAP_PRIVATE, obj_fd, 0); in LoadELF()
/external/iproute2/tc/
Dtc_bpf.c697 int obj_fd; member
1459 ret = fstat(ctx->obj_fd, &st); in bpf_save_finfo()
1614 ctx->obj_fd = open(pathname, O_RDONLY); in bpf_elf_ctx_init()
1615 if (ctx->obj_fd < 0) in bpf_elf_ctx_init()
1616 return ctx->obj_fd; in bpf_elf_ctx_init()
1618 ctx->elf_fd = elf_begin(ctx->obj_fd, ELF_C_READ, NULL); in bpf_elf_ctx_init()
1653 close(ctx->obj_fd); in bpf_elf_ctx_init()
1688 close(ctx->obj_fd); in bpf_elf_ctx_destroy()