Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/libc/9sys/dirfwstat.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <fcall.h>
4
 
5
int
6
dirfwstat(int fd, 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 = fwstat(fd, buf, r);
17
	free(buf);
18
	return r;
19
}