Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LMsIX-0004U7-En for mharc-grub-devel@gnu.org; Tue, 13 Jan 2009 18:03:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMsIV-0004Tc-EE for grub-devel@gnu.org; Tue, 13 Jan 2009 18:03:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMsIR-0004S6-NC for grub-devel@gnu.org; Tue, 13 Jan 2009 18:03:45 -0500 Received: from [199.232.76.173] (port=40574 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMsIR-0004S2-7B for grub-devel@gnu.org; Tue, 13 Jan 2009 18:03:43 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:40816 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMsIQ-0006wX-H3 for grub-devel@gnu.org; Tue, 13 Jan 2009 18:03:43 -0500 Received: from pinux (107.60.221.87.dynamic.jazztel.es [87.221.60.107]) by mail.pina.cat (Postfix) with ESMTP id 1E3BD288FBA13 for ; Wed, 14 Jan 2009 00:03:40 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id DF5EF27A5; Wed, 14 Jan 2009 00:03:38 +0100 (CET) Date: Wed, 14 Jan 2009 00:03:38 +0100 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20090113230338.GA15990@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: fseek in Grub2 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: Tue, 13 Jan 2009 23:03:48 -0000 Hello, (Grub2 internal functions questions, related with gettext) I would like to use io/bufio.c to read the .mo file, so I would use grub_bufio_open to open, and grub_bufio_read to read. I'm missing grub_bufio_fseek. I think that I could play with file->offset, but this would maybe break something else (that's my guess, I have had no time to look on it). Why fseek has not been implemented? I mean, because we have not need it or because some complication? Someone used to program io/bufio.c or something else wants to take a look? Thanks a lot, PS: I like Grub2 modules, so easy to create a module and start and some new commands! -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info