summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-01 23:08:15 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-01 23:08:15 +0000
commit67eb154146ea90cd25a383bcdd4a028704ef2218 (patch)
tree06b528a996b0ab59b4b3f2b950069c56046a7a10 /apps/debug_menu.c
parent98dc093317b615b2aa8ffe8d140945d75764a813 (diff)
downloadrockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.zip
rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.gz
rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.bz2
rockbox-67eb154146ea90cd25a383bcdd4a028704ef2218.tar.xz
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/debug_menu.c')
-rw-r--r--apps/debug_menu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 99c00fa..1551b94 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1933,14 +1933,14 @@ static bool dbg_save_roms(void)
int fd;
int oldmode = system_memory_guard(MEMGUARD_NONE);
- fd = creat("/internal_rom_0000-FFFF.bin", O_WRONLY);
+ fd = creat("/internal_rom_0000-FFFF.bin");
if(fd >= 0)
{
write(fd, (void *)0, 0x10000);
close(fd);
}
- fd = creat("/internal_rom_2000000-203FFFF.bin", O_WRONLY);
+ fd = creat("/internal_rom_2000000-203FFFF.bin");
if(fd >= 0)
{
write(fd, (void *)0x2000000, 0x40000);
@@ -1957,11 +1957,11 @@ static bool dbg_save_roms(void)
int oldmode = system_memory_guard(MEMGUARD_NONE);
#if defined(IRIVER_H100_SERIES)
- fd = creat("/internal_rom_000000-1FFFFF.bin", O_WRONLY);
+ fd = creat("/internal_rom_000000-1FFFFF.bin");
#elif defined(IRIVER_H300_SERIES)
- fd = creat("/internal_rom_000000-3FFFFF.bin", O_WRONLY);
+ fd = creat("/internal_rom_000000-3FFFFF.bin");
#elif defined(IAUDIO_X5)
- fd = creat("/internal_rom_000000-3FFFFF.bin", O_WRONLY);
+ fd = creat("/internal_rom_000000-3FFFFF.bin");
#endif
if(fd >= 0)
{
@@ -1971,7 +1971,7 @@ static bool dbg_save_roms(void)
system_memory_guard(oldmode);
#ifdef HAVE_EEPROM
- fd = creat("/internal_eeprom.bin", O_WRONLY);
+ fd = creat("/internal_eeprom.bin");
if (fd >= 0)
{
int old_irq_level;