Re: [sqlite] How lock is implemented upon write?

2019-07-04 Thread Larry Brasfield
Peng Yu wrote: >> So the fundamental C API that unix_os.c is based on is >> the only following but nothing else? >> [ followed by links to *nix C API fcntl(…) docs ] The (C and fundamental) API you cite is the interface provided for applications running on Unix-like operating systems to lock

Re: [sqlite] How lock is implemented upon write?

2019-07-04 Thread Peng Yu
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=2 On 7/3/19, Jens Alfke wrote: > >> On Jul 3, 2019, at 6:20 PM, Peng

Re: [sqlite] How lock is implemented upon write?

2019-07-04 Thread Adrian Ho
On 5/7/19 3:14 AM, Larry Brasfield wrote: > I notice that you have ignored repeated requests for insight into why > you have made your inquiry. People who may be able to help you with > your objective ask for such information because, often, that leads to > or permits a more direct solution to

Re: [sqlite] How lock is implemented upon write?

2019-07-04 Thread Simon Slavin
Here's my guess. OP is trying to implement locking in Python. OP sees that SQLite does locking and wants to copy code. Obviously, that's beyond the range of this mailing list, but just to be helpful, here's some stackoverflow: