OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [stat1.c] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.