[Bug 1695] bytes_transfered = rtems_rfs_rtems_error

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Sep 2 23:14:29 UTC 2010


Chris Johns <chrisj at rtems.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED

--- Comment #12 from Chris Johns <chrisj at rtems.org> 2010-09-02 18:14:28 CDT ---
(In reply to comment #11)
> > 
> > typedef signed int _ssize_t;
> oops, well then I don't really see any badness here. Except the misspelling.

The badness is bytes_transfeRRed is declared size_t and this a bug, not
something done on purpose.

I also see msdos_dir.c has the size declared as uint32_t so I wonder if it
should also be ssize_t. The IMFS is 'int' which is ok but I may change to
ssize_t as well.

While looking at this area of code in the file system I see IMFS, dosfs and rfs
all have:

 iop->offset = iop->offset + sizeof(struct dirent);

or something like this where iop->offset is updated. The read code also updates
this value with the size transferred. I am now wondering if this is correct and
why it works.

Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the bugs mailing list