repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove exec-all.h inclusion from cpu.h
[qemu.git]
/
tests
/
cris
/
check_stat2.c
blob
e36172ed257303c12b1d892aa452c6140c55f1d6
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
}