osprey/cygnus/bfd/cache.c File Reference

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

Include dependency graph for cache.c:

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 ()
FILEbfd_open_file (bfd *abfd)
FILEbfd_cache_lookup_worker (bfd *abfd)

Variables

static struct bfd_iovec cache_iovec
static int open_files
bfdbfd_last_cache


Function Documentation

bfd_boolean bfd_cache_close ( bfd abfd  ) 

bfd_boolean bfd_cache_close_all ( void   ) 

Definition at line 368 of file cache.c.

References bfd_cache_close(), NULL, ret, and TRUE.

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  ) 

FILE * bfd_cache_lookup_worker ( bfd abfd  ) 

FILE* bfd_open_file ( bfd abfd  ) 

static int cache_bclose ( struct bfd abfd  )  [static]

Definition at line 127 of file cache.c.

References bfd_cache_close().

static int cache_bflush ( struct bfd abfd  )  [static]

Definition at line 133 of file cache.c.

References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), and fflush().

static file_ptr cache_bread ( struct bfd abfd,
void buf,
file_ptr  nbytes 
) [static]

Definition at line 73 of file cache.c.

References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), ferror(), fileno, fread, and read.

static int cache_bseek ( struct bfd abfd,
file_ptr  offset,
int  whence 
) [static]

Definition at line 60 of file cache.c.

References bfd_cache_lookup, and real_fseek().

static int cache_bstat ( struct bfd abfd,
struct stat sb 
) [static]

Definition at line 142 of file cache.c.

References bfd_cache_lookup, bfd_error_system_call, bfd_set_error(), fileno, and fstat.

static file_ptr cache_btell ( struct bfd abfd  )  [static]

Definition at line 54 of file cache.c.

References bfd_cache_lookup, and real_ftell().

static file_ptr cache_bwrite ( struct bfd abfd,
const void where,
file_ptr  nbytes 
) [static]

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]

static void insert ( bfd abfd  )  [static]

Definition at line 206 of file cache.c.

References bfd::lru_next, bfd::lru_prev, and NULL.

static void snip ( bfd abfd  )  [static]

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().


Variable Documentation

Definition at line 184 of file cache.c.

Initial value:

Definition at line 150 of file cache.c.

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().


Generated on Wed Apr 8 14:46:43 2009 for Open64 by  doxygen 1.5.6