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 /apps/plugin.h | |
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 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index c3e5a5b714..2580d43eb0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -296,10 +296,10 @@ struct plugin_api { | |||
296 | /* file */ | 296 | /* file */ |
297 | int (*PREFIX(open))(const char* pathname, int flags); | 297 | int (*PREFIX(open))(const char* pathname, int flags); |
298 | int (*close)(int fd); | 298 | int (*close)(int fd); |
299 | ssize_t (*read)(int fd, void* buf, size_t count); | 299 | ssize_t (*PREFIX(read))(int fd, void* buf, size_t count); |
300 | off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); | 300 | off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); |
301 | int (*PREFIX(creat))(const char *pathname); | 301 | int (*PREFIX(creat))(const char *pathname); |
302 | ssize_t (*write)(int fd, const void* buf, size_t count); | 302 | ssize_t (*PREFIX(write))(int fd, const void* buf, size_t count); |
303 | int (*PREFIX(remove))(const char* pathname); | 303 | int (*PREFIX(remove))(const char* pathname); |
304 | int (*PREFIX(rename))(const char* path, const char* newname); | 304 | int (*PREFIX(rename))(const char* path, const char* newname); |
305 | int (*PREFIX(ftruncate))(int fd, off_t length); | 305 | int (*PREFIX(ftruncate))(int fd, off_t length); |