summaryrefslogtreecommitdiff
path: root/static/netbsd/man3/SQLITE_SHM_UNLOCK.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:15 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:15 -0400
commit253e67c8b3a72b3a4757fdbc5845297628db0a4a (patch)
treeadf53b66087aa30dfbf8bf391a1dadb044c3bf4d /static/netbsd/man3/SQLITE_SHM_UNLOCK.3
parenta9157ce950dfe2fc30795d43b9d79b9d1bffc48b (diff)
docs: Added All NetBSD Manuals
Diffstat (limited to 'static/netbsd/man3/SQLITE_SHM_UNLOCK.3')
-rw-r--r--static/netbsd/man3/SQLITE_SHM_UNLOCK.348
1 files changed, 48 insertions, 0 deletions
diff --git a/static/netbsd/man3/SQLITE_SHM_UNLOCK.3 b/static/netbsd/man3/SQLITE_SHM_UNLOCK.3
new file mode 100644
index 00000000..82e6f7ab
--- /dev/null
+++ b/static/netbsd/man3/SQLITE_SHM_UNLOCK.3
@@ -0,0 +1,48 @@
+.Dd January 24, 2024
+.Dt SQLITE_SHM_UNLOCK 3
+.Os
+.Sh NAME
+.Nm SQLITE_SHM_UNLOCK ,
+.Nm SQLITE_SHM_LOCK ,
+.Nm SQLITE_SHM_SHARED ,
+.Nm SQLITE_SHM_EXCLUSIVE
+.Nd flags for the xShmLock VFS method
+.Sh SYNOPSIS
+.In sqlite3.h
+.Fd #define SQLITE_SHM_UNLOCK
+.Fd #define SQLITE_SHM_LOCK
+.Fd #define SQLITE_SHM_SHARED
+.Fd #define SQLITE_SHM_EXCLUSIVE
+.Sh DESCRIPTION
+These integer constants define the various locking operations allowed
+by the xShmLock method of sqlite3_io_methods.
+The following are the only legal combinations of flags to the xShmLock
+method:
+.Bl -bullet
+.It
+SQLITE_SHM_LOCK | SQLITE_SHM_SHARED
+.It
+SQLITE_SHM_LOCK | SQLITE_SHM_EXCLUSIVE
+.It
+SQLITE_SHM_UNLOCK | SQLITE_SHM_SHARED
+.It
+SQLITE_SHM_UNLOCK | SQLITE_SHM_EXCLUSIVE
+.El
+.Pp
+When unlocking, the same SHARED or EXCLUSIVE flag must be supplied
+as was given on the corresponding lock.
+.Pp
+The xShmLock method can transition between unlocked and SHARED or between
+unlocked and EXCLUSIVE.
+It cannot transition between SHARED and EXCLUSIVE.
+.Sh IMPLEMENTATION NOTES
+These declarations were extracted from the
+interface documentation at line 1529.
+.Bd -literal
+#define SQLITE_SHM_UNLOCK 1
+#define SQLITE_SHM_LOCK 2
+#define SQLITE_SHM_SHARED 4
+#define SQLITE_SHM_EXCLUSIVE 8
+.Ed
+.Sh SEE ALSO
+.Xr sqlite3_io_methods 3