mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 22:22:33 -05:00
Get the last errors I hope!
Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341
This commit is contained in:
parent
f3d60aea34
commit
da4938d6ee
6 changed files with 48 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue