]> git.pond.sub.org Git - empserver/commit
(fillcache): Rewrite. Old version failed to check success of lseek(),
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 Oct 2005 19:02:39 +0000 (19:02 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 Oct 2005 19:02:39 +0000 (19:02 +0000)
commitab03d83ce107996385276e7ece79087305e844dd
tree2a68c550c8fa3dc527018b02f959d7b3c5039e37
parent3ea02e2519e2a5304a3af30a04f57c9cec8de0c7
(fillcache): Rewrite.  Old version failed to check success of lseek(),
couldn't cope with interrupted or short reads (mostly harmless, as
disk reads commonly complete), and left an empty cache after a failed
read.
(ef_open): Use fillcache() instead of read().
(ef_read): Fail if fillcache() fails to read at least one element.
Old version copied garbage to its caller and claimed success.
src/lib/common/file.c