Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: DirHandle.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/DirHandle.h Tue Jan 08 12:46:36 2013 +0000 +++ b/DirHandle.h Wed Jan 16 12:56:34 2013 +0000 @@ -22,12 +22,14 @@ #ifndef MBED_DIRHANDLE_H #define MBED_DIRHANDLE_H -#ifdef __ARMCC_VERSION -# define NAME_MAX 255 +#if defined(__ARMCC_VERSION) || defined(__ICCARM__) +# define NAME_MAX 255 typedef int mode_t; + #else -# include <sys/syslimits.h> +# include <sys/syslimits.h> #endif + #include "FileHandle.h" struct dirent { @@ -41,7 +43,7 @@ * at least closedir, readdir and rewinddir. * * If a FileSystemLike class defines the opendir method, then the - * directories of an object of that type can be accessed by + * directories of an object of that type can be accessed by * DIR *d = opendir("/example/directory") (or opendir("/example") * to open the root of the filesystem), and then using readdir(d) etc. * @@ -59,7 +61,7 @@ * -1 on error. */ virtual int closedir()=0; - + /** Return the directory entry at the current position, and * advances the position to the next entry. * @@ -87,7 +89,7 @@ * @param location The location to seek to. Must be a value returned by telldir. */ virtual void seekdir(off_t location) { } - + virtual ~DirHandle() {} };