bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] Re: getline bug?


From: Simon Josefsson
Subject: [Bug-gnulib] Re: getline bug?
Date: Sun, 03 Oct 2004 13:04:00 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:


>> Finally a question: do the gnulib getline differ in any other way from
>> the glibc version?  It seems gnulib's getline call a getndelim2 which
>> seem to be slightly different from getdelim, which is what glibc uses.
>> If the interface is different, that seems bad as well.
>
> Why would getline's users care how it's implemented?

I meant if the externally visible behavior was different.  But after
reading the source some more, I can see that they are probably
equivalent.

>> Here's a proposed solution: Apply the following patch.  Then
>> applications (coreutils?) that want the optimized getline version can
>> put AC_DEFINE(USE_UNLOCKED_IO, 1) in their configure.ac.
>
> This sort of thing should be done systematically, if it is done
> at all.  I'd like Jim Meyering's opinion on it first, since he
> contributed the unlocked-io stuff.

Thanks,
Simon





reply via email to

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