repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add fesetexcept: sparc.
[glibc.git]
/
io
/
bug-ftw5.c
blob
c1cd81d30eec39e30d62c5dd5ad52fa06766e68e
1
#include <errno.h>
2
#include <ftw.h>
3
#include <stdio.h>
4
5
static int
6
fn
(
const char
*
file
,
const struct
stat
*
sb
,
int
flag
,
struct
FTW
*
s
)
7
{
8
puts
(
file
);
9
return
FTW_STOP
;
10
}
11
12
static int
13
do_test
(
void
)
14
{
15
if
(
nftw
(
"/"
,
fn
,
0
,
FTW_CHDIR
|
FTW_ACTIONRETVAL
) <
0
)
16
{
17
printf
(
"nftw / FTW_CHDIR: %m
\n
"
);
18
return
1
;
19
}
20
21
return
0
;
22
}
23
24
#define TEST_FUNCTION do_test ()
25
#include
"../test-skeleton.c"