C-kermit fails

Paul Eggert eggert@cs.ucla.edu
Fri Jul 24 18:47:19 GMT 2020


On 7/24/20 10:36 AM, Zack Weinberg wrote:
> The symbol that was removed (_IO_file_flags) was never a documented
> part of the stdio interface.

True, though lots of programs want to know about stdio readahead and it's 
unfortunate that glibc and other C libraries don't provide a documented way to 
get it.

We have a Gnulib module for discovering stdio readahead. As seen here:

https://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/freadahead.c#n36

Gnulib uses the guard "#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || 
__GNU_LIBRARY__ == 1" to be as portable as possible to various glibc-like 
libraries, so I suggest the attached minimal patch to C-Kermit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c-kermit.patch
Type: text/x-patch
Size: 621 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200724/af275b71/attachment-0001.bin>


More information about the Libc-alpha mailing list