summaryrefslogtreecommitdiffstats
path: root/c/src/exec
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-10 17:05:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-10 17:05:55 +0000
commit9619ff36e9f600968b6089a6b0b084767c131a02 (patch)
treedc5f6d16bc4f56a58308bbdcc03b8af132699f2f /c/src/exec
parentCorrected multiple places the file size was not being properly updated. (diff)
downloadrtems-9619ff36e9f600968b6089a6b0b084767c131a02.tar.bz2
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.
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/libcsupport/src/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/open.c b/c/src/exec/libcsupport/src/open.c
index 32fd4076e6..7efa18e829 100644
--- a/c/src/exec/libcsupport/src/open.c
+++ b/c/src/exec/libcsupport/src/open.c
@@ -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 );