[PATCH] bfd: Make bfd_cache_max_open depend on actual open file limit.
Alan Modra
amodra@gmail.com
Mon May 27 01:14:00 GMT 2013
On Sun, May 26, 2013 at 04:18:31PM +0200, Mark Wielaard wrote:
> * cache.c (BFD_CACHE_MAX_OPEN): Remove define.
> (max_open_files): New static int initialized to zero.
> (bfd_cache_max_open): New static function to set and return
> max_open_files.
> (bfd_cache_init): Use bfd_cache_max_open.
> (bfd_open_file): Likewise.
> * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
> (AC_CHECK_FUNCS): Add getrlimit.
> * configure: Regenerated.
> * sysdep.h: Check and include sys/resource.h for getrlimit.
Looks good.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list