Con estas nuevas funciones, File() y MemoRead() ya funcionan correctamente en el simulador
Ya las he subido al repositorio
Code: Select all
#import <UIKit/UIKit.h>
#include <dirent.h>
#include <fnmatch.h>
#include <sys/stat.h>
DIR * opendir$INODE64$UNIX2003( char * dirName )
{
NSLog( @"opendir" );
return opendir( dirName );
}
struct dirent * readdir$INODE64( DIR * dir )
{
NSLog( @"readdir" );
return readdir( dir );
}
BOOL closedir$UNIX2003( DIR * dir )
{
NSLog( @"closedir" );
return closedir( dir );
}
int fnmatch$UNIX2003( const char * pattern, const char * string, int flags )
{
NSLog( @"fnmatch" );
return fnmatch( pattern, string, flags );
}
int write$UNIX2003( const void * buffer, size_t size, size_t count, FILE * stream )
{
NSLog( @"write" );
return fwrite( buffer, size, count, stream );
}
FILE * fopen$UNIX2003( const char * fname, const char * mode )
{
NSLog( @"fopen" );
return fopen( fname, mode );
}
FILE * open$UNIX2003( const char * fname, const char * mode )
{
NSLog( @"open" );
return open( fname, mode );
}
int read$UNIX2003( FILE * fd, char * buffer, unsigned int n )
{
NSLog( @"read" );
return read( fd, buffer, n );
}
int close$UNIX2003( FILE * fd )
{
NSLog( @"close" );
return close( fd );
}
int stat$INODE64( const char * pcc, struct stat * pss )
{
NSLog( @"stat" );
return stat( pcc, pss );
}