stat() returning EFAULT?
Samuel Thibault
samuel.thibault@ens-lyon.org
Tue Feb 24 16:03:00 GMT 2009
Sjors Gielen, le Tue 24 Feb 2009 16:54:28 +0100, a écrit :
> Here's the test case and output:
>
> #include <errno.h>
> int main() {
> if(stat("test") != 0) perror("Calling stat() on test");
> if(stat("test.exe") != 0) perror("Calling stat() on test.exe");
> return 0;
> }
Compile with -Wall, you're missing the second argument of stat().
Samuel
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list