forked from Imagelibrary/rtems
Set the read/write offset to 0 when the file is opened. The ACVC had a test
that performed the sequence open/write/close/open/read/close on a file. It did not get the correct result since the file descriptor was reused.
This commit is contained in:
@@ -143,6 +143,7 @@ int open(
|
||||
* returned by successful path evaluation.
|
||||
*/
|
||||
|
||||
iop->offset = 0;
|
||||
iop->handlers = temp_loc.handlers;
|
||||
iop->file_info = temp_loc.node_access;
|
||||
iop->flags |= rtems_libio_fcntl_flags( flags );
|
||||
|
||||
@@ -143,6 +143,7 @@ int open(
|
||||
* returned by successful path evaluation.
|
||||
*/
|
||||
|
||||
iop->offset = 0;
|
||||
iop->handlers = temp_loc.handlers;
|
||||
iop->file_info = temp_loc.node_access;
|
||||
iop->flags |= rtems_libio_fcntl_flags( flags );
|
||||
|
||||
@@ -143,6 +143,7 @@ int open(
|
||||
* returned by successful path evaluation.
|
||||
*/
|
||||
|
||||
iop->offset = 0;
|
||||
iop->handlers = temp_loc.handlers;
|
||||
iop->file_info = temp_loc.node_access;
|
||||
iop->flags |= rtems_libio_fcntl_flags( flags );
|
||||
|
||||
Reference in New Issue
Block a user