From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KUKxF-0000hv-U3 for mharc-grub-devel@gnu.org; Sat, 16 Aug 2008 08:32:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUKxE-0000hj-3x for grub-devel@gnu.org; Sat, 16 Aug 2008 08:32:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUKxB-0000hX-RF for grub-devel@gnu.org; Sat, 16 Aug 2008 08:32:22 -0400 Received: from [199.232.76.173] (port=41841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUKxB-0000hU-Kf for grub-devel@gnu.org; Sat, 16 Aug 2008 08:32:21 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:48060 helo=jenni2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUKxB-0004sC-5Q for grub-devel@gnu.org; Sat, 16 Aug 2008 08:32:21 -0400 Received: from [127.0.0.1] (88.193.32.97) by jenni2.inet.fi (8.5.014) id 489066C500B097B4 for grub-devel@gnu.org; Sat, 16 Aug 2008 15:32:19 +0300 Message-ID: <48A6C8DC.3050303@nic.fi> Date: Sat, 16 Aug 2008 15:32:28 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: The development of GRUB 2 References: <1218888325.4051.17.camel@fz.local> In-Reply-To: <1218888325.4051.17.camel@fz.local> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [RFC] Is it okay to just use GNU extensions or should an alternative be provided too? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 12:32:24 -0000 Felix Zielcke wrote: > I just talked with Marco on IRC. > > I have just used asprintf in one of my patches, but now I discovered: > http://grub.enbug.org/BuildingOnNonGnu > > So I became a bit unsure now if it's okay to just use asprintf. > > Is it okay to just use and don't care about enviroments which don't > use/have glibc? > > Or should such GNU extentions just not be used if they can be avoided? > > I doubt it would be good to use many `#ifdef _GNU_SOURCE' in the code. Please use what ever we have on grub source code already. Then it work fine also in standalone grub. It should be possible to use existing functions. I see asprintf just a wrapper to malloc/sprintf for which there are already versions present on grub.