]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/9sys/dirwstat.c
libtags, zuke: add *.mod support (thanks kemal)
[plan9front.git] / sys / src / libc / 9sys / dirwstat.c
1 #include <u.h>
2 #include <libc.h>
3 #include <fcall.h>
4
5 int
6 dirwstat(char *name, Dir *d)
7 {
8         uchar *buf;
9         int r;
10
11         r = sizeD2M(d);
12         buf = malloc(r);
13         if(buf == nil)
14                 return -1;
15         convD2M(d, buf, r);
16         r = wstat(name, buf, r);
17         free(buf);
18         return r;
19 }