mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 00:52:24 -05:00
[chore] update to modernc.org/sqlite v1.38.0 with our concurrency workaround (#4256)
see: https://gitlab.com/cznic/sqlite/-/tags/v1.38.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4256 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
d3f2c2c765
commit
4ad17788cd
27 changed files with 88833 additions and 64669 deletions
3
vendor/modernc.org/libc/Makefile
generated
vendored
3
vendor/modernc.org/libc/Makefile
generated
vendored
|
|
@ -35,9 +35,10 @@ edit:
|
|||
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json & fi
|
||||
|
||||
editor:
|
||||
gofmt -l -s -w *.go
|
||||
# gofmt -l -s -w *.go
|
||||
go test -c -o /dev/null
|
||||
go build -o /dev/null -v generator*.go
|
||||
go build -o /dev/null -v genasm.go
|
||||
|
||||
generate: download
|
||||
mkdir -p $(DIR) || true
|
||||
|
|
|
|||
1320
vendor/modernc.org/libc/asm_linux_amd64.go
generated
vendored
Normal file
1320
vendor/modernc.org/libc/asm_linux_amd64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
15647
vendor/modernc.org/libc/asm_linux_amd64.s
generated
vendored
Normal file
15647
vendor/modernc.org/libc/asm_linux_amd64.s
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
6
vendor/modernc.org/libc/build_all_targets.sh
generated
vendored
6
vendor/modernc.org/libc/build_all_targets.sh
generated
vendored
|
|
@ -35,9 +35,9 @@ do
|
|||
echo "GOOS=linux GOARCH=loong64"
|
||||
GOOS=linux GOARCH=loong64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=loong64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=mips64le"
|
||||
GOOS=linux GOARCH=mips64le go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=mips64le go test -tags=$tag -c -o /dev/null
|
||||
# echo "GOOS=linux GOARCH=mips64le"
|
||||
# GOOS=linux GOARCH=mips64le go build -tags=$tag -v ./...
|
||||
# GOOS=linux GOARCH=mips64le go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=ppc64le"
|
||||
GOOS=linux GOARCH=ppc64le go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null
|
||||
|
|
|
|||
88
vendor/modernc.org/libc/libc_windows.go
generated
vendored
88
vendor/modernc.org/libc/libc_windows.go
generated
vendored
|
|
@ -244,10 +244,18 @@ var (
|
|||
procWcsncpy = modcrt.NewProc("wcsncpy")
|
||||
procWcsrchr = modcrt.NewProc("wcsrchr")
|
||||
|
||||
moducrt = windows.NewLazySystemDLL("ucrtbase.dll")
|
||||
procFindfirst32 = moducrt.NewProc("_findfirst32")
|
||||
procFindnext32 = moducrt.NewProc("_findnext32")
|
||||
procStat64i32 = moducrt.NewProc("_stat64i32")
|
||||
moducrt = windows.NewLazySystemDLL("ucrtbase.dll")
|
||||
procFindfirst32 = moducrt.NewProc("_findfirst32")
|
||||
procFindnext32 = moducrt.NewProc("_findnext32")
|
||||
procStat64i32 = moducrt.NewProc("_stat64i32")
|
||||
procWchmod = moducrt.NewProc("_wchmod")
|
||||
procWfindfirst32 = moducrt.NewProc("_wfindfirst32")
|
||||
procWfindfirst64i32 = moducrt.NewProc("_wfindfirst64i32")
|
||||
procWfindnext32 = moducrt.NewProc("_wfindnext32")
|
||||
procWfindnext64i32 = moducrt.NewProc("_wfindnext64i32")
|
||||
procWmkdir = moducrt.NewProc("_wmkdir")
|
||||
procWstat32 = moducrt.NewProc("_wstat32")
|
||||
procWstat64i32 = moducrt.NewProc("_wstat64i32")
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -7775,3 +7783,75 @@ func X_strnicmp(tls *TLS, __Str1 uintptr, __Str2 uintptr, __MaxCount types.Size_
|
|||
func X__builtin_ctz(t *TLS, n uint32) int32 {
|
||||
return int32(mbits.TrailingZeros32(n))
|
||||
}
|
||||
|
||||
// intptr_t _wfindfirst64i32(const wchar_t *filespec, struct _wfinddata64i32_t *fileinfo);
|
||||
func X_wfindfirst64i32(tls *TLS, filespec, fileinfo uintptr) (r types.Intptr_t) {
|
||||
r0, _, err := procWfindfirst64i32.Call(filespec, fileinfo)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return types.Intptr_t(r0)
|
||||
}
|
||||
|
||||
// int _wfindnext64i32(intptr_t handle, struct _wfinddata64i32_t *fileinfo);
|
||||
func X_wfindnext64i32(tls *TLS, handle types.Intptr_t, fileinfo uintptr) (r int32) {
|
||||
r0, _, err := procWfindnext64i32.Call(uintptr(handle), fileinfo)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
// int _wchmod( const wchar_t *filename, int pmode );
|
||||
func X_wchmod(tls *TLS, filename uintptr, pmode int32) (r int32) {
|
||||
r0, _, err := procWchmod.Call(filename, uintptr(pmode))
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
// int _wmkdir(const wchar_t *dirname);
|
||||
func X_wmkdir(tls *TLS, dirname uintptr) (r int32) {
|
||||
r0, _, err := procWmkdir.Call(dirname)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
// int _wstat64i32(const wchar_t *path, struct _stat64i32 *buffer);
|
||||
func X_wstat64i32(tls *TLS, path, buffer uintptr) (r int32) {
|
||||
r0, _, err := procWstat64i32.Call(path, buffer)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
// intptr_t _wfindfirst32(const wchar_t *filespec, struct _wfinddata32_t *fileinfo);
|
||||
func X_wfindfirst32(tls *TLS, filespec, fileinfo uintptr) (r types.Intptr_t) {
|
||||
r0, _, err := procWfindfirst32.Call(filespec, fileinfo)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return types.Intptr_t(r0)
|
||||
}
|
||||
|
||||
// int _wfindnext32(intptr_t handle, struct _wfinddata32_t *fileinfo);
|
||||
func X_wfindnext32(tls *TLS, handle types.Intptr_t, fileinfo uintptr) (r int32) {
|
||||
r0, _, err := procWfindnext32.Call(uintptr(handle), fileinfo)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
||||
// int _wstat32(const wchar_t *path, struct __stat32 *buffer);
|
||||
func X_wstat32(tls *TLS, path, buffer uintptr) (r int32) {
|
||||
r0, _, err := procWstat32.Call(path, buffer)
|
||||
if err != windows.NOERROR {
|
||||
tls.setErrno(int32(err.(windows.Errno)))
|
||||
}
|
||||
return int32(r0)
|
||||
}
|
||||
|
|
|
|||
16
vendor/modernc.org/libc/tls_linux_amd64.go
generated
vendored
Normal file
16
vendor/modernc.org/libc/tls_linux_amd64.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2025 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
func TLSAlloc(p0 *TLS, p1 int) uintptr
|
||||
func TLSFree(p0 *TLS, p1 int)
|
||||
|
||||
func tlsAlloc(tls *TLS, n int) uintptr {
|
||||
return tls.Alloc(n)
|
||||
}
|
||||
|
||||
func tlsFre(tls *TLS, n int) {
|
||||
tls.Free(n)
|
||||
}
|
||||
21
vendor/modernc.org/libc/tls_linux_amd64.s
generated
vendored
Normal file
21
vendor/modernc.org/libc/tls_linux_amd64.s
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Code generated for linux/amd64 by 'genasm []', DO NOT EDIT.
|
||||
|
||||
#include "textflag.h"
|
||||
|
||||
TEXT ·TLSAlloc(SB),$24-24
|
||||
MOVQ p0+0(FP), AX
|
||||
MOVQ AX, 0(SP)
|
||||
MOVQ p1+8(FP), AX
|
||||
MOVQ AX, 8(SP)
|
||||
CALL ·tlsAlloc(SB)
|
||||
MOVQ 16(SP), AX
|
||||
MOVQ AX, ret+16(FP)
|
||||
RET
|
||||
|
||||
TEXT ·TLSFree(SB),$16-16
|
||||
MOVQ p0+0(FP), AX
|
||||
MOVQ AX, 0(SP)
|
||||
MOVQ p1+8(FP), AX
|
||||
MOVQ AX, 8(SP)
|
||||
CALL ·tlsFree(SB)
|
||||
RET
|
||||
Loading…
Add table
Add a link
Reference in a new issue