snow flurry
3d1830ca66
gitignore: Add misc/
...
Being used for testing PC98 images which don't work well with git.
2020-11-17 13:44:26 -08:00
snow flurry
82157919e9
Add Makefile
...
This only works with BSD make. Not sure if I'm going to keep it
like that or convert it to a GNU Makefile.
2020-11-17 13:31:23 -08:00
snow flurry
02b23c4187
Add .gitignore
2020-11-17 13:30:46 -08:00
snow flurry
6ab4de1ddb
dosfs: use calloc instead of malloc
...
calloc zeroes out the memory it allocates, which helps avoid
segfaults related to linked list traversal.
2020-11-17 12:58:11 -08:00
snow flurry
7f7b05cf05
dosfs: parsing fixes
...
* don't include spaces in fext
* read fat12 chains properly
2020-11-17 12:55:16 -08:00
snow flurry
c078497b40
TODO: update TODO
...
Continuing to use pread/pwrite since we'll probably be dealing a
lot with random fragmented files. The rest that were removed have
been dealt with.
2020-11-16 22:58:07 -08:00
snow flurry
cfc1f19ec6
config: deal with whitespace at line start
2020-11-16 22:56:40 -08:00
snow flurry
be27cccf45
config: fix some glaring errors...
...
... like not properly initializing the config struct. Sigh.
2020-11-16 20:56:25 -08:00
snow flurry
6e9a68711d
config: "line ends early" is now a fatal error
2020-11-16 20:31:42 -08:00
snow flurry
50f3806f15
dosfs: get_byte_offset requires an unsigned offset
...
No reason for it to be negative, and gcc -Wextra complains when
it's signed.
2020-11-16 20:30:41 -08:00
snow flurry
c8494b86bd
config: multiple parser fixes
...
Still need to confirm it actually parses, but we're getting there?
2020-11-16 19:46:51 -08:00
snow flurry
e7b8a47e49
debug: remove some parentheses
2020-11-16 19:42:27 -08:00
snow flurry
c35c6f0389
config: it compiles???
...
broken though
2020-11-16 19:25:07 -08:00
snow flurry
dccbb40798
config: add (non-working) implementation
...
I believe there's a lot that's missing here, and honestly I don't
like how messy it feels. I can already see a couple edge cases
where things might break or work weirdly, but for now we can probably
gloss over them...
2020-11-16 17:32:03 -08:00
snow flurry
546ed596d4
TODO: use fopen(3), using read_fat_chain is done
2020-11-14 15:06:27 -08:00
snow flurry
9d18bc84d0
dosfs: Remove dos_fread(), add get_byte_offset()
...
A read() analogue wouldn't be particularly useful here since we're
just poking at bytes, but having a way to get the "real" offset in
a file sure would be!
2020-11-14 14:11:34 -08:00
snow flurry
9bce32e727
TODO: add TODO
2020-11-13 22:13:31 -08:00
snow flurry
cd49319674
config: forgot some struct fields
2020-11-13 22:09:38 -08:00
snow flurry
a6d33cae7c
Initial commit
2020-11-13 21:43:35 -08:00