From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin van Veen To: jlarmour@redhat.com, p.graf@itknet.de Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] What happened to feof & ftell? Date: Wed, 31 Jan 2001 22:57:00 -0000 Message-id: <20010201065751.63430.qmail@web11101.mail.yahoo.com> References: <3A784967.6066B98B@redhat.com> X-SW-Source: 2001-01/msg00524.html 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 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 */ );