(svn r8647) -Codechange: add a general way to handle platforms who can only have a limited amount of file-descripters open at any given time.

The Fios keeps track how many times a file is opened, and tries to close up files which aren't used often.
  The first platform using this is PSP. Patch based on the work of Turulo.
This commit is contained in:
truelight
2007-02-08 23:46:25 +00:00
parent 424001168d
commit 7cd68b5a07
2 changed files with 70 additions and 3 deletions

View File

@@ -77,6 +77,13 @@
# define BSWAP16(x) ((x) >> 8 | (x) << 8)
#endif /* __APPLE__ */
#if defined(PSP)
/* PSP can only have 10 file-descriptors open at any given time, but this
* switch only limits reads via the Fio system. So keep 2 fds free for things
* like saving a game. */
#define LIMITED_FDS 8
#endif /* PSP */
/* by default we use [] var arrays */
#define VARARRAY_SIZE