Update release-README after completing the 2.43 release.
[binutils-gdb.git] / sim / testsuite / cris / c / stat7.c
blobd61bd8e0c7db8af340496b2f5d048c7af54ece17
1 /*
2 #progos: linux
3 */
5 #include <sys/types.h>
6 #include <sys/stat.h>
7 #include <unistd.h>
8 #include <stdio.h>
9 #include <errno.h>
10 #include <stdlib.h>
12 int main (void)
14 struct stat buf;
16 /* From Linux, we get EFAULT. The simulator sends us EINVAL. */
17 if (lstat (NULL, &buf) != -1
18 || (errno != EINVAL && errno != EFAULT))
20 perror ("lstat 1");
21 abort ();
24 printf ("pass\n");
25 exit (0);