ncruces / go-sqlite3

Go bindings to SQLite using wazero
https://pkg.go.dev/github.com/ncruces/go-sqlite3
MIT License
402 stars 12 forks source link

Fix illumos. #83

Closed ncruces closed 4 months ago

ncruces commented 4 months ago

Turns out illumos doesn't really support F_OFD_SETLK: https://illumos.org/man/2/fcntl#file-locking

illumos OFD locks are basically equivalent to flock, as they're limited to locking the entire file. Still, their flock is compatible with F_GETLK, so it can use the BSD implementation.

Added to CI, courtesy of vmactions/omnios-vm.