cygwin fork()

Fri Sep 1 22:31:00 GMT 2006

Brian Dessent wrote:
> "Gary R. Van Sickle" wrote:
>>> AFAIK, Cygwin's lseek should handle seeking on text streams.
>>> DJ implemented that years ago.
>> Last I looked, which was admittedly also years ago, it was "#if 0"'ed out,
>> with a comment to the effect of "Nobody has any business seeking around in
>> text files."
> FWIW, mingw's lseek() (which is actually Microsoft's, since mingw
> targets MSVCRT.DLL) is horribly broken when seeking on a file opened in
> text mode.  But it's documented as such on MSDN, so at least there's
> that.  So there is some precedence for the concept that "this won't work
> on windows platforms."
> But Cygwin's should work fine, and if it means saving a bazillion 1-byte
> syscalls then I think bash should be patched to remove this sillyness

I'll *emphatically* second the 'doing something about it'; I'm also 
cursed by really slow builds. (Assuming I understand what is going on, 
anyway :-))

Do not expose to hippos. Doing so may void your warranty.

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list