From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9643 invoked by alias); 6 Dec 2008 17:05:31 -0000 Received: (qmail 9635 invoked by uid 22791); 6 Dec 2008 17:05:31 -0000 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Dec 2008 17:04:56 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L90Zp-0002hZ-Kr; Sat, 06 Dec 2008 12:04:21 -0500 From: Eli Zaretskii To: Daniel Jacobowitz CC: gdb-patches@sourceware.org In-reply-to: <20081206165126.GA9117@caradoc.them.org> (message from Daniel Jacobowitz on Sat, 6 Dec 2008 11:51:26 -0500) Subject: Re: RFA: close-on-exec internal file descriptors Reply-to: Eli Zaretskii References: <20081206165126.GA9117@caradoc.them.org> Message-Id: Date: Sat, 06 Dec 2008 17:05:00 -0000 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00116.txt.bz2 > Date: Sat, 6 Dec 2008 11:51:26 -0500 > From: Daniel Jacobowitz > > 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. `alloca' is fine with me.