Define readdir_r() on Symbian.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3058 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -83,6 +83,8 @@ Extra features (not necessary for UQM):
|
|||||||
(the system rename() doesn't work cross-fs either, so keeping uio_rename()
|
(the system rename() doesn't work cross-fs either, so keeping uio_rename()
|
||||||
as it is makes sense, as I'm trying to stay close to the system functions,
|
as it is makes sense, as I'm trying to stay close to the system functions,
|
||||||
even though hiding file systems from the user would be nicer)
|
even though hiding file systems from the user would be nicer)
|
||||||
|
- Add a readdir_r(). Right now, for Symbian readdir_r() is defined in
|
||||||
|
uioport.h, but the actual implementation is out of the uio tree.
|
||||||
|
|
||||||
Optimisations (not necessary for UQM):
|
Optimisations (not necessary for UQM):
|
||||||
- use mmap for fileBlocks
|
- use mmap for fileBlocks
|
||||||
|
|||||||
@@ -161,6 +161,13 @@ typedef unsigned short mode_t;
|
|||||||
# define S_IFCHR _S_IFCHR
|
# define S_IFCHR _S_IFCHR
|
||||||
# define S_IFDIR _S_IFDIR
|
# define S_IFDIR _S_IFDIR
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __SYMBIAN32__
|
||||||
|
// TODO: Symbian doesn't have readdir_r(). If uio is to be usable
|
||||||
|
// outside of uqm (which defines its own backup readdir_r()), an
|
||||||
|
// implementation of that function needs to be added to uio.
|
||||||
|
# include <dirent.h>
|
||||||
|
int readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result);
|
||||||
|
#endif
|
||||||
|
|
||||||
// String formatting
|
// String formatting
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|||||||
Reference in New Issue
Block a user