[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mingw lseek bug
From: |
Eric Blake |
Subject: |
mingw lseek bug |
Date: |
Wed, 23 May 2007 23:17:56 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I just noticed that lseek on mingw returns 0 instead of -1 on pipes.
Which means that gnulib's fflush module thinks the pipe is seekable, and
loses data in the pipe instead of behaving as a no-op as it should in
trying to reposition the pipe's location. Until someone (perhaps me)
writes an lseek module, I can't use the gnulib fflush module in m4.
However, I'm not sure on mingw how to detect whether an fd is open on a
regular file vs. a pipe. Any ideas?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGVSAE84KuGfSFAYARAqSQAJ0fdg/tlmVeIQhxYHEAmj/BUxJVagCgppIG
UTYHW+ixqXWCCyGBKYoR5Vw=
=c08x
-----END PGP SIGNATURE-----
- mingw lseek bug,
Eric Blake <=