I'm using fread() and fseek() stream IO functions in a multi-threaded application. Unfortunately, the data returned by fread() is not correct. From the bytes it returns, I can tell that the internal buffers of the various FILE* objects (one per thread) are interfering with each other...