netbsd/amd64: regenerate

This commit is contained in:
Jan Mercl
2021-11-09 15:30:55 +01:00
parent f57b67ef4d
commit 03e0695dd5
12 changed files with 22073 additions and 18019 deletions

View File

@@ -74,8 +74,9 @@ freebsd_amd64:
go build -v ./...
netbsd_amd64:
TARGET_GOOS=netbsd TARGET_GOARCH=amd64 go generate 2>&1 | tee /tmp/log-generate-sqlite-netbsd-amd64
GOOS=netbsd GOARCH=amd64 go build -v ./...
@echo "Should be executed only on netbsd/amd64."
go generate 2>&1 | tee log-generate
go build -v ./...
linux_amd64:
TARGET_GOOS=linux TARGET_GOARCH=amd64 go generate 2>&1 | tee /tmp/log-generate-sqlite-linux-amd64

View File

@@ -579,6 +579,29 @@ func makeTestfixture(goos, goarch string, more []string) {
}
configure(goos, goarch)
var defines, includes []string
switch goos {
case "freebsd":
includes = []string{"-I/usr/local/include/tcl8.6"}
case "linux":
includes = []string{"-I/usr/include/tcl8.6"}
case "netbsd":
includes = []string{"-I/usr/pkg/include"}
defines = []string{
"-D__libc_cond_broadcast=pthread_cond_broadcast",
"-D__libc_cond_destroy=pthread_cond_destroy",
"-D__libc_cond_init=pthread_cond_init",
"-D__libc_cond_signal=pthread_cond_signal",
"-D__libc_cond_wait=pthread_cond_wait",
"-D__libc_mutex_destroy=pthread_mutex_destroy",
"-D__libc_mutex_init=pthread_mutex_init",
"-D__libc_mutex_lock=pthread_mutex_lock",
"-D__libc_mutex_trylock=pthread_mutex_trylock",
"-D__libc_mutex_unlock=pthread_mutex_unlock",
"-D__libc_thr_yield=sched_yield",
}
}
args := join(
[]string{
"ccgo",
@@ -587,8 +610,10 @@ func makeTestfixture(goos, goarch string, more []string) {
"-DSQLITE_SERVER=1",
"-DTCLSH_INIT_PROC=sqlite3TestInit",
"-D_HAVE_SQLITE_CONFIG_H",
"-I/usr/include/tcl8.6", //TODO linux: should not be hardcoded
"-I/usr/local/include/tcl8.6", //TODO freebsd: should not be hardcoded
},
defines,
includes,
[]string{
"-export-defines", "",
"-export-fields", "F",
"-trace-translation-units",

8
go.mod
View File

@@ -5,9 +5,9 @@ go 1.15
require (
github.com/mattn/go-sqlite3 v1.14.9
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac
modernc.org/ccgo/v3 v3.12.56
modernc.org/libc v1.11.55
modernc.org/ccgo/v3 v3.12.57
modernc.org/libc v1.11.56
modernc.org/mathutil v1.4.1
modernc.org/tcl v1.8.9
modernc.org/z v1.2.14
modernc.org/tcl v1.8.10
modernc.org/z v1.2.15
)

14
go.sum
View File

@@ -84,8 +84,9 @@ modernc.org/ccgo/v3 v3.12.51/go.mod h1:gaIIlx4YpmGO2bLye04/yeblmvWEmE4BBBls4aJXF
modernc.org/ccgo/v3 v3.12.53/go.mod h1:8xWGGTFkdFEWBEsUmi+DBjwu/WLy3SSOrqEmKUjMeEg=
modernc.org/ccgo/v3 v3.12.54/go.mod h1:yANKFTm9llTFVX1FqNKHE0aMcQb1fuPJx6p8AcUx+74=
modernc.org/ccgo/v3 v3.12.55/go.mod h1:rsXiIyJi9psOwiBkplOaHye5L4MOOaCjHg1Fxkj7IeU=
modernc.org/ccgo/v3 v3.12.56 h1:ziryYQpJAmrOqBW6ojZLnovh8Wn8faOtAyDlXMOOZDA=
modernc.org/ccgo/v3 v3.12.56/go.mod h1:ljeFks3faDseCkr60JMpeDb2GSO3TKAmrzm7q9YOcMU=
modernc.org/ccgo/v3 v3.12.57 h1:np7UjBznMNCgVznI6YFRokzLKP5CikjmYcHk3p+9aig=
modernc.org/ccgo/v3 v3.12.57/go.mod h1:hNSF4DNVgBl8wYHpMvPqQWDQx8luqxDnNGCMM4NFNMc=
modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM=
modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM=
modernc.org/libc v1.9.8/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
@@ -114,8 +115,9 @@ modernc.org/libc v1.11.49/go.mod h1:9JrJuK5WTtoTWIFQ7QjX2Mb/bagYdZdscI3xrvHbXjE=
modernc.org/libc v1.11.51/go.mod h1:R9I8u9TS+meaWLdbfQhq2kFknTW0O3aw3kEMqDDxMaM=
modernc.org/libc v1.11.53/go.mod h1:5ip5vWYPAoMulkQ5XlSJTy12Sz5U6blOQiYasilVPsU=
modernc.org/libc v1.11.54/go.mod h1:S/FVnskbzVUrjfBqlGFIPA5m7UwB3n9fojHhCNfSsnw=
modernc.org/libc v1.11.55 h1:x5QJk5eYCG96PlgPO1K9vUk/AxmzIcyukKBAmbxyiv4=
modernc.org/libc v1.11.55/go.mod h1:j2A5YBRm6HjNkoSs/fzZrSxCuwWqcMYTDPLNx0URn3M=
modernc.org/libc v1.11.56 h1:nkJS+FaH8ik3LqAb/O9z4kQ0cG7F1oGcU1ltIlJgwi8=
modernc.org/libc v1.11.56/go.mod h1:pakHkg5JdMLt2OgRadpPOTnyRXm/uzu+Yyg/LSLdi18=
modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
modernc.org/mathutil v1.4.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
@@ -128,9 +130,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.9 h1:01+Q6s54NyXq9lKJZqD8mT3Pa8NizxetnIsg4d8g0bw=
modernc.org/tcl v1.8.9/go.mod h1:h+sl0eQcsm7asyTWrvceAojTr6tFTEXT910S6yo8fvg=
modernc.org/tcl v1.8.10 h1:48mAZIGipyCMQUYUKdaNhPzDIOy4bThI3d22FYyQpBA=
modernc.org/tcl v1.8.10/go.mod h1:fTkBrkA7dBZUmavypkhm0p14lZIRBNbRBOSTiJTPkKM=
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
modernc.org/z v1.2.14 h1:oZBeZfql7WiThnnDpf1MI56Ee6MxpkRbjI7NNRVl1zo=
modernc.org/z v1.2.14/go.mod h1:CpKggokvOlUM49WoeUzsVs98MTIq8RzgTFfcg4nAsrA=
modernc.org/z v1.2.15 h1:FUqa9e3M0scgiMA8+nkGNWHPgj8rlxwgL7M3xZmzW48=
modernc.org/z v1.2.15/go.mod h1:asLtzYenkL9N3CqFCr2J75XOpN5RpeaoiRe7PwuNjgs=

View File

@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux || darwin || freebsd
// +build linux darwin freebsd
//go:build darwin
// +build darwin
package libc2 // import "modernc.org/sqlite/internal/libc2"

View File

@@ -132,7 +132,6 @@ const (
FD_SETSIZE = 256
FFILESYNC = 0x0020
FILENAME_MAX = 1024
FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
FPARSELN_UNESCALL = 0x0f
FPARSELN_UNESCCOMM = 0x04
@@ -738,7 +737,6 @@ const (
X_AMD64_INT_MWGWTYPES_H_ = 0
X_AMD64_INT_TYPES_H_ = 0
X_AMD64_WCHAR_LIMITS_H_ = 0
X_ANSI_STDARG_H_ = 0
X_BIG_ENDIAN = 4321
X_BSD_INT16_T_ = 0
X_BSD_INT32_T_ = 0
@@ -772,8 +770,6 @@ const (
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_FTS5_H = 0
X_GCC_PTRDIFF_T = 0
X_GCC_WCHAR_T = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
@@ -954,7 +950,6 @@ const (
X_SC_VERSION = 8
X_SC_XOPEN_SHM = 30
X_SQLITE3RTREE_H_ = 0
X_STDARG_H = 0
X_STDIO_H_ = 0
X_STDLIB_H_ = 0
X_STRINGS_H_ = 0
@@ -972,14 +967,11 @@ const (
X_SYS_ERRNO_H_ = 0
X_SYS_FD_SET_H_ = 0
X_SYS_NULL_H_ = 0
X_SYS_STDARG_H_ = 0
X_SYS_STDINT_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS_UNISTD_H_ = 0
X_UNISTD_H_ = 0
X_VA_LIST = 0
X_VA_LIST_ = 0
X_VA_LIST_DEFINED = 0
X_VA_LIST_T_H = 0
X_X86_64_BSWAP_H_ = 0
X_X86_64_CDEFS_H_ = 0
X_X86_64_TYPES_H_ = 0
@@ -992,25 +984,66 @@ type size_t = uint64 /* <builtin>:9:23 */
type wchar_t = int32 /* <builtin>:15:24 */
// Define the standard macros for the user,
// if this invocation was from the user program.
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Define va_list, if desired, from __gnuc_va_list.
// We deliberately do not define va_list when called from
// stdio.h, because ANSI C says that stdio.h is not supposed to define
// va_list. stdio.h needs to have access to that data type,
// but must not use that name. It should use the name __gnuc_va_list,
// which is safe because it is reserved for the implementation.
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// The macro _VA_LIST_ is the same thing used by this file in Ultrix.
// But on BSD NET2 we must not test or define or undef it.
// (Note that the comments in NET 2's ansi.h
// are incorrect for _VA_LIST_--see stdio.h!)
// The macro _VA_LIST_DEFINED is used in Windows NT 3.5
// The macro _VA_LIST is used in SCO Unix 3.2.
// The macro _VA_LIST_T_H is used in the Bull dpx2
// The macro __va_list__ is used by BeOS.
type va_list = uintptr /* stdarg.h:99:24 */
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
// _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
// _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
// _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
// _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
//
// NetBSD macros:
// _NETBSD_SOURCE == 1 Make all NetBSD features available.
//
// If more than one of these "major" feature-test macros is defined,
// then the set of facilities provided (and namespace used) is the
// union of that specified by the relevant standards, and in case of
// conflict, the earlier standard in the above list has precedence (so
// if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
// of rename() that's used is the POSIX one). If none of the "major"
// feature-test macros is defined, _NETBSD_SOURCE is assumed.
//
// There are also "minor" feature-test macros, which enable extra
// functionality in addition to some base standard. They should be
// defined along with one of the "major" macros. The "minor" macros
// are:
//
// _REENTRANT
// _ISOC99_SOURCE
// _ISOC11_SOURCE
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
type va_list = uintptr /* stdarg.h:53:19 */
// CAPI3REF: 64-Bit Integer Types
// KEYWORDS: sqlite_int64 sqlite_uint64
@@ -3083,7 +3116,7 @@ type fts5_api1 = struct {
//
// FTS5 EXTENSION REGISTRATION API
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */
type ssize_t = int64 /* stdio.h:63:23 */
type ssize_t = int64 /* stdio.h:49:23 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -3103,7 +3136,7 @@ type __sfpos = struct {
__mbstateL int64
_ [120]byte
}
} /* stdio.h:81:9 */
} /* stdio.h:67:9 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -3113,7 +3146,7 @@ type __sfpos = struct {
// This is fairly grotesque, but pure ANSI code must not inspect the
// innards of an fpos_t anyway. The library internally uses off_t,
// which we assume is exactly as big as eight chars.
type fpos_t = __sfpos /* stdio.h:84:3 */
type fpos_t = __sfpos /* stdio.h:70:3 */
// NB: to fit things in six character monocase externals, the stdio
// code uses the prefix `__s' for stdio objects, typically followed
@@ -3124,7 +3157,7 @@ type __sbuf = struct {
_base uintptr
_size int32
_ [4]byte
} /* stdio.h:95:1 */
} /* stdio.h:81:1 */
// stdio state variables.
//
@@ -3183,7 +3216,7 @@ type __sFILE = struct {
_blksize int32
_ [4]byte
_offset int64
} /* stdio.h:126:9 */
} /* stdio.h:112:9 */
// stdio state variables.
//
@@ -3209,12 +3242,12 @@ type __sFILE = struct {
// _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
//
// NB: see WARNING above before changing the layout of this structure!
type FILE = __sFILE /* stdio.h:160:3 */
type FILE = __sFILE /* stdio.h:146:3 */
// X/Open CAE Specification Issue 5 Version 2
type off_t = int64 /* stdio.h:390:18 */
type off_t = int64 /* stdio.h:376:18 */
type locale_t = uintptr /* stdio.h:557:25 */
type locale_t = uintptr /* stdio.h:543:25 */
// __cpu_simple_lock_t used to be a full word.
@@ -3314,26 +3347,26 @@ type locale_t = uintptr /* stdio.h:557:25 */
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
type int8_t = int8 /* types.h:63:18 */
type int8_t = int8 /* types.h:54:18 */
type uint8_t = uint8 /* types.h:68:19 */
type uint8_t = uint8 /* types.h:59:19 */
type int16_t = int16 /* types.h:73:19 */
type int16_t = int16 /* types.h:64:19 */
type uint16_t = uint16 /* types.h:78:20 */
type uint16_t = uint16 /* types.h:69:20 */
type int32_t = int32 /* types.h:83:19 */
type int32_t = int32 /* types.h:74:19 */
type uint32_t = uint32 /* types.h:88:20 */
type uint32_t = uint32 /* types.h:79:20 */
type int64_t = int64 /* types.h:93:19 */
type int64_t = int64 /* types.h:84:19 */
type uint64_t = uint64 /* types.h:98:20 */
type uint64_t = uint64 /* types.h:89:20 */
type u_int8_t = uint8_t /* types.h:102:18 */
type u_int16_t = uint16_t /* types.h:103:18 */
type u_int32_t = uint32_t /* types.h:104:18 */
type u_int64_t = uint64_t /* types.h:105:18 */
type u_int8_t = uint8_t /* types.h:93:18 */
type u_int16_t = uint16_t /* types.h:94:18 */
type u_int32_t = uint32_t /* types.h:95:18 */
type u_int64_t = uint64_t /* types.h:96:18 */
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
@@ -3496,15 +3529,6 @@ type u_int64_t = uint64_t /* types.h:105:18 */
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/usr/include/sys/types.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
// -
@@ -3753,19 +3777,19 @@ type uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
type intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
type uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
type u_char = uint8 /* types.h:110:23 */
type u_short = uint16 /* types.h:111:24 */
type u_int = uint32 /* types.h:112:22 */
type u_long = uint64 /* types.h:113:23 */
type u_char = uint8 /* types.h:101:23 */
type u_short = uint16 /* types.h:102:24 */
type u_int = uint32 /* types.h:103:22 */
type u_long = uint64 /* types.h:104:23 */
type unchar = uint8 /* types.h:115:23 */ // Sys V compatibility
type ushort = uint16 /* types.h:116:24 */ // Sys V compatibility
type uint = uint32 /* types.h:117:22 */ // Sys V compatibility
type ulong = uint64 /* types.h:118:23 */ // Sys V compatibility
type unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
type ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
type uint = uint32 /* types.h:108:22 */ // Sys V compatibility
type ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
type u_quad_t = uint64_t /* types.h:121:18 */ // quads
type quad_t = int64_t /* types.h:122:18 */
type qaddr_t = uintptr /* types.h:123:16 */
type u_quad_t = uint64_t /* types.h:112:18 */ // quads
type quad_t = int64_t /* types.h:113:18 */
type qaddr_t = uintptr /* types.h:114:16 */
// The types longlong_t and u_longlong_t exist for use with the
// Sun-derived XDR routines involving these types, and their usage
@@ -3775,59 +3799,59 @@ type qaddr_t = uintptr /* types.h:123:16 */
// respectively. Portable programs that need 64-bit types should use
// the C99 types int64_t and uint64_t instead.
type longlong_t = int64_t /* types.h:135:18 */ // for XDR
type u_longlong_t = uint64_t /* types.h:136:18 */ // for XDR
type longlong_t = int64_t /* types.h:126:18 */ // for XDR
type u_longlong_t = uint64_t /* types.h:127:18 */ // for XDR
type blkcnt_t = int64_t /* types.h:138:18 */ // fs block count
type blksize_t = int32_t /* types.h:139:18 */ // fs optimal block size
type blkcnt_t = int64_t /* types.h:129:18 */ // fs block count
type blksize_t = int32_t /* types.h:130:18 */ // fs optimal block size
type fsblkcnt_t = uint64 /* types.h:142:22 */ // fs block count (statvfs)
type fsblkcnt_t = uint64 /* types.h:133:22 */ // fs block count (statvfs)
type fsfilcnt_t = uint64 /* types.h:147:22 */ // fs file count
type fsfilcnt_t = uint64 /* types.h:138:22 */ // fs file count
// We don't and shouldn't use caddr_t in the kernel anymore
type caddr_t = uintptr /* types.h:154:19 */ // core address
type caddr_t = uintptr /* types.h:145:19 */ // core address
type daddr_t = int64_t /* types.h:163:18 */ // disk address
type daddr_t = int64_t /* types.h:154:18 */ // disk address
type dev_t = uint64_t /* types.h:166:18 */ // device number
type fixpt_t = uint32_t /* types.h:167:18 */ // fixed point number
type dev_t = uint64_t /* types.h:157:18 */ // device number
type fixpt_t = uint32_t /* types.h:158:18 */ // fixed point number
type gid_t = uint32 /* types.h:170:18 */ // group id
type gid_t = uint32 /* types.h:161:18 */ // group id
type id_t = uint32_t /* types.h:174:18 */ // group id, process id or user id
type ino_t = uint64_t /* types.h:175:18 */ // inode number
type key_t = int64 /* types.h:176:15 */ // IPC key (for Sys V IPC)
type id_t = uint32_t /* types.h:165:18 */ // group id, process id or user id
type ino_t = uint64_t /* types.h:166:18 */ // inode number
type key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
type mode_t = uint32 /* types.h:179:18 */ // permissions
type mode_t = uint32 /* types.h:170:18 */ // permissions
type nlink_t = uint32_t /* types.h:183:18 */ // link count
type nlink_t = uint32_t /* types.h:174:18 */ // link count
type pid_t = int32 /* types.h:191:18 */ // process id
type lwpid_t = int32_t /* types.h:194:18 */ // LWP id
type rlim_t = uint64_t /* types.h:195:18 */ // resource limit
type segsz_t = int32_t /* types.h:196:18 */ // segment size
type swblk_t = int32_t /* types.h:197:18 */ // swap offset
type pid_t = int32 /* types.h:182:18 */ // process id
type lwpid_t = int32_t /* types.h:185:18 */ // LWP id
type rlim_t = uint64_t /* types.h:186:18 */ // resource limit
type segsz_t = int32_t /* types.h:187:18 */ // segment size
type swblk_t = int32_t /* types.h:188:18 */ // swap offset
type uid_t = uint32 /* types.h:200:18 */ // user id
type uid_t = uint32 /* types.h:191:18 */ // user id
type mqd_t = int32 /* types.h:204:14 */
type mqd_t = int32 /* types.h:195:14 */
type cpuid_t = uint64 /* types.h:206:23 */
type cpuid_t = uint64 /* types.h:197:23 */
type psetid_t = int32 /* types.h:208:14 */
type psetid_t = int32 /* types.h:199:14 */
type clock_t = uint32 /* types.h:277:24 */
type clock_t = uint32 /* types.h:268:24 */
type time_t = int64 /* types.h:306:23 */
type time_t = int64 /* types.h:289:23 */
type clockid_t = int32 /* types.h:311:26 */
type clockid_t = int32 /* types.h:294:26 */
type timer_t = int32 /* types.h:316:24 */
type timer_t = int32 /* types.h:299:24 */
type suseconds_t = int32 /* types.h:321:27 */
type suseconds_t = int32 /* types.h:304:27 */
type useconds_t = uint32 /* types.h:326:26 */
type useconds_t = uint32 /* types.h:309:26 */
// 32 = 2 ^ 5
@@ -3845,9 +3869,9 @@ type fd_set = fd_set1 /* fd_set.h:68:3 */
// Expose our internals if we are not required to hide them.
type kauth_cred_t = uintptr /* types.h:335:27 */
type kauth_cred_t = uintptr /* types.h:318:27 */
type pri_t = int32 /* types.h:337:13 */
type pri_t = int32 /* types.h:320:13 */
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
@@ -4002,22 +4026,22 @@ type pthread_key_t = int32 /* pthread_types.h:88:13 *
type div_t = struct {
quot int32
rem int32
} /* stdlib.h:76:3 */
} /* stdlib.h:59:3 */
type ldiv_t = struct {
quot int64
rem int64
} /* stdlib.h:81:3 */
} /* stdlib.h:64:3 */
type lldiv_t = struct {
quot int64
rem int64
} /* stdlib.h:91:3 */
} /* stdlib.h:74:3 */
type qdiv_t = struct {
quot quad_t
rem quad_t
} /* stdlib.h:98:3 */
} /* stdlib.h:81:3 */
// The suffix to append to the child command lines, if any
@@ -4215,7 +4239,7 @@ func errorMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:215:
var zMsg uintptr
// var zPrefix [30]int8 at bp+8, 30
ap = va
(ap) = va
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+8 /* "%s:ERROR: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
@@ -4241,7 +4265,7 @@ func fatalError(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:241:13
var zMsg uintptr
// var zPrefix [30]int8 at bp+8, 30
ap = va
(ap) = va
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+19 /* "%s:FATAL: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
@@ -4278,7 +4302,7 @@ func logMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:276:13
var zMsg uintptr
// var zPrefix [30]int8 at bp+8, 30
ap = va
(ap) = va
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+60 /* "%s: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
@@ -4370,7 +4394,7 @@ func prepareSql(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* mptest.
var zSql uintptr
var rc int32
*(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)) = uintptr(0)
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
rc = sqlite3.Xsqlite3_prepare_v2(tls, g.db, zSql, -1, bp+16 /* &pStmt */, uintptr(0))
@@ -4391,7 +4415,7 @@ func runSql(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:377:13: */
_ = ap
var zSql uintptr
var rc int32
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0))
@@ -4407,7 +4431,7 @@ func trySql(tls *libc.TLS, zFormat uintptr, va uintptr) int32 { /* mptest.c:394:
_ = ap
var zSql uintptr
var rc int32
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0))
@@ -4515,7 +4539,7 @@ func evalSql(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* m
var zSql uintptr
var rc int32
*(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */)) = uintptr(0)
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap

File diff suppressed because one or more lines are too long

View File

@@ -104796,7 +104796,6 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
goto __4
goto __6
__6:
}
}
@@ -160258,7 +160257,6 @@ __15:
goto __14
goto __16
__16:
}
// This is a helper function for rbuObjIterCacheTableInfo(). It populates

File diff suppressed because one or more lines are too long

View File

@@ -105309,7 +105309,6 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
goto __4
goto __6
__6:
}
}
@@ -161220,7 +161219,6 @@ __15:
goto __14
goto __16
__16:
}
// This is a helper function for rbuObjIterCacheTableInfo(). It populates

File diff suppressed because one or more lines are too long

View File

@@ -33,7 +33,6 @@ const (
FD_SETSIZE = 256
FFILESYNC = 0x0020
FILENAME_MAX = 1024
FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
FPARSELN_UNESCALL = 0x0f
FPARSELN_UNESCCOMM = 0x04
@@ -639,7 +638,6 @@ const (
X_AMD64_INT_MWGWTYPES_H_ = 0
X_AMD64_INT_TYPES_H_ = 0
X_AMD64_WCHAR_LIMITS_H_ = 0
X_ANSI_STDARG_H_ = 0
X_BIG_ENDIAN = 4321
X_BSD_INT16_T_ = 0
X_BSD_INT32_T_ = 0
@@ -672,8 +670,6 @@ const (
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_FTS5_H = 0
X_GCC_PTRDIFF_T = 0
X_GCC_WCHAR_T = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
@@ -854,7 +850,6 @@ const (
X_SC_VERSION = 8
X_SC_XOPEN_SHM = 30
X_SQLITE3RTREE_H_ = 0
X_STDARG_H = 0
X_STDIO_H_ = 0
X_STDLIB_H_ = 0
X_STRINGS_H_ = 0
@@ -871,14 +866,11 @@ const (
X_SYS_ENDIAN_H_ = 0
X_SYS_FD_SET_H_ = 0
X_SYS_NULL_H_ = 0
X_SYS_STDARG_H_ = 0
X_SYS_STDINT_H_ = 0
X_SYS_TYPES_H_ = 0
X_SYS_UNISTD_H_ = 0
X_UNISTD_H_ = 0
X_VA_LIST = 0
X_VA_LIST_ = 0
X_VA_LIST_DEFINED = 0
X_VA_LIST_T_H = 0
X_X86_64_BSWAP_H_ = 0
X_X86_64_CDEFS_H_ = 0
X_X86_64_TYPES_H_ = 0
@@ -896,25 +888,66 @@ type wchar_t = int32 /* <builtin>:15:24 */
// The available command-line options are described below:
var zHelp = *(*[2206]int8)(unsafe.Pointer(ts /* "Usage: %s [--opt..." */)) /* speedtest1.c:6:19 */
// Define the standard macros for the user,
// if this invocation was from the user program.
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
// Define va_list, if desired, from __gnuc_va_list.
// We deliberately do not define va_list when called from
// stdio.h, because ANSI C says that stdio.h is not supposed to define
// va_list. stdio.h needs to have access to that data type,
// but must not use that name. It should use the name __gnuc_va_list,
// which is safe because it is reserved for the implementation.
// Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
// Public domain.
//
// NOTE: Do not protect this header against multiple inclusion. Doing
// so can have subtle side-effects due to header file inclusion order
// and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
// protect each CPP macro that we want to supply.
// The macro _VA_LIST_ is the same thing used by this file in Ultrix.
// But on BSD NET2 we must not test or define or undef it.
// (Note that the comments in NET 2's ansi.h
// are incorrect for _VA_LIST_--see stdio.h!)
// The macro _VA_LIST_DEFINED is used in Windows NT 3.5
// The macro _VA_LIST is used in SCO Unix 3.2.
// The macro _VA_LIST_T_H is used in the Bull dpx2
// The macro __va_list__ is used by BeOS.
type va_list = uintptr /* stdarg.h:99:24 */
// Feature-test macros are defined by several standards, and allow an
// application to specify what symbols they want the system headers to
// expose, and hence what standard they want them to conform to.
// There are two classes of feature-test macros. The first class
// specify complete standards, and if one of these is defined, header
// files will try to conform to the relevant standard. They are:
//
// ANSI macros:
// _ANSI_SOURCE ANSI C89
//
// POSIX macros:
// _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
// _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
// _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
// _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
// _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
// _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
// _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
//
// X/Open macros:
// _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
// _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
// _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
// _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
// _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
// _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
//
// NetBSD macros:
// _NETBSD_SOURCE == 1 Make all NetBSD features available.
//
// If more than one of these "major" feature-test macros is defined,
// then the set of facilities provided (and namespace used) is the
// union of that specified by the relevant standards, and in case of
// conflict, the earlier standard in the above list has precedence (so
// if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
// of rename() that's used is the POSIX one). If none of the "major"
// feature-test macros is defined, _NETBSD_SOURCE is assumed.
//
// There are also "minor" feature-test macros, which enable extra
// functionality in addition to some base standard. They should be
// defined along with one of the "major" macros. The "minor" macros
// are:
//
// _REENTRANT
// _ISOC99_SOURCE
// _ISOC11_SOURCE
// _LARGEFILE_SOURCE Large File Support
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
type va_list = uintptr /* stdarg.h:53:19 */
// CAPI3REF: 64-Bit Integer Types
// KEYWORDS: sqlite_int64 sqlite_uint64
@@ -2987,7 +3020,7 @@ type fts5_api1 = struct {
//
// FTS5 EXTENSION REGISTRATION API
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */
type ssize_t = int64 /* stdio.h:63:23 */
type ssize_t = int64 /* stdio.h:49:23 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -3007,7 +3040,7 @@ type __sfpos = struct {
__mbstateL int64
_ [120]byte
}
} /* stdio.h:81:9 */
} /* stdio.h:67:9 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@@ -3017,7 +3050,7 @@ type __sfpos = struct {
// This is fairly grotesque, but pure ANSI code must not inspect the
// innards of an fpos_t anyway. The library internally uses off_t,
// which we assume is exactly as big as eight chars.
type fpos_t = __sfpos /* stdio.h:84:3 */
type fpos_t = __sfpos /* stdio.h:70:3 */
// NB: to fit things in six character monocase externals, the stdio
// code uses the prefix `__s' for stdio objects, typically followed
@@ -3028,7 +3061,7 @@ type __sbuf = struct {
_base uintptr
_size int32
_ [4]byte
} /* stdio.h:95:1 */
} /* stdio.h:81:1 */
// stdio state variables.
//
@@ -3087,7 +3120,7 @@ type __sFILE = struct {
_blksize int32
_ [4]byte
_offset int64
} /* stdio.h:126:9 */
} /* stdio.h:112:9 */
// stdio state variables.
//
@@ -3113,12 +3146,12 @@ type __sFILE = struct {
// _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
//
// NB: see WARNING above before changing the layout of this structure!
type FILE = __sFILE /* stdio.h:160:3 */
type FILE = __sFILE /* stdio.h:146:3 */
// X/Open CAE Specification Issue 5 Version 2
type off_t = int64 /* stdio.h:390:18 */
type off_t = int64 /* stdio.h:376:18 */
type locale_t = uintptr /* stdio.h:557:25 */
type locale_t = uintptr /* stdio.h:543:25 */
// __cpu_simple_lock_t used to be a full word.
@@ -3218,26 +3251,26 @@ type locale_t = uintptr /* stdio.h:557:25 */
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
type int8_t = int8 /* types.h:63:18 */
type int8_t = int8 /* types.h:54:18 */
type uint8_t = uint8 /* types.h:68:19 */
type uint8_t = uint8 /* types.h:59:19 */
type int16_t = int16 /* types.h:73:19 */
type int16_t = int16 /* types.h:64:19 */
type uint16_t = uint16 /* types.h:78:20 */
type uint16_t = uint16 /* types.h:69:20 */
type int32_t = int32 /* types.h:83:19 */
type int32_t = int32 /* types.h:74:19 */
type uint32_t = uint32 /* types.h:88:20 */
type uint32_t = uint32 /* types.h:79:20 */
type int64_t = int64 /* types.h:93:19 */
type int64_t = int64 /* types.h:84:19 */
type uint64_t = uint64 /* types.h:98:20 */
type uint64_t = uint64 /* types.h:89:20 */
type u_int8_t = uint8_t /* types.h:102:18 */
type u_int16_t = uint16_t /* types.h:103:18 */
type u_int32_t = uint32_t /* types.h:104:18 */
type u_int64_t = uint64_t /* types.h:105:18 */
type u_int8_t = uint8_t /* types.h:93:18 */
type u_int16_t = uint16_t /* types.h:94:18 */
type u_int32_t = uint32_t /* types.h:95:18 */
type u_int64_t = uint64_t /* types.h:96:18 */
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
@@ -3400,15 +3433,6 @@ type u_int64_t = uint64_t /* types.h:105:18 */
//
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/usr/include/sys/types.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
// -
@@ -3657,19 +3681,19 @@ type uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
type intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
type uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
type u_char = uint8 /* types.h:110:23 */
type u_short = uint16 /* types.h:111:24 */
type u_int = uint32 /* types.h:112:22 */
type u_long = uint64 /* types.h:113:23 */
type u_char = uint8 /* types.h:101:23 */
type u_short = uint16 /* types.h:102:24 */
type u_int = uint32 /* types.h:103:22 */
type u_long = uint64 /* types.h:104:23 */
type unchar = uint8 /* types.h:115:23 */ // Sys V compatibility
type ushort = uint16 /* types.h:116:24 */ // Sys V compatibility
type uint = uint32 /* types.h:117:22 */ // Sys V compatibility
type ulong = uint64 /* types.h:118:23 */ // Sys V compatibility
type unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
type ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
type uint = uint32 /* types.h:108:22 */ // Sys V compatibility
type ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
type u_quad_t = uint64_t /* types.h:121:18 */ // quads
type quad_t = int64_t /* types.h:122:18 */
type qaddr_t = uintptr /* types.h:123:16 */
type u_quad_t = uint64_t /* types.h:112:18 */ // quads
type quad_t = int64_t /* types.h:113:18 */
type qaddr_t = uintptr /* types.h:114:16 */
// The types longlong_t and u_longlong_t exist for use with the
// Sun-derived XDR routines involving these types, and their usage
@@ -3679,59 +3703,59 @@ type qaddr_t = uintptr /* types.h:123:16 */
// respectively. Portable programs that need 64-bit types should use
// the C99 types int64_t and uint64_t instead.
type longlong_t = int64_t /* types.h:135:18 */ // for XDR
type u_longlong_t = uint64_t /* types.h:136:18 */ // for XDR
type longlong_t = int64_t /* types.h:126:18 */ // for XDR
type u_longlong_t = uint64_t /* types.h:127:18 */ // for XDR
type blkcnt_t = int64_t /* types.h:138:18 */ // fs block count
type blksize_t = int32_t /* types.h:139:18 */ // fs optimal block size
type blkcnt_t = int64_t /* types.h:129:18 */ // fs block count
type blksize_t = int32_t /* types.h:130:18 */ // fs optimal block size
type fsblkcnt_t = uint64 /* types.h:142:22 */ // fs block count (statvfs)
type fsblkcnt_t = uint64 /* types.h:133:22 */ // fs block count (statvfs)
type fsfilcnt_t = uint64 /* types.h:147:22 */ // fs file count
type fsfilcnt_t = uint64 /* types.h:138:22 */ // fs file count
// We don't and shouldn't use caddr_t in the kernel anymore
type caddr_t = uintptr /* types.h:154:19 */ // core address
type caddr_t = uintptr /* types.h:145:19 */ // core address
type daddr_t = int64_t /* types.h:163:18 */ // disk address
type daddr_t = int64_t /* types.h:154:18 */ // disk address
type dev_t = uint64_t /* types.h:166:18 */ // device number
type fixpt_t = uint32_t /* types.h:167:18 */ // fixed point number
type dev_t = uint64_t /* types.h:157:18 */ // device number
type fixpt_t = uint32_t /* types.h:158:18 */ // fixed point number
type gid_t = uint32 /* types.h:170:18 */ // group id
type gid_t = uint32 /* types.h:161:18 */ // group id
type id_t = uint32_t /* types.h:174:18 */ // group id, process id or user id
type ino_t = uint64_t /* types.h:175:18 */ // inode number
type key_t = int64 /* types.h:176:15 */ // IPC key (for Sys V IPC)
type id_t = uint32_t /* types.h:165:18 */ // group id, process id or user id
type ino_t = uint64_t /* types.h:166:18 */ // inode number
type key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
type mode_t = uint32 /* types.h:179:18 */ // permissions
type mode_t = uint32 /* types.h:170:18 */ // permissions
type nlink_t = uint32_t /* types.h:183:18 */ // link count
type nlink_t = uint32_t /* types.h:174:18 */ // link count
type pid_t = int32 /* types.h:191:18 */ // process id
type lwpid_t = int32_t /* types.h:194:18 */ // LWP id
type rlim_t = uint64_t /* types.h:195:18 */ // resource limit
type segsz_t = int32_t /* types.h:196:18 */ // segment size
type swblk_t = int32_t /* types.h:197:18 */ // swap offset
type pid_t = int32 /* types.h:182:18 */ // process id
type lwpid_t = int32_t /* types.h:185:18 */ // LWP id
type rlim_t = uint64_t /* types.h:186:18 */ // resource limit
type segsz_t = int32_t /* types.h:187:18 */ // segment size
type swblk_t = int32_t /* types.h:188:18 */ // swap offset
type uid_t = uint32 /* types.h:200:18 */ // user id
type uid_t = uint32 /* types.h:191:18 */ // user id
type mqd_t = int32 /* types.h:204:14 */
type mqd_t = int32 /* types.h:195:14 */
type cpuid_t = uint64 /* types.h:206:23 */
type cpuid_t = uint64 /* types.h:197:23 */
type psetid_t = int32 /* types.h:208:14 */
type psetid_t = int32 /* types.h:199:14 */
type clock_t = uint32 /* types.h:277:24 */
type clock_t = uint32 /* types.h:268:24 */
type time_t = int64 /* types.h:306:23 */
type time_t = int64 /* types.h:289:23 */
type clockid_t = int32 /* types.h:311:26 */
type clockid_t = int32 /* types.h:294:26 */
type timer_t = int32 /* types.h:316:24 */
type timer_t = int32 /* types.h:299:24 */
type suseconds_t = int32 /* types.h:321:27 */
type suseconds_t = int32 /* types.h:304:27 */
type useconds_t = uint32 /* types.h:326:26 */
type useconds_t = uint32 /* types.h:309:26 */
// 32 = 2 ^ 5
@@ -3749,9 +3773,9 @@ type fd_set = fd_set1 /* fd_set.h:68:3 */
// Expose our internals if we are not required to hide them.
type kauth_cred_t = uintptr /* types.h:335:27 */
type kauth_cred_t = uintptr /* types.h:318:27 */
type pri_t = int32 /* types.h:337:13 */
type pri_t = int32 /* types.h:320:13 */
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
@@ -3906,22 +3930,22 @@ type pthread_key_t = int32 /* pthread_types.h:88:13 *
type div_t = struct {
quot int32
rem int32
} /* stdlib.h:76:3 */
} /* stdlib.h:59:3 */
type ldiv_t = struct {
quot int64
rem int64
} /* stdlib.h:81:3 */
} /* stdlib.h:64:3 */
type lldiv_t = struct {
quot int64
rem int64
} /* stdlib.h:91:3 */
} /* stdlib.h:74:3 */
type qdiv_t = struct {
quot quad_t
rem quad_t
} /* stdlib.h:98:3 */ // getsubopt(3) external variable
} /* stdlib.h:81:3 */ // getsubopt(3) external variable
type u64 = sqlite3_uint64 /* speedtest1.c:67:24 */
@@ -3984,7 +4008,7 @@ func isTemp(tls *libc.TLS, N int32) uintptr { /* speedtest1.c:113:19: */
func fatal_error(tls *libc.TLS, zMsg uintptr, va uintptr) { /* speedtest1.c:118:13: */
var ap va_list
_ = ap
ap = va
(ap) = va
libc.Xvfprintf(tls, (uintptr(unsafe.Pointer(&libc.X__sF)) + 2*152), zMsg, ap)
_ = ap
libc.Xexit(tls, 1)
@@ -4141,12 +4165,16 @@ func speedtest1_timestamp(tls *libc.TLS) sqlite3_int64 { /* speedtest1.c:257:15:
clockVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
}
if ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).iVersion >= 2) && ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64 != uintptr(0)) {
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, clockVfs, bp /* &t */)
(*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64})).f(tls, clockVfs, bp /* &t */)
} else {
// var r float64 at bp+8, 8
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 120 /* &.xCurrentTime */))))(tls, clockVfs, bp+8 /* &r */)
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (sqlite3_int64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
(*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTime})).f(tls, clockVfs, bp+8 /* &r */)
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
}
return *(*sqlite3_int64)(unsafe.Pointer(bp /* t */))
}
@@ -4266,7 +4294,7 @@ func speedtest1_begin_test(tls *libc.TLS, iTestNum int32, zTestName uintptr, va
var zName uintptr
var ap va_list
_ = ap
ap = va
(ap) = va
zName = sqlite3.Xsqlite3_vmprintf(tls, zTestName, ap)
_ = ap
n = int32(libc.Xstrlen(tls, zName))
@@ -4367,7 +4395,7 @@ func speedtest1_exec(tls *libc.TLS, zFormat uintptr, va uintptr) { /* speedtest1
var ap va_list
_ = ap
var zSql uintptr
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
if g.bSqlOnly != 0 {
@@ -4399,7 +4427,7 @@ func speedtest1_once(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* sp
// var pStmt uintptr at bp+16, 8
var zResult uintptr = uintptr(0)
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
if g.bSqlOnly != 0 {
@@ -4430,7 +4458,7 @@ func speedtest1_prepare(tls *libc.TLS, zFormat uintptr, va uintptr) { /* speedte
var ap va_list
_ = ap
var zSql uintptr
ap = va
(ap) = va
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
_ = ap
if g.bSqlOnly != 0 {