symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_stat2.c
author Gareth Stockwell <gareth.stockwell@accenture.com>
Thu, 09 Sep 2010 12:06:21 +0100
changeset 108 78b83e1454a6
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Allow NVM device to be built with MinGW

/*
#notarget: cris*-*-elf
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
  struct stat buf;

  if (lstat (".", &buf) != 0
      || !S_ISDIR (buf.st_mode))
    abort ();
  printf ("pass\n");
  exit (0);
}