main
v1.0.0
modernc.org/SQLite/internal/mptest
Documentation
pkg.go.dev ↗mptest
/* ** 2013-04-05 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This is a program used for testing SQLite, and specifically for testing ** the ability of independent processes to access the same SQLite database ** concurrently. ** ** Compile this program as follows: ** ** gcc -g -c -Wall sqlite3.c $(OPTS) ** gcc -g -o mptest mptest.c sqlite3.o $(LIBS) ** ** Recommended options: ** ** -DHAVE_USLEEP ** -DSQLITE_NO_SYNC ** -DSQLITE_THREADSAFE=0 ** -DSQLITE_OMIT_LOAD_EXTENSION ** ** Run like this: ** ** ./mptest $database $script ** ** where $database is the database to use for testing and $script is a ** test script. */
Variables
X__stdfiles
var X__stdfiles [3]unsafe.Pointer
Xstderr
var Xstderr unsafe.Pointer
Xstdin
var Xstdin unsafe.Pointer
Xstdout
var Xstdout unsafe.Pointer
Functions
X_start
func X_start(tls *crt.TLS, _argc int32, _argv **int8)
Xmain
func Xmain(tls *crt.TLS, _argc int32, _argv **int8) (r0 int32)
Xstrglob
func Xstrglob(tls *crt.TLS, _zGlob *int8, _z *int8) (r0 int32)
C comment
/* ** Return TRUE if string z[] matches glob pattern zGlob[]. ** Return FALSE if the pattern does not match. ** ** Globbing rules: ** ** '*' Matches any sequence of zero or more characters. ** ** '?' Matches exactly one character. ** ** [...] Matches one character from the enclosed list of ** characters. ** ** [^...] Matches one character not in the enclosed list. ** ** '#' Matches any sequence of one or more digits with an ** optional + or - sign in front */
Types
TGlobal
type TGlobal struct {
Xargv0 *int8
XzVfs *int8
XzDbFile *int8
Xdb unsafe.Pointer
XzErrLog *int8
XpErrLog unsafe.Pointer
XzLog *int8
XpLog unsafe.Pointer
XzName [32]int8
XtaskId int32
XiTrace int32
XbSqlTrace int32
XbIgnoreSqlErrors int32
XnError int32
XnTest int32
XiTimeout int32
XbSync int32
} // t6 struct{argv0 *int8,zVfs *int8,zDbFile *int8,db *struct{},zErrLog *int8,pErrLog *struct{},zLog *int8,pLog *struct{},zName [32]int8,taskId int32,iTrace int32,bSqlTrace int32,bIgnoreSqlErrors int32,nError int32,nTest int32,iTimeout int32,bSync int32}
XString
type XString struct {
Xz *int8
Xn int32
XnAlloc int32
} // t7 struct{z *int8,n int32,nAlloc int32}