Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVuQH-0002OV-Um for mharc-grub-devel@gnu.org; Sat, 07 Feb 2009 16:09:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVuQF-0002Nt-VL for grub-devel@gnu.org; Sat, 07 Feb 2009 16:09:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVuQD-0002Mr-DS for grub-devel@gnu.org; Sat, 07 Feb 2009 16:09:07 -0500 Received: from [199.232.76.173] (port=52888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVuQD-0002Ml-7f for grub-devel@gnu.org; Sat, 07 Feb 2009 16:09:05 -0500 Received: from aybabtu.com ([69.60.117.155]:37528) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVuQC-00088f-Ps for grub-devel@gnu.org; Sat, 07 Feb 2009 16:09:04 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1LVuL0-00062D-4b for grub-devel@gnu.org; Sat, 07 Feb 2009 22:03:42 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1LVuPg-0001Zb-UJ for grub-devel@gnu.org; Sat, 07 Feb 2009 22:08:32 +0100 Date: Sat, 7 Feb 2009 22:08:32 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090207210832.GM988@thorin> References: <20090113230338.GA15990@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090113230338.GA15990@pina.cat> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: fseeko 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: Sat, 07 Feb 2009 21:09:08 -0000 On Wed, Jan 14, 2009 at 12:03:38AM +0100, Carles Pina i Estany wrote: > > 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? It doesn't seem to be included in kernel. If it's not dragged in to core.img for a typical setup (filesystem + partition + kernel), there are no size concerns with having it. > Someone used to program io/bufio.c or something else wants to take a > look? Sorry, I'm not familiar with that part of the code, and it looks like nobody else picked it up. If you still need fseeko (btw please don't name it fseek), would you be willing to implement it? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."