summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-28 18:32:57 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-28 18:32:57 +0000
commit399c081f939943f8a9b3f967fed6fd333a23ce22 (patch)
treec547873bda201c42a72bf12d91eb0f2962734d37 /apps
parent00dd42a7135e4cadf49158e97ded8f9357941044 (diff)
downloadrockbox-399c081f939943f8a9b3f967fed6fd333a23ce22.tar.gz
rockbox-399c081f939943f8a9b3f967fed6fd333a23ce22.zip
Simulators: lseek() working again for systems with an off_t datatype differing from 'long' (cygwin/x11, maybe others). Removed unused sim_close().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6084 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index f8f8fb18d4..6b429c3175 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -135,7 +135,7 @@ static const struct plugin_api rockbox_api = {
135 (open_func)PREFIX(open), 135 (open_func)PREFIX(open),
136 close, 136 close,
137 (read_func)read, 137 (read_func)read,
138 lseek, 138 PREFIX(lseek),
139 (creat_func)PREFIX(creat), 139 (creat_func)PREFIX(creat),
140 (write_func)write, 140 (write_func)write,
141 PREFIX(remove), 141 PREFIX(remove),
diff --git a/apps/plugin.h b/apps/plugin.h
index ed34d9ac19..76f31c3f83 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -177,7 +177,7 @@ struct plugin_api {
177 int (*PREFIX(open))(const char* pathname, int flags); 177 int (*PREFIX(open))(const char* pathname, int flags);
178 int (*close)(int fd); 178 int (*close)(int fd);
179 ssize_t (*read)(int fd, void* buf, size_t count); 179 ssize_t (*read)(int fd, void* buf, size_t count);
180 off_t (*lseek)(int fd, off_t offset, int whence); 180 off_t (*PREFIX(lseek))(int fd, off_t offset, int whence);
181 int (*PREFIX(creat))(const char *pathname, mode_t mode); 181 int (*PREFIX(creat))(const char *pathname, mode_t mode);
182 ssize_t (*write)(int fd, const void* buf, size_t count); 182 ssize_t (*write)(int fd, const void* buf, size_t count);
183 int (*PREFIX(remove))(const char* pathname); 183 int (*PREFIX(remove))(const char* pathname);