This commit is contained in:
Russ Cox
2005-08-08 12:50:13 +00:00
parent 0189e66e88
commit 934846f35c
382 changed files with 62614 additions and 0 deletions

19
libc/dirwstat.c Normal file
View File

@ -0,0 +1,19 @@
#include <u.h>
#include <libc.h>
#include <fcall.h>
int
dirwstat(char *name, Dir *d)
{
uchar *buf;
int r;
r = sizeD2M(d);
buf = malloc(r);
if(buf == nil)
return -1;
convD2M(d, buf, r);
r = wstat(name, buf, r);
free(buf);
return r;
}