[ECOS] What happened to feof & ftell?
Martin van Veen
martin_van_veen@yahoo.com
Wed Jan 31 22:57:00 GMT 2001
Hi guys,
like ftell and feof there is more stuff missing (which I wrote some
weeks ago, but nobody responded). Fortunately, these functions are
implemented, but only not mentioned in the stdio.h file. I patched
stdio.h so that fileno and fdopen can be used. Patch is attached...
Greetings,
Martin.
--- Jonathan Larmour <jlarmour@redhat.com> wrote:
> Peter Graf wrote:
>>
>> does anybody know what happened to the stdio functions feof & ftell?
>> I can't find something like libc/stdio/current/src/common/feof.cxx.
>> stdio.h has the declarations, but the implementations seem to be
>> missing.
>
> Yes this sucks. They used to be implemented, but got obsoleted at one
> point. I've been meaning to redo them, but have never had the time -
> I haven't forgotten. Of course, all patches welcome :-).
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
--- packages/language/c/libc/stdio/current/include/stdio.h Wed Nov 22 13:43:28 2000
+++ packages/language/c/libc/stdio/current/include/stdio.h.patched Thu Feb 1 07:46:13 2001
@@ -125,6 +125,12 @@
freopen( const char * /* filename */, const char * /* mode */,
FILE * /* stream */ );
+externC FILE *
+fdopen( int /* descriptor */, const char * /* mode */ );
+
+externC int
+fileno( FILE * /* stream */ );
+
externC void
setbuf( FILE * /* stream */, char * /* buffer */ );
More information about the Ecos-discuss
mailing list