URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [stat7.c] - Rev 227
Go to most recent revision | Compare with Previous | Blame | View Log
/* #notarget: cris*-*-elf */ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> int main (void) { struct stat buf; /* From Linux, we get EFAULT. The simulator sends us EINVAL. */ if (lstat (NULL, &buf) != -1 || (errno != EINVAL && errno != EFAULT)) { perror ("lstat 1"); abort (); } printf ("pass\n"); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log