diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-09-08 12:20:53 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-09-08 12:20:53 +0000 |
commit | f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b (patch) | |
tree | 065072709c699ac6dc3eb640368bd3f4106144e4 /firmware/include | |
parent | 69b4654ea28049c7e8637d521327ba10ae405f8b (diff) | |
download | rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.tar.gz rockbox-f64ebb1c1f10e8d15fcc4879d781703c86c5fb8b.zip |
Sim I/O and threading that runs more like on target. Tweakable if any genuine slowness imitation is required for any one of them. One point of concern is the sim shutdown on an OS other than Linux just because terminating threads in a manner other than having the do it themselves is kind of dirty IMHO.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14639 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h index 989f50a283..9a94e91263 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -55,6 +55,8 @@ | |||
55 | #define fsync(x) sim_fsync(x) | 55 | #define fsync(x) sim_fsync(x) |
56 | #define ftruncate(x,y) sim_ftruncate(x,y) | 56 | #define ftruncate(x,y) sim_ftruncate(x,y) |
57 | #define lseek(x,y,z) sim_lseek(x,y,z) | 57 | #define lseek(x,y,z) sim_lseek(x,y,z) |
58 | #define read(x,y,z) sim_read(x,y,z) | ||
59 | #define write(x,y,z) sim_write(x,y,z) | ||
58 | #endif | 60 | #endif |
59 | 61 | ||
60 | typedef int (*open_func)(const char* pathname, int flags); | 62 | typedef int (*open_func)(const char* pathname, int flags); |