summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-05-06 17:35:04 +0000
committerThomas Martitz <kugel@rockbox.org>2010-05-06 17:35:04 +0000
commitc61e89c0eda126c2c1a4a3983520c35fe30db156 (patch)
tree1285f8cbde5485f93f8653f31ea0454587dd741e /apps/plugin.c
parent684c70bac5f27e8dec49e113563cf6e496da854d (diff)
downloadrockbox-c61e89c0eda126c2c1a4a3983520c35fe30db156.tar.gz
rockbox-c61e89c0eda126c2c1a4a3983520c35fe30db156.zip
Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 2f54c0d314..28d443321f 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -97,7 +97,7 @@ char *plugin_get_current_filename(void);
97/* Some wrappers used to monitor open and close and detect leaks*/ 97/* Some wrappers used to monitor open and close and detect leaks*/
98static int open_wrapper(const char* pathname, int flags); 98static int open_wrapper(const char* pathname, int flags);
99static int close_wrapper(int fd); 99static int close_wrapper(int fd);
100static int creat_wrapper(const char *pathname); 100static int creat_wrapper(const char *pathname, mode_t mode);
101#endif 101#endif
102 102
103static const struct plugin_api rockbox_api = { 103static const struct plugin_api rockbox_api = {
@@ -1002,9 +1002,9 @@ static int close_wrapper(int fd)
1002 return PREFIX(close)(fd); 1002 return PREFIX(close)(fd);
1003} 1003}
1004 1004
1005static int creat_wrapper(const char *pathname) 1005static int creat_wrapper(const char *pathname, mode_t mode)
1006{ 1006{
1007 int fd = PREFIX(creat)(pathname); 1007 int fd = PREFIX(creat)(pathname, mode);
1008 1008
1009 if(fd >= 0) 1009 if(fd >= 0)
1010 open_files |= (1<<fd); 1010 open_files |= (1<<fd);