gint/src/fs
Lephe 3aa1471ac5
fs: track offset of Fugue files manually
This helped locate some bugs:
* read() could read past EOF due to BFile_Read() allowing you to read up
  until the end of the last sector, beyond the file size
* pread() did not restore the file offset because the negative seek at
  the end is not relative (that was the CASIOWIN fs API), so pread()
  could not actually be written without knowing the current position
* lseek() would clamp you to EOF but still return its out-of-bounds
  arguments, as a direct result of BFile_Seek() doing that

Benefits:
* Made pread() a generic function
2022-01-06 14:05:52 +01:00
..
fugue fs: track offset of Fugue files manually 2022-01-06 14:05:52 +01:00
close.c fs: cast BFile support into generic file descriptors 2021-12-13 18:38:47 +01:00
closedir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
creat.c fs: basic filesystem support over BFile 2021-12-11 16:38:28 +01:00
fdopendir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
fs.c fs: track offset of Fugue files manually 2022-01-06 14:05:52 +01:00
lseek.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
mkdir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
open.c fs: cast BFile support into generic file descriptors 2021-12-13 18:38:47 +01:00
opendir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
pread.c fs: track offset of Fugue files manually 2022-01-06 14:05:52 +01:00
pwrite.c fs: track offset of Fugue files manually 2022-01-06 14:05:52 +01:00
read.c fs: cast BFile support into generic file descriptors 2021-12-13 18:38:47 +01:00
readdir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
rewinddir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
rmdir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
seekdir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
stat.c fs: stat(), proper unlink(), rmdir() 2021-12-30 18:17:13 +01:00
telldir.c fs: folder support, part 1 (mkdir/rmdir and the opendir(3) family) 2021-12-21 19:01:00 +01:00
unlink.c fs: cast BFile support into generic file descriptors 2021-12-13 18:38:47 +01:00
write.c fs: cast BFile support into generic file descriptors 2021-12-13 18:38:47 +01:00