This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stat() returning EFAULT?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]