~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to tests/cris/check_stat2.c

  • Committer: ths
  • Date: 2007-06-17 15:32:30 UTC
  • Revision ID: git-v1:ffb04fcf089865952592f1f8855c2848d4514a89
Allow relative paths for the interpreter prefix in linux-user emulation.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2984 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
#notarget: cris*-*-elf
3
 
*/
4
 
 
5
 
#include <sys/types.h>
6
 
#include <sys/stat.h>
7
 
#include <unistd.h>
8
 
#include <stdio.h>
9
 
#include <stdlib.h>
10
 
 
11
 
int main (void)
12
 
{
13
 
  struct stat buf;
14
 
 
15
 
  if (lstat (".", &buf) != 0
16
 
      || !S_ISDIR (buf.st_mode))
17
 
    abort ();
18
 
  printf ("pass\n");
19
 
  exit (0);
20
 
}