This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: close-on-exec internal file descriptors
On Sat, Dec 06, 2008 at 08:58:03AM -0700, Tom Tromey wrote:
> Eli> Can we do something more safe than this arbitrary [20] limitation?
>
> I don't think there is any point, because the mode argument to fopen
> is never longer than 4 characters or so. However, if you really want
> this, I will change it to a malloc.
I find that alloca is good for these situations.
--
Daniel Jacobowitz
CodeSourcery