From 000232b9bcbf194f1e5fd0ff380000f341505405 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 4 Mar 2014 07:45:58 +0530 Subject: Separate ftell from fseek logic and avoid modifying FILE data (#16532) ftell semantics are distinct from fseek(SEEK_CUR) especially when it is called on a file handler that is not yet active. Due to this caveat, much care needs to be taken while modifying the handler data and hence, this first iteration on separating out ftell focusses on maintaining handler data integrity at all times while it figures out the current stream offset. The result is that it makes a syscall for every offset request. There is scope for optimizing this by caching offsets when we know that the handler is active. A simple way to find out is when the buffers have data. It is not so simple to find this out when the buffer is empty without adding some kind of flag. --- NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9fdd9ac..0c5b39a 100644 --- a/NEWS +++ b/NEWS @@ -9,8 +9,8 @@ Version 2.20 * The following bugs are resolved with this release: - 15347, 15804, 15894, 16447, 16545, 16574, 16600, 16609, 16610, 16611, - 16613, 16623, 16632. + 15347, 15804, 15894, 16447, 16532, 16545, 16574, 16600, 16609, 16610, + 16611, 16613, 16623, 16632. * The am33 port, which had not worked for several years, has been removed from ports. -- cgit v1.1