Re: lseek() returning Invalid Argument

2009-09-15 Thread gballey
Eric Blake wrote: gballey ace-co.com> writes: Anyone got an idea of what is going on here? Yep. Oh, you wanted to know what your bug is? Thanks. /* begin test.c */ #include #include Oops - no #include . lseek takes 64-bit type arguments, but without a declaration from the correct

Re: lseek() returning Invalid Argument

2009-09-15 Thread Eric Blake
gballey ace-co.com> writes: > Anyone got an idea of what is going on here? Yep. Oh, you wanted to know what your bug is? > > Thanks. > > /* begin test.c */ > > #include > #include Oops - no #include . lseek takes 64-bit type arguments, but without a declaration from the correct header

lseek() returning Invalid Argument

2009-09-15 Thread gballey
I'm getting an Invalid argument error from lseek(), but I can eliminate the error by preceding the lseek() statement with a particular printf() statement. Configuration: cygwin1.dll v1005.25.0.0 gcc v3.4.4 Windows XP SP3 Below is a short test program that illustrates the problem. As presented