1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-26 05:00:28 +02:00

1999-07-24 Gary Houston <ghouston@easynet.co.uk>

* gdbint.c (gdb_print, gdb_read): call scm_truncate_file.

	* ports.c (scm_truncate_file): renamed from scm_ftruncate.
	allow the 1st argument to be a fdes or filename as well as a
	port (as in the filesys.c version).

	* filesys.c (scm_truncate_file): removed.
This commit is contained in:
Gary Houston 1999-07-24 19:52:13 +00:00
parent eb9ef08b77
commit 69bc9ff335
7 changed files with 59 additions and 64 deletions

6
NEWS
View file

@ -989,9 +989,9 @@ work on any kind of port, not just ports which are open on a file.
** now 'l' in a port mode requests line buffering.
** new procedure: ftruncate PORT [LENGTH]
Truncates PORT after LENGTH bytes, or at the current position if
LENGTH is omitted. Works on random-access file and string ports.
** The procedure truncate-file now works on string ports as well
as file ports. If the size argument is omitted, the current
file position is now used.
** new procedure: lseek PORT/FDES OFFSET WHENCE
The arguments are the same as for the old fseek procedure, but it