Sign in
plan9port
/
plan9
/
3aca22118d808597bc7451adc559d89460ed5a6e
/
.
/
src
/
cmd
/
upas
/
fs
/
readdir.c
blob: 42028d4c1565a454ab4355dfe98a2274b4e13e0f [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
void
main
(
void
)
{
Dir
d
;
int
fd
,
n
;
fd
=
open
(
"/mail/fs"
,
OREAD
);
while
((
n
=
dirread
(
fd
,
&
d
,
sizeof
(
d
)))
>
0
){
print
(
"%s\n"
,
d
.
name
);
}
print
(
"n = %d\n"
,
n
);
}