grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fseeko in Grub2


From: Robert Millan
Subject: Re: fseeko in Grub2
Date: Sat, 7 Feb 2009 22:08:32 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]