[RFA/commit] Fix filestuff.c build error if RLIMIT_NOFILE not defined.

Tom Tromey tromey@redhat.com
Wed Nov 27 17:23:00 GMT 2013


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

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.

Tom



More information about the Gdb-patches mailing list