repo.or.cz
/
Rockbox-MoB.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
implement bufread() and better testing. checking md5sum of the outputted
[Rockbox-MoB.git]
/
aux.c
blob
fe400ef3e2f4baf0bd8a4429a756d468641690fb
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <sys/types.h>
4
#include <sys/stat.h>
5
#include <unistd.h>
6
7
#include
"aux.h"
8
9
off_t
filesize
(
int
fd
)
10
{
11
struct
stat status
;
12
fstat
(
fd
, &
status
);
13
return
status
.
st_size
;
14
}