This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] bfd: Make bfd_cache_max_open depend on actual open file limit.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]