Keep track of the number of opened files in the sim to enforce the same limit as on target.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15045 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nicolas Pennequin 2007-10-09 15:15:00 +00:00
parent f22e323e63
commit ef9abe4385
3 changed files with 32 additions and 6 deletions

View file

@ -57,6 +57,7 @@
#define lseek(x,y,z) sim_lseek(x,y,z)
#define read(x,y,z) sim_read(x,y,z)
#define write(x,y,z) sim_write(x,y,z)
#define close(x) sim_close(x)
#endif
typedef int (*open_func)(const char* pathname, int flags);