SQLite 3.46.1 compiled for DOS (Announce)
> > Here's SQLite 3.46.1 compiled for DOS using DJGPP.
>
> Do you mind if I include your update in a later DOjS version?
I don't mind at all! Your 3.34.1 build gave me a head start.
In my perspective, the ugliest hack in my patch is related to the file name canonicalization. Except on win32, SQLite "expects" file names to begin with the '/' character. The newer versions have low level code to manually canonicalize the file name. It translates c:/db.dat to /c:/db.dat and this doesn't work for DJGPP. I worked around this by adding a memmove() at the end to shift the result 1 character left, eliminating the leading '/', but only if the third character is ':'. Crude, but it works on my machine.
I would rather have used DJGPP's _truename() but i didn't want to meddle that much with SQLite's code.
The DOS build currently disables file locking. If i was feeling ambitious, i would try to modify SQLite to support file locking on DOS. I know that this is possible with SHARE.EXE on FAT16 and SMB filesystems. In practice, i don't do networking on DOS so i don't need multi-user SQLite (high effort, low reward).
Complete thread:
- SQLite 3.46.1 compiled for DOS - bencollver, 09.10.2024, 00:58 (Announce)
- SQLite 3.46.1 compiled for DOS - SuperIlu, 19.10.2024, 09:32
- SQLite 3.46.1 compiled for DOS - bencollver, 19.10.2024, 17:41
- SQLite 3.46.1 compiled for DOS - SuperIlu, 20.10.2024, 12:56
- SQLite 3.46.1 compiled for DOS - bencollver, 19.10.2024, 17:41
- SQLite 3.46.1 compiled for DOS - SuperIlu, 19.10.2024, 09:32