#include <u.h>
#include <libc.h>
#include "../syscall/syscall.h"
int
dirfstat(int fd, Dir *d)
{
Stat s;
if(linuxnewfstat(fd, &s) < 0)
return -1;
/* XXX fill in rest */
memset(d, 0, sizeof(*d));
d->atime = s.atime;
d->mtime = s.mtime;
d->length = s.size;
return 0;
}
|