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);
}