diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-08 15:27:21 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-08 15:27:21 +0000 |
commit | 412917e1b6196fb5c50869f8963d9bc1105b094d (patch) | |
tree | e607ceb635450accbac940366a0c379604e96983 | |
parent | 1c3217909b444b86f87f976925f05ac05555cc6d (diff) | |
download | rockbox-412917e1b6196fb5c50869f8963d9bc1105b094d.tar.gz rockbox-412917e1b6196fb5c50869f8963d9bc1105b094d.zip |
Added comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@519 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/file.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index a5d9443aeb..9d18c613bf 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -24,6 +24,15 @@ | |||
24 | #include "dir.h" | 24 | #include "dir.h" |
25 | #include "debug.h" | 25 | #include "debug.h" |
26 | 26 | ||
27 | /* | ||
28 | These functions provide a roughly POSIX-compatible file IO API. | ||
29 | |||
30 | Since the fat32 driver only manages sectors, we maintain a one-sector | ||
31 | cache for each open file. This way we can provide byte access without | ||
32 | having to re-read the sector each time. | ||
33 | The penalty is the RAM used for the cache and slightly more complex code. | ||
34 | */ | ||
35 | |||
27 | #define MAX_OPEN_FILES 4 | 36 | #define MAX_OPEN_FILES 4 |
28 | 37 | ||
29 | struct filedesc { | 38 | struct filedesc { |