public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Martin van Veen <martin_van_veen@yahoo.com>
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	[thread overview]
Message-ID: <20010201065751.63430.qmail@web11101.mail.yahoo.com> (raw)
In-Reply-To: <3A784967.6066B98B@redhat.com>

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 */ );
 

  reply	other threads:[~2001-01-31 22:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-26 20:25 [ECOS] 68302 (or 680x0) port ? Lee Nipper
2001-01-29  4:36 ` AW: " Joerg Rapka
2001-01-31  6:44   ` [ECOS] What happened to feof & ftell? Peter Graf
2001-01-31  9:21     ` Jonathan Larmour
2001-01-31 22:57       ` Martin van Veen [this message]
2001-01-31 23:17         ` Jonathan Larmour
2001-02-01  0:48         ` Peter Graf
2001-07-25 17:58   ` [ECOS] 68302 (or 680x0) port ? wangwei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010201065751.63430.qmail@web11101.mail.yahoo.com \
    --to=martin_van_veen@yahoo.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jlarmour@redhat.com \
    --cc=p.graf@itknet.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).