bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] Re: drop unlocked-io dependency in getline module?


From: Paul Eggert
Subject: [Bug-gnulib] Re: drop unlocked-io dependency in getline module?
Date: 23 Nov 2003 23:11:12 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Simon Josefsson <address@hidden> writes:

> Ideally, this should be in a separate module 'program_name' because it
> is useful outside of error.

Does the existing progname module do what you want?

> IMHO only modules that fix pre-C89 function should override C89
> functions.

This is too short-sighted.  The C standard changes, and also some GNU
programs assume behavior that is supplied by GNU implementations of
the C99 standard.  It's not unreasonable for an application to
substitute its own implementation of malloc, so long as this
implementation also conforms to the C standard.  Any code that is
intended to be portable should work with such an malloc.

> [proposal]
> I didn't think much, so there may be serious flaws.

I'm afraid that I see some flaws (the #defines will screw up standard
system headers).  They might be worked around if someone found the time...

> i don't really understand the point of unlocked-io.  Is
> it just optimization?

Yes, that's it.

> Is it worth the added complexity?

It's quite a big performance improvement in coreutils, if memory
serves.

Your other points also deserve further thought....




reply via email to

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