Statistics
| Branch: | Revision:

root / tests / cris / check_stat1.c @ 489251fa

History | View | Annotate | Download (253 Bytes)

1 dd43edf4 ths
#include <sys/types.h>
2 dd43edf4 ths
#include <sys/stat.h>
3 dd43edf4 ths
#include <unistd.h>
4 dd43edf4 ths
#include <stdio.h>
5 dd43edf4 ths
#include <stdlib.h>
6 dd43edf4 ths
7 dd43edf4 ths
int main (void)
8 dd43edf4 ths
{
9 dd43edf4 ths
  struct stat buf;
10 dd43edf4 ths
11 dd43edf4 ths
  if (stat (".", &buf) != 0
12 dd43edf4 ths
      || !S_ISDIR (buf.st_mode))
13 dd43edf4 ths
    abort ();
14 dd43edf4 ths
  printf ("pass\n");
15 dd43edf4 ths
  exit (0);
16 dd43edf4 ths
}