From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [RFC] Is it okay to just use GNU extensions or should an alternative be provided too?
Date: Sat, 16 Aug 2008 14:58:19 +0200 [thread overview]
Message-ID: <20080816125819.GI6334@thorin> (raw)
In-Reply-To: <1218890593.5316.6.camel@fz.local>
On Sat, Aug 16, 2008 at 02:43:13PM +0200, Felix Zielcke wrote:
> Am Samstag, den 16.08.2008, 15:32 +0300 schrieb Vesa Jääskeläinen:
> >
> > Please use what ever we have on grub source code already. Then it work
> > fine also in standalone grub.
>
> Maybe this time my mail was a bit too short? :)
> especially, I ask for asprintf in util/misc.c so just GRUB_UTIL.
>
> But Marco and I thought it would be good to make a general discussion
> about GNU extentions.
> GCC is needed anyway because of the nested function but what about glibc
> or other stuff?
For code that is to be shared with real GRUB, we should only use GRUB's own
functions, so there's no concern there.
For util/ code, IMO we should be careful not to break other systems. GCC is
widely available, so it's not such a big concern, but not so for Glibc.
In general, I think we should avoid the complication of implementing two
versions of our code (one with GNU-isms and one without) by only implementing
the portable one.
As for asprintf, I think unless/untill someone reports that it is missing on
a system where GRUB is usable (i.e. where we have loaders for their kernel),
we shouldn't worry about it.
> But yeah maybe there's even in the kernel a use for asprintf,
> so maybe a good idea to make a grub_asprintf?
Probably not (because of space reasons), unless we find it terribly needed.
But it's also possible to have it in real GRUB without having it in kernel.
--
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."
next prev parent reply other threads:[~2008-08-16 12:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-16 12:05 [RFC] Is it okay to just use GNU extensions or should an alternative be provided too? Felix Zielcke
2008-08-16 12:32 ` Vesa Jääskeläinen
2008-08-16 12:39 ` Robert Millan
2008-08-16 12:43 ` Felix Zielcke
2008-08-16 12:54 ` Vesa Jääskeläinen
2008-08-16 12:58 ` Robert Millan [this message]
2008-08-16 12:39 ` Robert Millan
2008-08-16 12:48 ` Felix Zielcke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080816125819.GI6334@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.