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.