Sign in
plan9port
/
plan9
/
54bebe6a69875f6f020b00ed8e2c7d944d2ee93b
/
.
/
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
);
}