repo.or.cz
/
qemu
/
sh4.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sh4/r2d: update pci, usb and kernel management
[qemu/sh4.git]
/
tests
/
cris
/
check_stat1.c
blob
2e2cae51df0395837419556689edecc0757e48ea
1
#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
}