symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_stat1.c
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 #include <sys/types.h>
       
     2 #include <sys/stat.h>
       
     3 #include <unistd.h>
       
     4 #include <stdio.h>
       
     5 #include <stdlib.h>
       
     6 
       
     7 int main (void)
       
     8 {
       
     9   struct stat buf;
       
    10 
       
    11   if (stat (".", &buf) != 0
       
    12       || !S_ISDIR (buf.st_mode))
       
    13     abort ();
       
    14   printf ("pass\n");
       
    15   exit (0);
       
    16 }