Upgrade gcc4mbed project used by Smoothie.
[clinton/Smoothieware.git] / gcc4mbed / external / mbed / FileSystemLike.h
index 579fce0..a18af3b 100644 (file)
@@ -1,6 +1,5 @@
 /* mbed Microcontroller Library - FileSystemLike\r
  * Copyright (c) 2008-2009 ARM Limited. All rights reserved.\r
- * sford\r
  */ \r
  \r
 #ifndef MBED_FILESYSTEMLIKE_H\r
@@ -39,7 +38,7 @@ class FileSystemLike : public Base {
      * Variables\r
      *  name - The name to use for the filesystem.\r
      */\r
-    FileSystemLike(const char *pName) : Base(pName) {}\r
+    FileSystemLike(const char *name) : Base(name) {}\r
 \r
     /* Function open\r
      *\r
@@ -59,7 +58,7 @@ class FileSystemLike : public Base {
      *  filename - the name of the file to remove.\r
      *  returns - 0 on success, -1 on failure.\r
      */\r
-    virtual int remove(const char *filename) { (void)filename; return -1; };\r
+    virtual int remove(const char *filename) { return -1; };\r
 \r
     /* Function rename\r
      *  Rename a file in the filesystem.\r
@@ -69,7 +68,7 @@ class FileSystemLike : public Base {
      *  newname - the name to rename it to.\r
      *  returns - 0 on success, -1 on failure.\r
      */\r
-    virtual int rename(const char *oldname, const char *newname) { (void)oldname; (void)newname; return -1; };\r
+    virtual int rename(const char *oldname, const char *newname) { return -1; };\r
 \r
     /* Function opendir\r
      *  Opens a directory in the filesystem and returns a DirHandle\r
@@ -80,7 +79,7 @@ class FileSystemLike : public Base {
      *  returns - A DirHandle representing the directory stream, or\r
      *   NULL on failure.\r
      */\r
-    virtual DirHandle *opendir(const char *pName) { (void)pName; return NULL; };\r
+    virtual DirHandle *opendir(const char *name) { return NULL; };\r
 \r
     /* Function mkdir\r
      *  Creates a directory in the filesystem.\r
@@ -90,7 +89,7 @@ class FileSystemLike : public Base {
      *  mode - The permissions to create the directory with.\r
      *  returns - 0 on success, -1 on failure.\r
      */\r
-    virtual int mkdir(const char *pName, int mode) { (void)pName; (void)mode; return -1; }\r
+    virtual int mkdir(const char *name, mode_t mode) { return -1; }\r
 \r
     // TODO other filesystem functions (mkdir, rm, rn, ls etc)\r
     \r