summaryrefslogtreecommitdiff
path: root/libguile/filesys.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-04-04 11:28:28 +0200
committerAndy Wingo <wingo@pobox.com>2016-04-04 16:30:57 +0200
commitb77fb752dd7e14876741ecb6360ef0319eae18e0 (patch)
treec8c54b604d9f77f2634b0307bbf52dbccc9af39a /libguile/filesys.c
parentb7e49a75a9f0c4f992c212e9f61de164dbaa66ec (diff)
downloadguile-b77fb752dd7e14876741ecb6360ef0319eae18e0.tar.gz
Flush buffered reads / writes before seeking
* libguile/ports.c (scm_seek): Flush before seeking on a buffered port. * libguile/fports.c (fport_seek): * libguile/strports.c (st_seek): Remove code to flush buffers. * test-suite/tests/ports.test: Update test expectations that the putback buffer is flushed on a seek. Previously there was a special case for SEEK_CUR with an offset of 0 to avoid flushing buffers, but that's an arbitrary choice that differs from all other combinations of OFFSET and WHENCE.
Diffstat (limited to 'libguile/filesys.c')
0 files changed, 0 insertions, 0 deletions