#include "bfd.h"#include "sysdep.h"#include "libbfd.h"#include "libiberty.h"

Go to the source code of this file.
Functions/Subroutines | |
| static bfd_boolean | bfd_cache_delete (bfd *) |
| static file_ptr | cache_btell (struct bfd *abfd) |
| static int | cache_bseek (struct bfd *abfd, file_ptr offset, int whence) |
| static file_ptr | cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes) |
| static file_ptr | cache_bwrite (struct bfd *abfd, const void *where, file_ptr nbytes) |
| static int | cache_bclose (struct bfd *abfd) |
| static int | cache_bflush (struct bfd *abfd) |
| static int | cache_bstat (struct bfd *abfd, struct stat *sb) |
| static void | insert (bfd *abfd) |
| static void | snip (bfd *abfd) |
| static bfd_boolean | close_one (void) |
| bfd_boolean | bfd_cache_init (bfd *abfd) |
| bfd_boolean | bfd_cache_close (bfd *abfd) |
| bfd_boolean | bfd_cache_close_all () |
| FILE * | bfd_open_file (bfd *abfd) |
| FILE * | bfd_cache_lookup_worker (bfd *abfd) |
Variables | |
| static struct bfd_iovec | cache_iovec |
| static int | open_files |
| bfd * | bfd_last_cache |
| bfd_boolean bfd_cache_close | ( | bfd * | abfd | ) |
Definition at line 339 of file cache.c.
References bfd_cache_delete(), bfd::iostream, bfd::iovec, NULL, and TRUE.
Referenced by bfd_cache_close_all(), bfd_close_all_done(), cache_bclose(), and remove_output().
| bfd_boolean bfd_cache_close_all | ( | void | ) |
| static bfd_boolean bfd_cache_delete | ( | bfd * | abfd | ) | [static] |
Definition at line 276 of file cache.c.
References bfd_error_system_call, bfd_set_error(), FALSE, fclose(), bfd::iostream, NULL, open_files, ret, snip(), and TRUE.
Referenced by bfd_cache_close(), and close_one().
| bfd_boolean bfd_cache_init | ( | bfd * | abfd | ) |
Definition at line 308 of file cache.c.
References BFD_ASSERT, BFD_CACHE_MAX_OPEN, close_one(), FALSE, insert(), bfd::iostream, bfd::iovec, NULL, open_files, and TRUE.
Referenced by bfd_fdopenr(), bfd_open_file(), and bfd_openstreamr().
Definition at line 478 of file cache.c.
References abort, BFD_IN_MEMORY, bfd_open_file(), bfd::flags, insert(), bfd::iostream, bfd::my_archive, NULL, real_fseek(), SEEK_SET, snip(), and bfd::where.
Definition at line 394 of file cache.c.
References bfd_cache_init(), BFD_CACHE_MAX_OPEN, bfd::cacheable, close_one(), bfd::direction, bfd::filename, fopen, FOPEN_RB, FOPEN_RUB, FOPEN_WUB, bfd::iostream, NULL, open_files, bfd::opened_once, PTR, stat::st_size, TRUE, and unlink_if_ordinary().
Referenced by bfd_cache_lookup_worker(), bfd_openr(), and bfd_openw().
Definition at line 133 of file cache.c.
References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), and fflush().
Definition at line 73 of file cache.c.
References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), ferror(), fileno, fread, and read.
Definition at line 142 of file cache.c.
References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), fileno, and fstat.
Definition at line 115 of file cache.c.
References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), ferror(), and fwrite.
| static bfd_boolean close_one | ( | void | ) | [static] |
Definition at line 242 of file cache.c.
References bfd_cache_delete(), bfd::cacheable, bfd::iostream, kill, bfd::lru_prev, NULL, real_ftell(), TRUE, and bfd::where.
Referenced by bfd_cache_init(), and bfd_open_file().
Definition at line 226 of file cache.c.
References bfd::lru_next, bfd::lru_prev, and NULL.
Referenced by bfd_cache_delete(), and bfd_cache_lookup_worker().
struct bfd_iovec cache_iovec [static] |
Initial value:
{
&cache_bread, &cache_bwrite, &cache_btell, &cache_bseek,
&cache_bclose, &cache_bflush, &cache_bstat
}
int open_files [static] |
Definition at line 169 of file cache.c.
Referenced by bfd_cache_delete(), bfd_cache_init(), bfd_open_file(), and PARAMS().
1.5.6