libgcj/1322: FileInputStream.available always returns 0

jmc@cmpharm.ucsf.edu jmc@cmpharm.ucsf.edu
Wed Dec 20 12:24:00 GMT 2000


>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:




More information about the Gcc-prs mailing list