diff options
author | Ian Lance Taylor <ian@airs.com> | 1992-10-23 21:01:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1992-10-23 21:01:29 +0000 |
commit | 700b2ee3ef5cc4e03f905681cf549f43938ddf50 (patch) | |
tree | 60e3cc5554fd3d1a3fdadd6e9ff8c0c92e65245c /bfd/libbfd.h | |
parent | c26d7d179ce415260e46eba69629d220a439b79c (diff) | |
download | gdb-700b2ee3ef5cc4e03f905681cf549f43938ddf50.zip gdb-700b2ee3ef5cc4e03f905681cf549f43938ddf50.tar.gz gdb-700b2ee3ef5cc4e03f905681cf549f43938ddf50.tar.bz2 |
Fri Oct 23 13:55:35 1992 Ian Lance Taylor (ian@cygnus.com)
* Check fclose return value for errors.
libbfd.h: bfd_cache_close now returns a boolean.
cache.c (bfd_cache_delete): return fclose success value.
(bfd_cache_close): return bfd_cache_delete return value.
opncls.c (bfd_close, bfd_close_all_done): return result of
bfd_cache_close.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index aee8fdc..1bcfe84 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -71,6 +71,7 @@ PROTO(PTR, bfd_zalloc,(bfd *abfd, bfd_size_type size)); PROTO(PTR, bfd_realloc,(bfd *abfd, PTR orig, bfd_size_type new)); PROTO(void, bfd_alloc_grow,(bfd *abfd, PTR thing, bfd_size_type size)); PROTO(PTR, bfd_alloc_finish,(bfd *abfd)); +PROTO(PTR, bfd_alloc_by_size_t,(bfd *abfd, size_t wanted)); #define bfd_release(x,y) (void) obstack_free(&(x->memory),y) @@ -204,7 +205,7 @@ extern bfd *bfd_last_cache; (FILE*)(bfd_last_cache->iostream): \ bfd_cache_lookup_worker(x)) void EXFUN(bfd_cache_init , (bfd *)); -void EXFUN(bfd_cache_close , (bfd *)); +boolean EXFUN(bfd_cache_close , (bfd *)); FILE* EXFUN(bfd_open_file, (bfd *)); FILE *EXFUN(bfd_cache_lookup_worker, (bfd *)); void EXFUN(bfd_constructor_entry, (bfd *abfd, @@ -233,3 +234,4 @@ CONST bfd_arch_info_type *EXFUN(bfd_default_compatible , (CONST bfd_arch_info_type *a, CONST bfd_arch_info_type *b)); boolean EXFUN(bfd_default_scan, (CONST struct bfd_arch_info *, CONST char *)); +struct elf_internal_shdr *EXFUN(bfd_elf_find_section , (bfd *abfd, char *name)); |