OSDN Git Service

PR 973
authorAlan Modra <amodra@bigpond.net.au>
Thu, 27 Oct 2005 05:31:16 +0000 (05:31 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Thu, 27 Oct 2005 05:31:16 +0000 (05:31 +0000)
commit8b97abf61871424711eae339f9cd53a2c0b843f9
treea758a7884681c2a5fbf1a6292252639e19979b16
parent8f9577ec10ea2672fa569dedcba4deef117f17b0
PR 973
* cache.c (enum cache_flag): New.
(close_one): Save file mtime.
(bfd_cache_lookup): Add flag arg, adjust all users.
(bfd_cache_lookup_worker): Likewise.
(cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
not open.
(cache_bflush): Similarly, and return success of file not open.
(cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
(cache_bstat): Use CACHE_NO_SEEK_ERROR.
bfd/ChangeLog
bfd/cache.c