From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5982 invoked by alias); 6 Dec 2008 16:52:09 -0000 Received: (qmail 5971 invoked by uid 22791); 6 Dec 2008 16:52:08 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Dec 2008 16:51:29 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C274E10CFB for ; Sat, 6 Dec 2008 16:51:26 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id B0FE810A56 for ; Sat, 6 Dec 2008 16:51:26 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1L90NK-0002Qp-9F for gdb-patches@sourceware.org; Sat, 06 Dec 2008 11:51:26 -0500 Date: Sat, 06 Dec 2008 16:52:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: RFA: close-on-exec internal file descriptors Message-ID: <20081206165126.GA9117@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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/msg00114.txt.bz2 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