From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NnvL5-0002in-TT for mharc-grub-devel@gnu.org; Sat, 06 Mar 2010 09:50:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnvL3-0002hw-Ld for grub-devel@gnu.org; Sat, 06 Mar 2010 09:50:45 -0500 Received: from [140.186.70.92] (port=60107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnvL2-0002h6-P5 for grub-devel@gnu.org; Sat, 06 Mar 2010 09:50:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnvL1-0004oM-Kn for grub-devel@gnu.org; Sat, 06 Mar 2010 09:50:44 -0500 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:57496) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnvL1-0004nV-FK for grub-devel@gnu.org; Sat, 06 Mar 2010 09:50:43 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1NnvKz-0002Na-LE for grub-devel@gnu.org; Sat, 06 Mar 2010 14:50:41 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1NnvKz-0005Op-00; Sat, 06 Mar 2010 14:50:41 +0000 Date: Sat, 6 Mar 2010 14:50:41 +0000 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100306145040.GV4409@riva.ucam.org> References: <4B925B4A.000017.00240@RASTGOO> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B925B4A.000017.00240@RASTGOO> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Fopen in password.c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2010 14:50:46 -0000 On Sat, Mar 06, 2010 at 05:10:26PM +0330, Eli wrote: > I want to open file in password.c by fopen command, > I add stdio.h to this file, But grub does not build and this error become > apparent: > commands/password.c does not run in a POSIX environment, and stdio is not available to it. You'll need to use GRUB's own file-handling interfaces instead, such as grub_file_open. -- Colin Watson [cjwatson@ubuntu.com]