bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib portability issues


From: Paul Eggert
Subject: Re: gnulib portability issues
Date: Sun, 10 Jun 2012 19:02:32 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 06/10/2012 06:10 AM, Rich Felker wrote:
> As such, the first fix I would recommend is simply removing the check
> for freadahead(stdin)>0 from closein.c

But that will hurt performance on GNU/Linux and most other
POSIXish hosts, as it will cause them to issue lseek
system calls and whatnot that they don't need.

Instead, wouldn't it be better to change gnulib/lib/stdio-impl.h
so that it groks the musl FILE object?  Naturally, this would
inspect musl's "internals", but that'd be no different from
all those other libraries that stdio-impl.h supports.



reply via email to

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