diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-02-07 18:30:50 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-23 20:23:52 +0100 |
commit | f6c26d33a4e15d966597bc9d66c1f33328a750af (patch) | |
tree | 5e0e4d0189c856010a78ce0b79cdc3c3cb5c1354 /firmware/include/file.h | |
parent | 46137ebd4d59d7a91d0b8d98d846a3fd2ec70f5c (diff) | |
download | rockbox-f6c26d33a4e15d966597bc9d66c1f33328a750af.tar.gz rockbox-f6c26d33a4e15d966597bc9d66c1f33328a750af.zip |
samsungypr0: Support or mounting the microsd
A thread polls the appropriate GPIO pin for sd card presence and mounts
using the mount system call.
Change-Id: I31ab41c4120f4af64eb6998b7e7b6f9051585efb
Diffstat (limited to 'firmware/include/file.h')
-rw-r--r-- | firmware/include/file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h index 9b7f123999..77930864c7 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -43,6 +43,7 @@ | |||
43 | # define creat(x,m) app_creat(x, m) | 43 | # define creat(x,m) app_creat(x, m) |
44 | # define remove(x) app_remove(x) | 44 | # define remove(x) app_remove(x) |
45 | # define rename(x,y) app_rename(x,y) | 45 | # define rename(x,y) app_rename(x,y) |
46 | # define readlink(x,y,z) app_readlink(x,y,z) | ||
46 | # if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) | 47 | # if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) |
47 | /* SDL overrides a few more */ | 48 | /* SDL overrides a few more */ |
48 | # define read(x,y,z) sim_read(x,y,z) | 49 | # define read(x,y,z) sim_read(x,y,z) |
@@ -59,6 +60,7 @@ | |||
59 | # define read(x,y,z) sim_read(x,y,z) | 60 | # define read(x,y,z) sim_read(x,y,z) |
60 | # define write(x,y,z) sim_write(x,y,z) | 61 | # define write(x,y,z) sim_write(x,y,z) |
61 | # define close(x) sim_close(x) | 62 | # define close(x) sim_close(x) |
63 | /* readlink() not used in the sim yet */ | ||
62 | extern int sim_open(const char *name, int o, ...); | 64 | extern int sim_open(const char *name, int o, ...); |
63 | extern int sim_creat(const char *name, mode_t mode); | 65 | extern int sim_creat(const char *name, mode_t mode); |
64 | #endif | 66 | #endif |