-----BEGIN PGP SIGNED MESSAGE-----
Wednesday, October 03, 2001, 5:33:51 PM, you wrote:
> If whence is SEEK_END, the offset is set to the size of
> the file
> plus offset bytes.
> So I think it actually should read
> lseek(0, 0L, SEEK_SET);
I think I missed the most important point: lseek(0, 0L, SEEK_SET);
won't do anything but fail cause seeking on pipes simply doesn't
work:
ERRORS
Lseek() will fail and the file position pointer will remain
unchanged if:
[EBADF] Fildes is not an open file descriptor.
[ESPIPE] Fildes is associated with a pipe, socket, or
FIFO.
[EINVAL] Whence is not a proper value.
Best regards,
Gabriel
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQEVAwUBO7sjvsZa2WpymlDxAQFrpQf/VSokBZh9CGmBhIg3V9fhlbSEOSPFu0hQ
RIqyYtxI/pbgi9u+S0uSlC82thQIxClV3oUJnvD9Fbkqe3PBwdI6uLvn3z9PrqGP
5rENTjLTUgwpRwRKOSlFsJp4B40ikQefl0D2A8Wt1J82g372hmpWL3Egl1nCChyO
7cnNNYlyMD1fT7+Z2a4imjbSvX1k9Pl/aE531cqdZkx6z/CwIwDNlGBEBkxDhGKH
14CFZvZfl0NlcVZg484gT+AXY7ZJG2Xfwk4xej8J4t56T6rT7od2T16Ugd/os15e
6e90S6WfnWF6+gHyVI/y/cBs9gFEjkRCVKQguNQb7+p7Js0rHs214Q==
=eH1t
-----END PGP SIGNATURE-----