Get the last errors I hope!

Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341
This commit is contained in:
Michael Sevakis 2014-08-30 01:08:34 -04:00
parent f3d60aea34
commit da4938d6ee
6 changed files with 48 additions and 9 deletions

View file

@ -77,6 +77,13 @@ int find_first_set_bit(uint32_t value)
return __builtin_ctz(value);
}
off_t filesize(int fd)
{
struct stat st;
fstat(fd, &st);
return st.st_size;
}
/***************** INTERNAL *****************/
static enum { MODE_PLAY, MODE_WRITE } mode;