> On Jul 4, 2019, at 6:57 AM, Peng Yu <pengyu...@gmail.com> wrote:
> 
> So the fundamental C API that unix_os.c is based on is the only
> following but nothing else?
> 
> - fcntl: http://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
> - flock: https://www.freebsd.org/cgi/man.cgi?query=flock&sektion=2

I believe so. Bot more properly, those are _Unix_ APIs; not every OS has them. 
(I know very little about Windows, but from what I’ve heard, its filesystem 
semantics are quite different in some ways.)

If you want to know how to lock files on Unix, looking at SQLite is probably 
not the best thing to do, because SQLite has a lot of other complex things to 
do when it manages locks.

—Jens 
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to