summaryrefslogtreecommitdiffstats
path: root/uisimulator/x11/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/io.c')
-rw-r--r--uisimulator/x11/io.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c
index 72a7319ec6..faccc826a7 100644
--- a/uisimulator/x11/io.c
+++ b/uisimulator/x11/io.c
@@ -146,6 +146,18 @@ int x11_mkdir(const char *name, mode_t mode)
return (mkdir)(name, 0666);
}
+int x11_rmdir(const char *name)
+{
+ char buffer[256]; /* sufficiently big */
+ if(name[0] == '/') {
+ sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name);
+
+ debugf("We remove the real directory '%s'\n", buffer);
+ return (rmdir)(buffer);
+ }
+ return (rmdir)(name);
+}
+
int x11_remove(char *name)
{
char buffer[256]; /* sufficiently big */