]> mj.ucw.cz Git - libucw.git/commit
Fastbufs now work better on unseekable files.
authorMartin Mares <mj@ucw.cz>
Sat, 10 Mar 2007 19:15:06 +0000 (20:15 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 10 Mar 2007 19:15:06 +0000 (20:15 +0100)
commitd894fe2e0d3bc2d3d9d3a2b84d372fb2ea2b5ca0
treea1a82483d48fd6c681d5f146ff151c6a17cc860b
parent0b49b79a9debe807b2db229bac32a273e2e961b3
Fastbufs now work better on unseekable files.

The seek callback returns success, bseek() and bsetpos() dies if seek
fails, bfilesize() returns -1 if the file is unseekable.
lib/fastbuf.c
lib/fastbuf.h
lib/fb-buffer.c
lib/fb-file.c
lib/fb-grow.c
lib/fb-mem.c
lib/fb-mmap.c