Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

SQLite 3.46.1 compiled for DOS (Announce)

posted by bencollver Homepage, 19.10.2024, 17:41

> > 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. :-P

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:

Back to the forum
Board view  Mix view
22033 Postings in 2032 Threads, 396 registered users, 19 users online (0 registered, 19 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum