From b9e29cd1048da426ab0ec516cc6c4885fb90e5a0 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 30 Aug 2008 18:46:43 +0000 Subject: [PATCH] Define readdir_r() on Symbian. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3058 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/uio/doc/todo | 2 ++ sc2/src/sc2code/libs/uio/uioport.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/sc2/src/sc2code/libs/uio/doc/todo b/sc2/src/sc2code/libs/uio/doc/todo index e92694b64..807bc8d99 100644 --- a/sc2/src/sc2code/libs/uio/doc/todo +++ b/sc2/src/sc2code/libs/uio/doc/todo @@ -83,6 +83,8 @@ Extra features (not necessary for UQM): (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, 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): - use mmap for fileBlocks diff --git a/sc2/src/sc2code/libs/uio/uioport.h b/sc2/src/sc2code/libs/uio/uioport.h index cfe0f3c33..e0e2f56b7 100644 --- a/sc2/src/sc2code/libs/uio/uioport.h +++ b/sc2/src/sc2code/libs/uio/uioport.h @@ -161,6 +161,13 @@ typedef unsigned short mode_t; # define S_IFCHR _S_IFCHR # define S_IFDIR _S_IFDIR #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 + int readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result); +#endif // String formatting #ifdef _MSC_VER