summaryrefslogtreecommitdiff
path: root/uisimulator/win32/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/io.c')
-rw-r--r--uisimulator/win32/io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/uisimulator/win32/io.c b/uisimulator/win32/io.c
index 974fdadbbd..ac85bb193e 100644
--- a/uisimulator/win32/io.c
+++ b/uisimulator/win32/io.c
@@ -36,3 +36,12 @@ int win32_rename(char *oldpath, char* newpath)
36 } 36 }
37 return -1; 37 return -1;
38} 38}
39
40int win32_filesize(int fd)
41{
42 int old = lseek(fd, 0, SEEK_CUR);
43 int size = lseek(fd, 0, SEEK_END);
44 lseek(fd, old, SEEK_SET);
45
46 return(size);
47}