]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/4885 (BACKSPACE example that doesn't work as of gcc/g77-3.0.x)
authorToon Moene <toon@moene.indiv.nluug.nl>
Sun, 2 Dec 2001 14:00:56 +0000 (15:00 +0100)
committerToon Moene <toon@gcc.gnu.org>
Sun, 2 Dec 2001 14:00:56 +0000 (14:00 +0000)
2001-01-02  Toon Moene  <toon@moene.indiv.nluug.nl>

PR fortran/4885
* endfile.c (t_runc): After ftruncate. seek to end-of-file.

From-SVN: r47529

libf2c/ChangeLog
libf2c/libI77/endfile.c

index c6c1f0a3e36babd3e419af199eae1d061c5e3d52..4c1e4b5921b7a60913856ab86ba9d9cefd61382d 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-02  Toon Moene  <toon@moene.indiv.nluug.nl>
+
+       PR fortran/4885
+       * endfile.c (t_runc): After ftruncate. seek to end-of-file.
+
 2001-11-25  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * libF77/Makefile.in: Fix non-portable use of `$<' in z_log.c's rule.
index 14b51f043c4a92800e2fc2dae4d2cfa825715320..4c5a9dd21d63fc4e4546fb256925ace098e04ada 100644 (file)
@@ -132,6 +132,7 @@ done:
 #else  /* !defined(HAVE_FTRUNCATE) */
        fflush(b->ufd);
        rc = ftruncate(fileno(b->ufd), loc);
+        FSEEK(bf,loc,SEEK_SET);
 #endif /* !defined(HAVE_FTRUNCATE) */
        if (rc)
                err(a->aerr,111,"endfile");