public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/1322: FileInputStream.available always returns 0
@ 2000-12-20 12:24 jmc
0 siblings, 0 replies; only message in thread
From: jmc @ 2000-12-20 12:24 UTC (permalink / raw)
To: java-bugs
>Number: 1322
>Category: libgcj
>Synopsis: FileInputStream.available always returns 0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:03 PST 2000
>Closed-Date: Fri Nov 12 16:38:20 PST 1999
>Last-Modified: Fri Nov 12 16:40:01 PST 1999
>Originator: John-Marc Chandonia
>Release: pre 2.95
>Organization:
>Environment:
Irix 6.5
>Description:
FileInputStream.available always returns 0
This happens because the FIONREAD ioctl does not
work for regular files
>How-To-Repeat:
>Fix:
One fix would be to use lseek on regular files
to compute available().
On some systems, like Linux, FIONREAD does work on
regular files; using it when possible would be more efficient.
select() could also be used
>Release-Note:
>Audit-Trail:
Formerly PR libgcj/3
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Fri Sep 3 00:47:17 1999
State-Changed-Why:
I've checked in a fix for this. The fix compiles,
but I have not tried it on a system where the
original code failed. Can you try it on your system?
Either way, please respond so I can decide what to do
with the PR. Thanks.
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Fri Nov 12 16:38:20 1999
State-Changed-Why:
This has been in feedback for months.
I assume it is fixed.
From: tromey@cygnus.com
To: java-gnats@sourceware.cygnus.com, jmc@cmpharm.ucsf.edu, tromey@cygnus.com
Cc:
Subject: Re: libgcj/3
Date: 13 Nov 1999 00:38:20 -0000
Synopsis: FileInputStream.available always returns 0
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Fri Nov 12 16:38:20 1999
State-Changed-Why:
This has been in feedback for months.
I assume it is fixed.
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=3
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:24 libgcj/1322: FileInputStream.available always returns 0 jmc
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).