1
0
Fork 0
forked from len0rd/rockbox

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

@ -50,15 +50,7 @@
#endif
/* filesize */
#include <sys/stat.h>
off_t filesize(int fd);
/*
static inline off_t filesize(int fd) {
struct stat st;
fstat(fd, &st);
return st.st_size;
}
*/
/* snprintf */
#include <stdio.h>

View file

@ -2,4 +2,4 @@ warble.c
../../../firmware/common/strlcpy.c
../../../firmware/common/unicode.c
../../../firmware/common/structec.c
../../../uisimulator/common/io.c
../../../firmware/common/pathfuncs.c

4
lib/rbcodec/test/file.h Normal file
View file

@ -0,0 +1,4 @@
#undef MAX_PATH
#define MAX_PATH 260
#include <unistd.h>
#include <fcntl.h>

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;