blob: 491bc66c866c2ab163d1d8995f0f68820c48872a [file] [log] [blame]
#include <sys/stat.h>
#include <u.h>
#include <libc.h>
#include <draw.h>
vlong
_drawflength(int fd)
{
struct stat s;
if(fstat(fd, &s) < 0)
return -1;
return s.st_size;
}