This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit] Fix filestuff.c build error if RLIMIT_NOFILE not defined.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 2 Dec 2013 07:16:49 +0400
- Subject: Re: [RFA/commit] Fix filestuff.c build error if RLIMIT_NOFILE not defined.
- Authentication-results: sourceware.org; auth=none
- References: <1385441763-31424-1-git-send-email-brobecker at adacore dot com> <871u213gw9 dot fsf at fleche dot redhat dot com>
> Joel> Bordering on the obvious, I decided for an RFA, just in case, because
> Joel> it relies on RLIMIT_NOFILE always being a marcro, POSIX does not seem
> Joel> to require it. It seems to be true in practice, though, for all systems
> Joel> I checked (Various flavors of GNU/Linux, including embedded ones,
> Joel> Solaris, AIX, Lynx, etc).
>
> It seems relatively ok to me.
> To really fail the system would have to lack this #define and also lack
> sysconf + _SC_OPEN_MAX. And then the failure mode is just that gdb
> works the way it always did in the past.
Makes sense. Patch now pushed.
Thanks, Tom.
--
Joel