summaryrefslogtreecommitdiff
path: root/dist/sqlite3.c
diff options
context:
space:
mode:
authorVictor Chang <vfcc@google.com>2019-01-18 17:16:37 -0800
committerVictor Chang <vfcc@google.com>2019-03-20 13:56:40 -0700
commit5148bb2b921ee84709d3924aecbad69d77300aff (patch)
treeafe91f4bdabbce45ab54ab2071156252dd39383c /dist/sqlite3.c
parent66b437d9071f9f8e21eef9d454e24bc6bd6c6093 (diff)
[fuchsia] Add Fuchsia support to SQLite.
This enables basic database locking, but there are known weaknesses to this approach. ie. If the process is killed before the *.lock file can be deleted, then the database is perpetually locked. Bug: 120103808 Test: Database locking works. Merged-In: Iac54c5f76e167fef15b490522840d33808d4bc6c Change-Id: Iac54c5f76e167fef15b490522840d33808d4bc6c
Diffstat (limited to 'dist/sqlite3.c')
-rw-r--r--dist/sqlite3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index 18b8246..1931481 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -38450,6 +38450,10 @@ SQLITE_API int sqlite3_os_init(void){
UNIXVFS("unix", autolockIoFinder ),
#elif OS_VXWORKS
UNIXVFS("unix", vxworksIoFinder ),
+#elif __Fuchsia__
+ /* None of the system calls for other exclusion methods are currently
+ ** implemented on Fuchsia, so use simple dot-file locking for now. */
+ UNIXVFS("unix", dotlockIoFinder ),
#else
UNIXVFS("unix", posixIoFinder ),
#endif