gcc/libgfortran/io
Janne Blomqvist 82b8244c51 re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO)
2006-02-12  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libgfortran/25949
	* io/io.h: Add set function pointer to struct stream.  
	* io/unix.c (fd_seek): Only update offset, don't seek.
	(fd_sset): New function.
	(fd_read): Call lseek directly if necessary.
	(fd_write): Likewise.
	(fd_open): Set pointer to fd_sset.
	(mem_set): New function.
	(open_internal): Set pointer to mem_set.
	* io/transfer.c (write_block_direct): Rename to write_buf, add
	error return, non-pointer length argument.
	(unformatted_write): Update to use write_buf.
	(us_write): Simplify by using swrite instead of salloc_w.
	(write_us_marker): New function.
	(new_record_w): Use sset instead of memset, use write_us_marker,
	simplify by using swrite instead of salloc_w.

From-SVN: r110895
2006-02-12 21:59:32 +02:00
..
close.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
file_pos.c re PR libfortran/25598 (gfortran - Fortran runtime error: Invalid argument) 2006-01-06 01:39:34 +00:00
format.c format.c: Removing unused code. 2005-12-04 18:13:59 +00:00
inquire.c re PR fortran/23815 (Add -byteswapio flag) 2005-12-10 20:01:56 +00:00
io.h re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO) 2006-02-12 21:59:32 +02:00
list_read.c re PR libfortran/25594 (LAPACK regression in schkbl.f) 2006-01-01 02:45:22 +00:00
lock.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
open.c re PR fortran/23815 (Add -byteswapio flag) 2006-02-06 20:12:44 +00:00
read.c re PR libfortran/25039 ([4.1 only] comma short-circuit field width) 2005-12-09 02:53:41 +00:00
size_from_kind.c random.c: Include config.h 2005-11-27 17:09:40 -05:00
transfer.c re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO) 2006-02-12 21:59:32 +02:00
unit.c re PR fortran/25264 (write to internal unit from the string itself gives wrong result ?) 2005-12-16 19:32:21 +00:00
unix.c re PR libfortran/25949 (Unbounded I/O buffer memory usage for formatted IO) 2006-02-12 21:59:32 +02:00
unix.h re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
write.c re PR libfortran/25425 ([4.1 only] F95 and F2003 differ on list-directed output for 0.0) 2006-02-08 20:54:14 +00:00