This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] bfd: Make bfd_cache_max_open depend on actual open file limit.
- From: Alan Modra <amodra at gmail dot com>
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: binutils at sourceware dot org, tromey at redhat dot com
- Date: Mon, 27 May 2013 10:44:26 +0930
- Subject: Re: [PATCH] bfd: Make bfd_cache_max_open depend on actual open file limit.
- References: <1369577911-15240-1-git-send-email-mjw at redhat dot com>
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