public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/9934: Bugs in natFileDescriptorPosix.cc:available()
@ 2003-03-04  5:36 arenn
  0 siblings, 0 replies; only message in thread
From: arenn @ 2003-03-04  5:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9934
>Category:       libgcj
>Synopsis:       Bugs in natFileDescriptorPosix.cc:available()
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 05:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Aaron M. Renn
>Release:        CVS as of 2003-03-03
>Organization:
>Environment:
Linux Red Hat 8.0
>Description:
In java::io::FileDescriptor::available, call to lseek in HAVE_FSTAT block reverses parms.  Should be lseek(fd, 0, SEEK_CUR) not lseek(fd, SEEK_CUR, 0)

Also, the last return value appears to be a fall through value that may or may not be what is intended.  If fall through to zero is ok when various other methods fail, why not return zero when there is no implementation rather than throwing exception?
>How-To-Repeat:
N/A
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-04  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04  5:36 libgcj/9934: Bugs in natFileDescriptorPosix.cc:available() arenn

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).