diff --git a/Makefile b/Makefile index f53dedd..3e49338 100644 --- a/Makefile +++ b/Makefile @@ -37,16 +37,27 @@ all: editor build_all_targets: GOOS=darwin GOARCH=amd64 go build -v ./... + GOOS=darwin GOARCH=amd64 go test -c -o /dev/null GOOS=darwin GOARCH=arm64 go build -v ./... + GOOS=darwin GOARCH=arm64 go test -c -o /dev/null GOOS=freebsd GOARCH=amd64 go build -v ./... + GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null GOOS=linux GOARCH=386 go build -v ./... + GOOS=linux GOARCH=386 go test -c -o /dev/null GOOS=linux GOARCH=amd64 go build -v ./... + GOOS=linux GOARCH=amd64 go test -c -o /dev/null GOOS=linux GOARCH=arm go build -v ./... + GOOS=linux GOARCH=arm go test -c -o /dev/null GOOS=linux GOARCH=arm64 go build -v ./... + GOOS=linux GOARCH=arm64 go test -c -o /dev/null GOOS=linux GOARCH=s390x go build -v ./... + GOOS=linux GOARCH=s390x go test -c -o /dev/null GOOS=netbsd GOARCH=amd64 go build -v ./... + GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null GOOS=windows GOARCH=386 go build -v ./... + GOOS=windows GOARCH=386 go test -c -o /dev/null GOOS=windows GOARCH=amd64 go build -v ./... + GOOS=windows GOARCH=amd64 go test -c -o /dev/null echo done darwin_amd64: diff --git a/generator.go b/generator.go index 11cf20c..1ef3df3 100644 --- a/generator.go +++ b/generator.go @@ -607,10 +607,6 @@ func makeTestfixture(goos, goarch string, more []string) { more, configTest, ) - // experimental pthreads support currently only on linux/amd64 - if goos != "linux" || goarch != "amd64" { - args = append(args, "-lmodernc.org/sqlite/internal/libc2") - } task := ccgo.NewTask(args, nil, nil) if err := task.Main(); err != nil { fail("%s\n", err) diff --git a/go.mod b/go.mod index 1403679..abd7030 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,6 @@ require ( modernc.org/ccgo/v3 v3.12.49 modernc.org/libc v1.11.47 modernc.org/mathutil v1.4.1 - modernc.org/tcl v1.8.2 - modernc.org/z v1.2.9 + modernc.org/tcl v1.8.4 + modernc.org/z v1.2.10 ) diff --git a/go.sum b/go.sum index 7093029..5651267 100644 --- a/go.sum +++ b/go.sum @@ -77,7 +77,6 @@ modernc.org/ccgo/v3 v3.12.38/go.mod h1:93O0G7baRST1vNj4wnZ49b1kLxt0xCW5Hsa2qRaZP modernc.org/ccgo/v3 v3.12.43/go.mod h1:k+DqGXd3o7W+inNujK15S5ZYuPoWYLpF5PYougCmthU= modernc.org/ccgo/v3 v3.12.46/go.mod h1:UZe6EvMSqOxaJ4sznY7b23/k13R8XNlyWsO5bAmSgOE= modernc.org/ccgo/v3 v3.12.47/go.mod h1:m8d6p0zNps187fhBwzY/ii6gxfjob1VxWb919Nk1HUk= -modernc.org/ccgo/v3 v3.12.48/go.mod h1:3BuluA3qXHjZVJtuvdMuZNrNfzYXx2WIxlUG+31RtGE= modernc.org/ccgo/v3 v3.12.49 h1:BbbVvNm21I/7myuzz57zbxAKr5MiXnk8N56k6fUb5IM= modernc.org/ccgo/v3 v3.12.49/go.mod h1:UvKgagIYlE3Xn33gyiJwjAr76zcLyV9qw9VKPm8YzWQ= modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= @@ -103,7 +102,6 @@ modernc.org/libc v1.11.39/go.mod h1:mV8lJMo2S5A31uD0k1cMu7vrJbSA3J3waQJxpV4iqx8= modernc.org/libc v1.11.42/go.mod h1:yzrLDU+sSjLE+D4bIhS7q1L5UwXDOw99PLSX0BlZvSQ= modernc.org/libc v1.11.44/go.mod h1:KFq33jsma7F5WXiYelU8quMJasCCTnHK0mkri4yPHgA= modernc.org/libc v1.11.45/go.mod h1:Y192orvfVQQYFzCNsn+Xt0Hxt4DiO4USpLNXBlXg/tM= -modernc.org/libc v1.11.46/go.mod h1:tPkE4PzCTW27E6AIKIR5IwHAQKCAtudEIeAV1/SiyBg= modernc.org/libc v1.11.47 h1:okAADmHW7hSmxkMW4VZRI/EFu3YIGVfB0Srq8pq5dJg= modernc.org/libc v1.11.47/go.mod h1:tPkE4PzCTW27E6AIKIR5IwHAQKCAtudEIeAV1/SiyBg= modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= @@ -118,10 +116,9 @@ modernc.org/opt v0.1.1 h1:/0RX92k9vwVeDXj+Xn23DKp2VJubL7k8qNffND6qn3A= modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= modernc.org/strutil v1.1.1 h1:xv+J1BXY3Opl2ALrBwyfEikFAj8pmqcpnfmuwUwcozs= modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw= -modernc.org/tcl v1.8.2 h1:2IIui445QtTt0Yfrgb6iBnoJc3BL34pxSJKxjKiQdIY= -modernc.org/tcl v1.8.2/go.mod h1:6qWd2lvIKrQHnwZth5pWtFg2WGfbR2DmBRyAFJxv8dk= +modernc.org/tcl v1.8.4 h1:WUsm5iUrhuLQ3syPRhepTeSHurPEV4QSFng20+/c/0M= +modernc.org/tcl v1.8.4/go.mod h1:0sq518f9vgUnLapsf2sP8Ooa2jkQ2gA8Ax0/XHQe16Q= modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk= modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/z v1.2.8/go.mod h1:4BiXj2tH0eKPfU4fZD/k/zaB1xa50EG0jjIFGlENH5M= -modernc.org/z v1.2.9 h1:QRpVeOeLmS4T0YFvxLbSj7sWdiq8qlBW/p9zkUGJd00= -modernc.org/z v1.2.9/go.mod h1:oy43TjhXBvciRlhy8rVGecnUkagSI5JRN4ljoHB1FGE= +modernc.org/z v1.2.10 h1:E3zjD2XE4vFaf7sLyegAVMss7MI+4usBiH1BPXJpbD8= +modernc.org/z v1.2.10/go.mod h1:gUJeJnARYkx6GghDn/CFSPp3KBCFgaIlEaHtG1qltXQ= diff --git a/internal/testfixture/testfixture_linux_386.go b/internal/testfixture/testfixture_linux_386.go index b402d78..2e49227 100644 --- a/internal/testfixture/testfixture_linux_386.go +++ b/internal/testfixture/testfixture_linux_386.go @@ -1,4 +1,4 @@ -// Code generated by 'ccgo -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 -DSQLITE_SERVER=1 -DTCLSH_INIT_PROC=sqlite3TestInit -D_HAVE_SQLITE_CONFIG_H -I/usr/include/tcl8.6 -export-defines "" -export-fields F -trace-translation-units -volatile=sqlite3_io_error_pending,sqlite3_open_file_count,sqlite3_pager_readdb_count,sqlite3_pager_writedb_count,sqlite3_pager_writej_count,sqlite3_search_count,sqlite3_sort_count,saved_cnt -lmodernc.org/sqlite/libtest -lmodernc.org/tcl/lib -lmodernc.org/z/lib -o internal/testfixture/testfixture_linux_386.go -Itestdata/sqlite-src-3360000/ext/async -Itestdata/sqlite-src-3360000/ext/fts3 -Itestdata/sqlite-src-3360000/ext/icu -Itestdata/sqlite-src-3360000/ext/rtree -Itestdata/sqlite-src-3360000/ext/session -Itestdata/sqlite-src-3360000/ext/userauth -Itestdata/sqlite-src-3360000/src -Itestdata/sqlite-amalgamation-3360000 -Itestdata/sqlite-src-3360000 testdata/sqlite-src-3360000/ext/expert/sqlite3expert.c testdata/sqlite-src-3360000/ext/expert/test_expert.c testdata/sqlite-src-3360000/ext/fts3/fts3_term.c testdata/sqlite-src-3360000/ext/fts3/fts3_test.c testdata/sqlite-src-3360000/ext/fts5/fts5_tcl.c testdata/sqlite-src-3360000/ext/fts5/fts5_test_mi.c testdata/sqlite-src-3360000/ext/fts5/fts5_test_tok.c testdata/sqlite-src-3360000/ext/misc/appendvfs.c testdata/sqlite-src-3360000/ext/misc/amatch.c testdata/sqlite-src-3360000/ext/misc/carray.c testdata/sqlite-src-3360000/ext/misc/cksumvfs.c testdata/sqlite-src-3360000/ext/misc/closure.c testdata/sqlite-src-3360000/ext/misc/csv.c testdata/sqlite-src-3360000/ext/misc/decimal.c testdata/sqlite-src-3360000/ext/misc/eval.c testdata/sqlite-src-3360000/ext/misc/explain.c testdata/sqlite-src-3360000/ext/misc/fileio.c testdata/sqlite-src-3360000/ext/misc/fuzzer.c testdata/sqlite-src-3360000/ext/misc/ieee754.c testdata/sqlite-src-3360000/ext/misc/mmapwarm.c testdata/sqlite-src-3360000/ext/misc/nextchar.c testdata/sqlite-src-3360000/ext/misc/normalize.c testdata/sqlite-src-3360000/ext/misc/percentile.c testdata/sqlite-src-3360000/ext/misc/prefixes.c testdata/sqlite-src-3360000/ext/misc/regexp.c testdata/sqlite-src-3360000/ext/misc/remember.c testdata/sqlite-src-3360000/ext/misc/series.c testdata/sqlite-src-3360000/ext/misc/spellfix.c testdata/sqlite-src-3360000/ext/misc/totype.c testdata/sqlite-src-3360000/ext/misc/unionvtab.c testdata/sqlite-src-3360000/ext/misc/wholenumber.c testdata/sqlite-src-3360000/ext/misc/zipfile.c testdata/sqlite-src-3360000/ext/rbu/test_rbu.c testdata/sqlite-src-3360000/ext/session/test_session.c testdata/sqlite-src-3360000/ext/userauth/userauth.c testdata/sqlite-src-3360000/src/tclsqlite.c testdata/sqlite-src-3360000/src/test1.c testdata/sqlite-src-3360000/src/test2.c testdata/sqlite-src-3360000/src/test3.c testdata/sqlite-src-3360000/src/test4.c testdata/sqlite-src-3360000/src/test5.c testdata/sqlite-src-3360000/src/test6.c testdata/sqlite-src-3360000/src/test7.c testdata/sqlite-src-3360000/src/test8.c testdata/sqlite-src-3360000/src/test9.c testdata/sqlite-src-3360000/src/test_async.c testdata/sqlite-src-3360000/src/test_autoext.c testdata/sqlite-src-3360000/src/test_backup.c testdata/sqlite-src-3360000/src/test_bestindex.c testdata/sqlite-src-3360000/src/test_blob.c testdata/sqlite-src-3360000/src/test_btree.c testdata/sqlite-src-3360000/src/test_config.c testdata/sqlite-src-3360000/src/test_delete.c testdata/sqlite-src-3360000/src/test_demovfs.c testdata/sqlite-src-3360000/src/test_devsym.c testdata/sqlite-src-3360000/src/test_fs.c testdata/sqlite-src-3360000/src/test_func.c testdata/sqlite-src-3360000/src/test_hexio.c testdata/sqlite-src-3360000/src/test_init.c testdata/sqlite-src-3360000/src/test_intarray.c testdata/sqlite-src-3360000/src/test_journal.c testdata/sqlite-src-3360000/src/test_malloc.c testdata/sqlite-src-3360000/src/test_md5.c testdata/sqlite-src-3360000/src/test_multiplex.c testdata/sqlite-src-3360000/src/test_mutex.c testdata/sqlite-src-3360000/src/test_onefile.c testdata/sqlite-src-3360000/src/test_osinst.c testdata/sqlite-src-3360000/src/test_pcache.c testdata/sqlite-src-3360000/src/test_quota.c testdata/sqlite-src-3360000/src/test_rtree.c testdata/sqlite-src-3360000/src/test_schema.c testdata/sqlite-src-3360000/src/test_server.c testdata/sqlite-src-3360000/src/test_superlock.c testdata/sqlite-src-3360000/src/test_syscall.c testdata/sqlite-src-3360000/src/test_tclsh.c testdata/sqlite-src-3360000/src/test_tclvar.c testdata/sqlite-src-3360000/src/test_thread.c testdata/sqlite-src-3360000/src/test_vdbecov.c testdata/sqlite-src-3360000/src/test_vfs.c testdata/sqlite-src-3360000/src/test_windirent.c testdata/sqlite-src-3360000/src/test_window.c testdata/sqlite-src-3360000/src/test_wsd.c -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CKSUMVFS_STATIC -DSQLITE_CORE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_SOUNDEX -DSQLITE_TEMP_STORE=1 -DSQLITE_TEST -DSQLITE_THREADSAFE=1 -DSQLITE_MUTEX_NOOP -lmodernc.org/sqlite/internal/libc2', DO NOT EDIT. +// Code generated by 'ccgo -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 -DSQLITE_SERVER=1 -DTCLSH_INIT_PROC=sqlite3TestInit -D_HAVE_SQLITE_CONFIG_H -I/usr/include/tcl8.6 -export-defines "" -export-fields F -trace-translation-units -volatile=sqlite3_io_error_pending,sqlite3_open_file_count,sqlite3_pager_readdb_count,sqlite3_pager_writedb_count,sqlite3_pager_writej_count,sqlite3_search_count,sqlite3_sort_count,saved_cnt -lmodernc.org/sqlite/libtest -lmodernc.org/tcl/lib -lmodernc.org/z/lib -o internal/testfixture/testfixture_linux_386.go -Itestdata/sqlite-src-3360000/ext/async -Itestdata/sqlite-src-3360000/ext/fts3 -Itestdata/sqlite-src-3360000/ext/icu -Itestdata/sqlite-src-3360000/ext/rtree -Itestdata/sqlite-src-3360000/ext/session -Itestdata/sqlite-src-3360000/ext/userauth -Itestdata/sqlite-src-3360000/src -Itestdata/sqlite-amalgamation-3360000 -Itestdata/sqlite-src-3360000 testdata/sqlite-src-3360000/ext/expert/sqlite3expert.c testdata/sqlite-src-3360000/ext/expert/test_expert.c testdata/sqlite-src-3360000/ext/fts3/fts3_term.c testdata/sqlite-src-3360000/ext/fts3/fts3_test.c testdata/sqlite-src-3360000/ext/fts5/fts5_tcl.c testdata/sqlite-src-3360000/ext/fts5/fts5_test_mi.c testdata/sqlite-src-3360000/ext/fts5/fts5_test_tok.c testdata/sqlite-src-3360000/ext/misc/appendvfs.c testdata/sqlite-src-3360000/ext/misc/amatch.c testdata/sqlite-src-3360000/ext/misc/carray.c testdata/sqlite-src-3360000/ext/misc/cksumvfs.c testdata/sqlite-src-3360000/ext/misc/closure.c testdata/sqlite-src-3360000/ext/misc/csv.c testdata/sqlite-src-3360000/ext/misc/decimal.c testdata/sqlite-src-3360000/ext/misc/eval.c testdata/sqlite-src-3360000/ext/misc/explain.c testdata/sqlite-src-3360000/ext/misc/fileio.c testdata/sqlite-src-3360000/ext/misc/fuzzer.c testdata/sqlite-src-3360000/ext/misc/ieee754.c testdata/sqlite-src-3360000/ext/misc/mmapwarm.c testdata/sqlite-src-3360000/ext/misc/nextchar.c testdata/sqlite-src-3360000/ext/misc/normalize.c testdata/sqlite-src-3360000/ext/misc/percentile.c testdata/sqlite-src-3360000/ext/misc/prefixes.c testdata/sqlite-src-3360000/ext/misc/regexp.c testdata/sqlite-src-3360000/ext/misc/remember.c testdata/sqlite-src-3360000/ext/misc/series.c testdata/sqlite-src-3360000/ext/misc/spellfix.c testdata/sqlite-src-3360000/ext/misc/totype.c testdata/sqlite-src-3360000/ext/misc/unionvtab.c testdata/sqlite-src-3360000/ext/misc/wholenumber.c testdata/sqlite-src-3360000/ext/misc/zipfile.c testdata/sqlite-src-3360000/ext/rbu/test_rbu.c testdata/sqlite-src-3360000/ext/session/test_session.c testdata/sqlite-src-3360000/ext/userauth/userauth.c testdata/sqlite-src-3360000/src/tclsqlite.c testdata/sqlite-src-3360000/src/test1.c testdata/sqlite-src-3360000/src/test2.c testdata/sqlite-src-3360000/src/test3.c testdata/sqlite-src-3360000/src/test4.c testdata/sqlite-src-3360000/src/test5.c testdata/sqlite-src-3360000/src/test6.c testdata/sqlite-src-3360000/src/test7.c testdata/sqlite-src-3360000/src/test8.c testdata/sqlite-src-3360000/src/test9.c testdata/sqlite-src-3360000/src/test_async.c testdata/sqlite-src-3360000/src/test_autoext.c testdata/sqlite-src-3360000/src/test_backup.c testdata/sqlite-src-3360000/src/test_bestindex.c testdata/sqlite-src-3360000/src/test_blob.c testdata/sqlite-src-3360000/src/test_btree.c testdata/sqlite-src-3360000/src/test_config.c testdata/sqlite-src-3360000/src/test_delete.c testdata/sqlite-src-3360000/src/test_demovfs.c testdata/sqlite-src-3360000/src/test_devsym.c testdata/sqlite-src-3360000/src/test_fs.c testdata/sqlite-src-3360000/src/test_func.c testdata/sqlite-src-3360000/src/test_hexio.c testdata/sqlite-src-3360000/src/test_init.c testdata/sqlite-src-3360000/src/test_intarray.c testdata/sqlite-src-3360000/src/test_journal.c testdata/sqlite-src-3360000/src/test_malloc.c testdata/sqlite-src-3360000/src/test_md5.c testdata/sqlite-src-3360000/src/test_multiplex.c testdata/sqlite-src-3360000/src/test_mutex.c testdata/sqlite-src-3360000/src/test_onefile.c testdata/sqlite-src-3360000/src/test_osinst.c testdata/sqlite-src-3360000/src/test_pcache.c testdata/sqlite-src-3360000/src/test_quota.c testdata/sqlite-src-3360000/src/test_rtree.c testdata/sqlite-src-3360000/src/test_schema.c testdata/sqlite-src-3360000/src/test_server.c testdata/sqlite-src-3360000/src/test_superlock.c testdata/sqlite-src-3360000/src/test_syscall.c testdata/sqlite-src-3360000/src/test_tclsh.c testdata/sqlite-src-3360000/src/test_tclvar.c testdata/sqlite-src-3360000/src/test_thread.c testdata/sqlite-src-3360000/src/test_vdbecov.c testdata/sqlite-src-3360000/src/test_vfs.c testdata/sqlite-src-3360000/src/test_windirent.c testdata/sqlite-src-3360000/src/test_window.c testdata/sqlite-src-3360000/src/test_wsd.c -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CKSUMVFS_STATIC -DSQLITE_CORE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_SOUNDEX -DSQLITE_TEMP_STORE=1 -DSQLITE_TEST -DSQLITE_THREADSAFE=1 -DSQLITE_MUTEX_NOOP', DO NOT EDIT. package main @@ -10,9 +10,9 @@ import ( "modernc.org/libc" "modernc.org/libc/sys/types" - "modernc.org/sqlite/internal/libc2" "modernc.org/sqlite/libtest" "modernc.org/tcl/lib" + "modernc.org/z/lib" ) var _ = math.Pi @@ -3696,9 +3696,15 @@ const ( /* resource.h:187:1: */ PRIO_USER = 2 ) -// Convenience macros for operations on timevals. -// NOTE: `timercmp' does not work for >= or <=. +// end block for C++ +// Local Variables: +// mode: c +// c-basic-offset: 4 +// fill-column: 78 +// End: + +// Needed for the setrlimit() system call on unix // Copyright (C) 1992-2018 Free Software Foundation, Inc. // This file is part of the GNU C Library. // @@ -33915,11 +33921,11 @@ func zipfileInflate(tls *libc.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut in (*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Fnext_out = aRes (*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Favail_out = uInt(nOut) - err = tcl.XinflateInit2_(tls, bp+16 /* &str */, -15, ts+9168 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{}))) + err = z.XinflateInit2_(tls, bp+16 /* &str */, -15, ts+9168 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{}))) if err != Z_OK { zipfileCtxErrorMsg(tls, pCtx, ts+9175 /* "inflateInit2() f..." */, libc.VaList(bp, err)) } else { - err = tcl.Xinflate(tls, bp+16 /* &str */, Z_NO_FLUSH) + err = z.Xinflate(tls, bp+16 /* &str */, Z_NO_FLUSH) if err != Z_STREAM_END { zipfileCtxErrorMsg(tls, pCtx, ts+9202 /* "inflate() failed..." */, libc.VaList(bp+8, err)) } else { @@ -33928,7 +33934,7 @@ func zipfileInflate(tls *libc.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut in } } sqlite3.Xsqlite3_free(tls, aRes) - tcl.XinflateEnd(tls, bp+16 /* &str */) + z.XinflateEnd(tls, bp+16 /* &str */) } } @@ -33955,9 +33961,9 @@ func zipfileDeflate(tls *libc.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut libc.Xmemset(tls, bp /* &str */, 0, uint32(unsafe.Sizeof(z_stream{}))) (*z_stream)(unsafe.Pointer(bp /* &str */)).Fnext_in = aIn (*z_stream)(unsafe.Pointer(bp /* &str */)).Favail_in = uInt(nIn) - tcl.XdeflateInit2_(tls, bp /* &str */, 9, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY, ts+9168 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{}))) + z.XdeflateInit2_(tls, bp /* &str */, 9, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY, ts+9168 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{}))) - nAlloc = sqlite3_int64(tcl.XdeflateBound(tls, bp /* &str */, uint32(nIn))) + nAlloc = sqlite3_int64(z.XdeflateBound(tls, bp /* &str */, uint32(nIn))) aOut = sqlite3.Xsqlite3_malloc64(tls, uint64(nAlloc)) if aOut == uintptr(0) { rc = SQLITE_NOMEM @@ -33965,7 +33971,7 @@ func zipfileDeflate(tls *libc.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut var res int32 (*z_stream)(unsafe.Pointer(bp /* &str */)).Fnext_out = aOut (*z_stream)(unsafe.Pointer(bp /* &str */)).Favail_out = uInt(nAlloc) - res = tcl.Xdeflate(tls, bp /* &str */, Z_FINISH) + res = z.Xdeflate(tls, bp /* &str */, Z_FINISH) if res == Z_STREAM_END { *(*uintptr)(unsafe.Pointer(ppOut)) = aOut *(*int32)(unsafe.Pointer(pnOut)) = int32((*z_stream)(unsafe.Pointer(bp /* &str */)).Ftotal_out) @@ -33974,7 +33980,7 @@ func zipfileDeflate(tls *libc.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+9224 /* "zipfile: deflate..." */, 0) rc = SQLITE_ERROR } - tcl.XdeflateEnd(tls, bp /* &str */) + z.XdeflateEnd(tls, bp /* &str */) } return rc @@ -34787,7 +34793,7 @@ __19: ; __18: ; - iCrc32 = u32(tcl.Xcrc32(tls, uint32(0), aIn, uint32(nIn))) + iCrc32 = u32(z.Xcrc32(tls, uint32(0), aIn, uint32(nIn))) __17: ; __15: @@ -35402,7 +35408,7 @@ __7: __9: aData = sqlite3.Xsqlite3_value_blob(tls, pData) szUncompressed = libc.AssignInt32(&nData, sqlite3.Xsqlite3_value_bytes(tls, pData)) - iCrc32 = u32(tcl.Xcrc32(tls, uint32(0), aData, uint32(nData))) + iCrc32 = u32(z.Xcrc32(tls, uint32(0), aData, uint32(nData))) if !((iMethod < 0) || (iMethod == 8)) { goto __11 } @@ -56930,7 +56936,7 @@ func test_thread_main(tls *libc.TLS, pArg uintptr) uintptr { /* test4.c:67:13: * (*Thread)(unsafe.Pointer(p)).FpStmt = uintptr(0) (*Thread)(unsafe.Pointer(p)).Fcompleted = 1 for (*Thread)(unsafe.Pointer(p)).Fopnum <= (*Thread)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } for (*Thread)(unsafe.Pointer(p)).FxOp != 0 { if ((*Thread)(unsafe.Pointer(p)).FzErr != 0) && ((*Thread)(unsafe.Pointer(p)).FzErr != (*Thread)(unsafe.Pointer(p)).FzStaticErr) { @@ -56940,7 +56946,7 @@ func test_thread_main(tls *libc.TLS, pArg uintptr) uintptr { /* test4.c:67:13: * (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Thread)(unsafe.Pointer(p)).FxOp})).f(tls, p) (*Thread)(unsafe.Pointer(p)).Fcompleted++ for (*Thread)(unsafe.Pointer(p)).Fopnum <= (*Thread)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } } if (*Thread)(unsafe.Pointer(p)).FpStmt != 0 { @@ -57005,7 +57011,7 @@ func tcl_thread_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int3 threadset[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + 2*4)))) threadset[i].Fopnum = 1 threadset[i].Fcompleted = 0 - rc = libc2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = libc.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) uintptr }{test_thread_main})), (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*848)) if rc != 0 { @@ -57014,14 +57020,14 @@ func tcl_thread_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int3 threadset[i].Fbusy = 0 return TCL_ERROR } - libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */))) + libc.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */))) return TCL_OK } // Wait for a thread to reach its idle state. func test_thread_wait(tls *libc.TLS, p uintptr) { /* test4.c:168:13: */ for (*Thread)(unsafe.Pointer(p)).Fopnum > (*Thread)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } } @@ -58788,7 +58794,7 @@ func client_main(tls *libc.TLS, pArg uintptr) uintptr { /* test7.c:95:13: */ (*Thread1)(unsafe.Pointer(p)).FpStmt = uintptr(0) (*Thread1)(unsafe.Pointer(p)).Fcompleted = 1 for (*Thread1)(unsafe.Pointer(p)).Fopnum <= (*Thread1)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } for (*Thread1)(unsafe.Pointer(p)).FxOp != 0 { if ((*Thread1)(unsafe.Pointer(p)).FzErr != 0) && ((*Thread1)(unsafe.Pointer(p)).FzErr != (*Thread1)(unsafe.Pointer(p)).FzStaticErr) { @@ -58798,7 +58804,7 @@ func client_main(tls *libc.TLS, pArg uintptr) uintptr { /* test7.c:95:13: */ (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Thread1)(unsafe.Pointer(p)).FxOp})).f(tls, p) (*Thread1)(unsafe.Pointer(p)).Fcompleted++ for (*Thread1)(unsafe.Pointer(p)).Fopnum <= (*Thread1)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } } if (*Thread1)(unsafe.Pointer(p)).FpStmt != 0 { @@ -58863,7 +58869,7 @@ func tcl_client_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int3 threadset1[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + 2*4)))) threadset1[i].Fopnum = 1 threadset1[i].Fcompleted = 0 - rc = libc2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = libc.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) uintptr }{client_main})), (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*852)) if rc != 0 { @@ -58872,7 +58878,7 @@ func tcl_client_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int3 threadset1[i].Fbusy = 0 return TCL_ERROR } - libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */))) + libc.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */))) if threadset1[i].FnServer == 0 { threadset1[i].FnServer = 1 sqlite3_server_start2(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*852 + 848 /* &.nServer */)) @@ -58883,7 +58889,7 @@ func tcl_client_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int3 // Wait for a thread to reach its idle state. func client_wait(tls *libc.TLS, p uintptr) { /* test7.c:200:13: */ for (*Thread1)(unsafe.Pointer(p)).Fopnum > (*Thread1)(unsafe.Pointer(p)).Fcompleted { - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } } @@ -58970,7 +58976,7 @@ func tcl_client_halt(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, if i == N_THREAD { break } - libc2.Xsched_yield(tls) + libc.Xsched_yield(tls) } } return TCL_OK @@ -76997,11 +77003,11 @@ var g4 = ServerState{} /* test_server.c:259:3 */ // initializing them and destroying them when it has finished. func sendToServer(tls *libc.TLS, pMsg uintptr) { /* test_server.c:272:13: */ // Initialize the mutex and condition variable on the message - libc2.Xpthread_mutex_init(tls, (pMsg + 36 /* &.clientMutex */), uintptr(0)) - libc2.Xpthread_cond_init(tls, (pMsg + 60 /* &.clientWakeup */), uintptr(0)) + libc.Xpthread_mutex_init(tls, (pMsg + 36 /* &.clientMutex */), uintptr(0)) + libc.Xpthread_cond_init(tls, (pMsg + 60 /* &.clientWakeup */), uintptr(0)) // Add the message to the head of the server's message queue. - libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) + libc.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) (*SqlMessage)(unsafe.Pointer(pMsg)).FpNext = g4.FpQueueHead if g4.FpQueueHead == uintptr(0) { g4.FpQueueTail = pMsg @@ -77010,20 +77016,20 @@ func sendToServer(tls *libc.TLS, pMsg uintptr) { /* test_server.c:272:13: */ } (*SqlMessage)(unsafe.Pointer(pMsg)).FpPrev = uintptr(0) g4.FpQueueHead = pMsg - libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) + libc.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) // Signal the server that the new message has be queued, then // block waiting for the server to process the message. - libc2.Xpthread_mutex_lock(tls, (pMsg + 36 /* &.clientMutex */)) - libc2.Xpthread_cond_signal(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */)) + libc.Xpthread_mutex_lock(tls, (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_cond_signal(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */)) for (*SqlMessage)(unsafe.Pointer(pMsg)).Fop != MSG_Done { - libc2.Xpthread_cond_wait(tls, (pMsg + 60 /* &.clientWakeup */), (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_cond_wait(tls, (pMsg + 60 /* &.clientWakeup */), (pMsg + 36 /* &.clientMutex */)) } - libc2.Xpthread_mutex_unlock(tls, (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_mutex_unlock(tls, (pMsg + 36 /* &.clientMutex */)) // Destroy the mutex and condition variable of the message. - libc2.Xpthread_mutex_destroy(tls, (pMsg + 36 /* &.clientMutex */)) - libc2.Xpthread_cond_destroy(tls, (pMsg + 60 /* &.clientWakeup */)) + libc.Xpthread_mutex_destroy(tls, (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_cond_destroy(tls, (pMsg + 60 /* &.clientWakeup */)) } // The following 6 routines are client-side implementations of the @@ -77134,7 +77140,7 @@ func sqlite3_client_close(tls *libc.TLS, pDb uintptr) int32 { /* test_server.c:3 // for an example. This procedure loops until g.serverHalt becomes // true. func sqlite3_server(tls *libc.TLS, NotUsed uintptr) uintptr { /* test_server.c:393:6: */ - if libc2.Xpthread_mutex_trylock(tls, (uintptr(unsafe.Pointer(&g4))+24 /* &.serverMutex */)) != 0 { + if libc.Xpthread_mutex_trylock(tls, (uintptr(unsafe.Pointer(&g4))+24 /* &.serverMutex */)) != 0 { return uintptr(0) // Another server is already running } sqlite3.Xsqlite3_enable_shared_cache(tls, 1) @@ -77142,9 +77148,9 @@ func sqlite3_server(tls *libc.TLS, NotUsed uintptr) uintptr { /* test_server.c:3 var pMsg uintptr // Remove the last message from the message queue. - libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) + libc.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) for (g4.FpQueueTail == uintptr(0)) && (g4.FserverHalt == 0) { - libc2.Xpthread_cond_wait(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */), (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) + libc.Xpthread_cond_wait(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */), (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) } pMsg = g4.FpQueueTail if pMsg != 0 { @@ -77155,13 +77161,13 @@ func sqlite3_server(tls *libc.TLS, NotUsed uintptr) uintptr { /* test_server.c:3 } g4.FpQueueTail = (*SqlMessage)(unsafe.Pointer(pMsg)).FpPrev } - libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) + libc.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */)) if pMsg == uintptr(0) { break } // Process the message just removed - libc2.Xpthread_mutex_lock(tls, (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_mutex_lock(tls, (pMsg + 36 /* &.clientMutex */)) switch (*SqlMessage)(unsafe.Pointer(pMsg)).Fop { case MSG_Open: { @@ -77204,10 +77210,10 @@ func sqlite3_server(tls *libc.TLS, NotUsed uintptr) uintptr { /* test_server.c:3 // Signal the client that the message has been processed. (*SqlMessage)(unsafe.Pointer(pMsg)).Fop = MSG_Done - libc2.Xpthread_mutex_unlock(tls, (pMsg + 36 /* &.clientMutex */)) - libc2.Xpthread_cond_signal(tls, (pMsg + 60 /* &.clientWakeup */)) + libc.Xpthread_mutex_unlock(tls, (pMsg + 36 /* &.clientMutex */)) + libc.Xpthread_cond_signal(tls, (pMsg + 60 /* &.clientWakeup */)) } - libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) + libc.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) return uintptr(0) } @@ -77222,11 +77228,11 @@ func sqlite3_server_start(tls *libc.TLS) { /* test_server.c:465:6: */ var rc int32 g4.FserverHalt = 0 - rc = libc2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = libc.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) uintptr }{sqlite3_server})), uintptr(0)) if rc == 0 { - libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */))) + libc.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */))) } } @@ -77250,11 +77256,11 @@ func sqlite3_server_start2(tls *libc.TLS, pnDecr uintptr) { /* test_server.c:491 var rc int32 g4.FserverHalt = 0 - rc = libc2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = libc.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) uintptr }{serverWrapper})), pnDecr) if rc == 0 { - libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */))) + libc.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */))) } } @@ -77265,9 +77271,9 @@ func sqlite3_server_start2(tls *libc.TLS, pnDecr uintptr) { /* test_server.c:491 // returning. func sqlite3_server_stop(tls *libc.TLS) { /* test_server.c:508:6: */ g4.FserverHalt = 1 - libc2.Xpthread_cond_broadcast(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */)) - libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) - libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) + libc.Xpthread_cond_broadcast(tls, (uintptr(unsafe.Pointer(&g4)) + 48 /* &.serverWakeup */)) + libc.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) + libc.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 24 /* &.serverMutex */)) } // Copyright (C) 1991-2018 Free Software Foundation, Inc. @@ -79405,10 +79411,10 @@ func unlock_notify_cb(tls *libc.TLS, apArg uintptr, nArg int32) { /* test_thread var i int32 for i = 0; i < nArg; i++ { var p uintptr = *(*uintptr)(unsafe.Pointer(apArg + uintptr(i)*4)) - libc2.Xpthread_mutex_lock(tls, (p + 52 /* &.mutex */)) + libc.Xpthread_mutex_lock(tls, (p + 52 /* &.mutex */)) (*UnlockNotification)(unsafe.Pointer(p)).Ffired = 1 - libc2.Xpthread_cond_signal(tls, (p + 4 /* &.cond */)) - libc2.Xpthread_mutex_unlock(tls, (p + 52 /* &.mutex */)) + libc.Xpthread_cond_signal(tls, (p + 4 /* &.cond */)) + libc.Xpthread_mutex_unlock(tls, (p + 52 /* &.mutex */)) } } @@ -79433,8 +79439,8 @@ func wait_for_unlock_notify(tls *libc.TLS, db uintptr) int32 { /* test_thread.c: // Initialize the UnlockNotification structure. (*UnlockNotification)(unsafe.Pointer(bp /* &un */)).Ffired = 0 - libc2.Xpthread_mutex_init(tls, (bp /* &un */ + 52 /* &.mutex */), uintptr(0)) - libc2.Xpthread_cond_init(tls, (bp /* &un */ + 4 /* &.cond */), uintptr(0)) + libc.Xpthread_mutex_init(tls, (bp /* &un */ + 52 /* &.mutex */), uintptr(0)) + libc.Xpthread_cond_init(tls, (bp /* &un */ + 4 /* &.cond */), uintptr(0)) // Register for an unlock-notify callback. rc = sqlite3.Xsqlite3_unlock_notify(tls, db, *(*uintptr)(unsafe.Pointer(&struct { @@ -79449,16 +79455,16 @@ func wait_for_unlock_notify(tls *libc.TLS, db uintptr) int32 { /* test_thread.c: // that the current transaction can be rolled back. Otherwise, block // until the unlock-notify callback is invoked, then return SQLITE_OK. if rc == SQLITE_OK { - libc2.Xpthread_mutex_lock(tls, (bp /* &un */ + 52 /* &.mutex */)) + libc.Xpthread_mutex_lock(tls, (bp /* &un */ + 52 /* &.mutex */)) if !((*UnlockNotification)(unsafe.Pointer(bp /* &un */)).Ffired != 0) { - libc2.Xpthread_cond_wait(tls, (bp /* &un */ + 4 /* &.cond */), (bp /* &un */ + 52 /* &.mutex */)) + libc.Xpthread_cond_wait(tls, (bp /* &un */ + 4 /* &.cond */), (bp /* &un */ + 52 /* &.mutex */)) } - libc2.Xpthread_mutex_unlock(tls, (bp /* &un */ + 52 /* &.mutex */)) + libc.Xpthread_mutex_unlock(tls, (bp /* &un */ + 52 /* &.mutex */)) } // Destroy the mutex and condition variables. - libc2.Xpthread_cond_destroy(tls, (bp /* &un */ + 4 /* &.cond */)) - libc2.Xpthread_mutex_destroy(tls, (bp /* &un */ + 52 /* &.mutex */)) + libc.Xpthread_cond_destroy(tls, (bp /* &un */ + 4 /* &.cond */)) + libc.Xpthread_mutex_destroy(tls, (bp /* &un */ + 52 /* &.mutex */)) return rc }