glibc i zwisy poldka
Jakub Bogusz
qboosh at pld-linux.org
Fri Apr 8 16:56:15 CEST 2005
On Fri, Apr 08, 2005 at 03:12:19PM +0200, Arkadiusz Miskiewicz wrote:
> int zfseek(void *stream, _IO_off64_t *offset, int whence)
> {
> int rc;
> off_t off = *offset;
>
> rc = gzseek(stream, off, whence);
> if (rc >= 0)
> rc = 0;
wg komentarza do zmian w fmemopen powinno być raczej:
if (rc >= 0) {
*offset = rc;
rc = 0;
}
(w kodzie poldka)
>
> printf("zfseek (%p, %ld, %lld, %d) = %d\n", stream, off, *offset, whence, rc);
> return rc;
> }
Mógłby ktoś sprawdzić?
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
More information about the pld-devel-pl
mailing list