summaryrefslogtreecommitdiff
path: root/uisimulator/x11/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/io.c')
-rw-r--r--uisimulator/x11/io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c
index bc9c99fa10..c33a42d636 100644
--- a/uisimulator/x11/io.c
+++ b/uisimulator/x11/io.c
@@ -156,6 +156,15 @@ int x11_rename(char *oldpath, char* newpath)
156 return -1; 156 return -1;
157} 157}
158 158
159int x11_filesize(int fd)
160{
161 int old = lseek(fd, 0, SEEK_CUR);
162 int size = lseek(fd, 0, SEEK_END);
163 lseek(fd, old, SEEK_SET);
164
165 return(size);
166}
167
159void fat_size(unsigned int* size, unsigned int* free) 168void fat_size(unsigned int* size, unsigned int* free)
160{ 169{
161 struct statfs fs; 170 struct statfs fs;