lseek() returning Invalid Argument
Eric Blake
ebb9@byu.net
Tue Sep 15 23:08:00 GMT 2009
gballey <galley <at> 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 <fcntl.h>
> #include <stdio.h>
Oops - no #include <unistd.h>. lseek takes 64-bit type arguments, but without
a declaration from the correct header, the compiler assumes it takes int
arguments. Try compiling with -Wall.
--
Eric Blake
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list