bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)

This commit is contained in:
kim 2025-02-14 16:54:10 +00:00 committed by GitHub
commit ebbdeee0bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
114 changed files with 891873 additions and 192475 deletions

23
vendor/modernc.org/libc/libc_unix.go generated vendored
View file

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build unix && !(linux && (amd64 || arm64 || loong64))
//go:build unix && !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm))
package libc // import "modernc.org/libc"
@ -18,7 +18,6 @@ import (
"strconv"
"strings"
"sync"
"syscall"
"time"
"unsafe"
@ -56,21 +55,21 @@ func Xsignal(t *TLS, signum int32, handler uintptr) uintptr { //TODO use sigacti
signals[signum] = handler
switch handler {
case signal.SIG_DFL:
panic(todo("%v %#x", syscall.Signal(signum), handler))
panic(todo("%v %#x", unix.Signal(signum), handler))
case signal.SIG_IGN:
switch r {
case signal.SIG_DFL:
gosignal.Ignore(syscall.Signal(signum)) //TODO
gosignal.Ignore(unix.Signal(signum)) //TODO
case signal.SIG_IGN:
gosignal.Ignore(syscall.Signal(signum))
gosignal.Ignore(unix.Signal(signum))
default:
panic(todo("%v %#x", syscall.Signal(signum), handler))
panic(todo("%v %#x", unix.Signal(signum), handler))
}
default:
switch r {
case signal.SIG_DFL:
c := make(chan os.Signal, 1)
gosignal.Notify(c, syscall.Signal(signum))
gosignal.Notify(c, unix.Signal(signum))
go func() { //TODO mechanism to stop/cancel
for {
<-c
@ -82,9 +81,9 @@ func Xsignal(t *TLS, signum int32, handler uintptr) uintptr { //TODO use sigacti
}
}()
case signal.SIG_IGN:
panic(todo("%v %#x", syscall.Signal(signum), handler))
panic(todo("%v %#x", unix.Signal(signum), handler))
default:
panic(todo("%v %#x", syscall.Signal(signum), handler))
panic(todo("%v %#x", unix.Signal(signum), handler))
}
}
return r
@ -140,7 +139,11 @@ func Xremove(t *TLS, pathname uintptr) int32 {
if __ccgo_strace {
trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2))
}
panic(todo(""))
if err := os.Remove(GoString(pathname)); err != nil {
t.setErrno(err)
return -1
}
return 0
}
// long pathconf(const char *path, int name);