diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-02-01 23:08:15 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-01 23:08:15 +0000 |
commit | 67eb154146ea90cd25a383bcdd4a028704ef2218 (patch) | |
tree | 06b528a996b0ab59b4b3f2b950069c56046a7a10 /apps/plugin.h | |
parent | 98dc093317b615b2aa8ffe8d140945d75764a813 (diff) |
Removed 'mode' parameter from creat(). It wasn't pure posix anyway, it was ignored on target and mixed into 'oflags' in the simulator. * Simplified io.c a bit by defining a dummy O_BINARY for OSes which don't have that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12179 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 70b5ebf354..ad09a71049 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -110,12 +110,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 41 +#define PLUGIN_API_VERSION 42 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 41 +#define PLUGIN_MIN_API_VERSION 42 /* plugin return codes */ enum plugin_status { @@ -300,7 +300,7 @@ struct plugin_api { int (*close)(int fd); ssize_t (*read)(int fd, void* buf, size_t count); off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); - int (*PREFIX(creat))(const char *pathname, mode_t mode); + int (*PREFIX(creat))(const char *pathname); ssize_t (*write)(int fd, const void* buf, size_t count); int (*PREFIX(remove))(const char* pathname); int (*PREFIX(rename))(const char* path, const char* newname); |