diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 21:58:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 21:58:38 +0000 |
commit | ae960a9ece0552d1982e56e26cc4c3932f51f2ab (patch) | |
tree | cba0485d0dfa7febd5f751e2636c27919eb55551 /apps/plugin.h | |
parent | 8b813d0b99bcda14d6101ea38cc8ebb498281675 (diff) | |
download | rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.tar.gz rockbox-ae960a9ece0552d1982e56e26cc4c3932f51f2ab.zip |
my take at fixing the simulator warnings by adding mode_t, size_t, ssize_t
and off_t
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 5bebcd701f..e7ec86aa53 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -135,13 +135,13 @@ struct plugin_api { | |||
135 | /* file */ | 135 | /* file */ |
136 | int (*open)(const char* pathname, int flags); | 136 | int (*open)(const char* pathname, int flags); |
137 | int (*close)(int fd); | 137 | int (*close)(int fd); |
138 | int (*read)(int fd, void* buf, int count); | 138 | ssize_t (*read)(int fd, void* buf, size_t count); |
139 | int (*lseek)(int fd, int offset, int whence); | 139 | off_t (*lseek)(int fd, off_t offset, int whence); |
140 | int (*creat)(const char *pathname, int mode); | 140 | int (*creat)(const char *pathname, mode_t mode); |
141 | int (*write)(int fd, void* buf, int count); | 141 | ssize_t (*write)(int fd, const void* buf, size_t count); |
142 | int (*remove)(const char* pathname); | 142 | int (*remove)(const char* pathname); |
143 | int (*rename)(const char* path, const char* newname); | 143 | int (*rename)(const char* path, const char* newname); |
144 | int (*ftruncate)(int fd, unsigned int size); | 144 | int (*ftruncate)(int fd, off_t length); |
145 | int (*filesize)(int fd); | 145 | int (*filesize)(int fd); |
146 | int (*fprintf)(int fd, const char *fmt, ...); | 146 | int (*fprintf)(int fd, const char *fmt, ...); |
147 | int (*read_line)(int fd, char* buffer, int buffer_size); | 147 | int (*read_line)(int fd, char* buffer, int buffer_size); |