diff options
Diffstat (limited to 'lib/rbcodec/test/warble.c')
-rw-r--r-- | lib/rbcodec/test/warble.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index 6c8442ae26..8f11b9b56e 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c @@ -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; |