Lines Matching refs:file
414 void *file = _dl_sysdep_read_whole_file (LD_SO_CACHE, &cachesize, in _dl_load_cache_lookup() local
422 if (file != MAP_FAILED && cachesize > sizeof *cache_new in _dl_load_cache_lookup()
423 && memcmp (file, CACHEMAGIC_VERSION_NEW, in _dl_load_cache_lookup()
427 >= ((struct cache_file_new *) file)->nlibs)) in _dl_load_cache_lookup()
429 if (! cache_file_new_matches_endian (file)) in _dl_load_cache_lookup()
431 __munmap (file, cachesize); in _dl_load_cache_lookup()
432 file = (void *) -1; in _dl_load_cache_lookup()
434 cache_new = file; in _dl_load_cache_lookup()
435 cache = file; in _dl_load_cache_lookup()
437 else if (file != MAP_FAILED && cachesize > sizeof *cache in _dl_load_cache_lookup()
438 && memcmp (file, CACHEMAGIC, sizeof CACHEMAGIC - 1) == 0 in _dl_load_cache_lookup()
441 >= ((struct cache_file *) file)->nlibs)) in _dl_load_cache_lookup()
445 cache = file; in _dl_load_cache_lookup()
466 __munmap (file, cachesize); in _dl_load_cache_lookup()
472 if (file != MAP_FAILED) in _dl_load_cache_lookup()
473 __munmap (file, cachesize); in _dl_load_cache_lookup()