From 9619ff36e9f600968b6089a6b0b084767c131a02 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 10 Feb 1999 17:05:55 +0000 Subject: 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. --- c/src/exec/libcsupport/src/open.c | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/exec') 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 ); -- cgit v1.2.3