Tuesday, 26 November 2019

Re: [gccsdk] FILE structure

Hi Ronald,

> In trying to implement wget's own support lib there was a requirement
> for an implementation of freading().

Here's glibc's description. https://manned.org/__freading.3

> It looks like some extra system flag would need to be set on every
> read, and negated on a write.

That may be needed anyway as a side effect of tracking a buffer's state,
e.g.
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdio/refill.c;h=87a715b848b0009624f3fc76d938ef49a35bc282;hb=HEAD#l33

--
Cheers, Ralph.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment