diff options
author | Andy Wingo <wingo@pobox.com> | 2016-04-22 21:32:05 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-04-23 15:21:43 +0200 |
commit | 99899b7c9c360cc382ba3fbb05bae5265313b9ac (patch) | |
tree | b2876dc9b4a18a646879b818c96d9259e57da3ed /libguile/filesys.c | |
parent | 69a1b83f31824cc23c7c4d60144de2225517c76f (diff) | |
download | guile-99899b7c9c360cc382ba3fbb05bae5265313b9ac.tar.gz |
Remove scm_flush_unlocked / scm_end_input_unlocked
* libguile/ports.h (scm_flush_unlocked, scm_end_input_unlocked):
Remove.
* libguile/ports.c (scm_c_read_bytes_unlocked):
(scm_i_unget_bytes_unlocked, scm_setvbuf, scm_force_output)
(scm_fill_input_unlocked, scm_c_write_bytes_unlocked)
(scm_c_write_unlocked, scm_lfwrite_unlocked, scm_seek)
(scm_truncate_file, flush_output_port): Call scm_flush / scm_end_input
instead of the _unlocked variants.
(scm_end_input): Lock while discarding the input buffer but not while
calling out to the seek function.
* libguile/filesys.c (scm_fsync):
* libguile/ioext.c (scm_redirect_port):
* libguile/read.c (scm_i_scan_for_encoding):
* libguile/rw.c (scm_write_string_partial): Use scm_flush, not
scm_flush_unlocked.
Diffstat (limited to 'libguile/filesys.c')
-rw-r--r-- | libguile/filesys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c index 5e0a2321c..167d4448a 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -980,7 +980,7 @@ SCM_DEFINE (scm_fsync, "fsync", 1, 0, 0, if (SCM_OPFPORTP (object)) { - scm_flush_unlocked (object); + scm_flush (object); fdes = SCM_FPORT_FDES (object); } else |