mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 17:02:25 -06:00
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
This commit is contained in:
parent
879ca2d2f8
commit
ebbdeee0bb
114 changed files with 891873 additions and 192475 deletions
18
vendor/modernc.org/libc/libc_windows_386.go
generated
vendored
18
vendor/modernc.org/libc/libc_windows_386.go
generated
vendored
|
|
@ -5,9 +5,9 @@
|
|||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/windows"
|
||||
"os"
|
||||
"strings"
|
||||
"syscall"
|
||||
gotime "time"
|
||||
"unsafe"
|
||||
|
||||
|
|
@ -235,7 +235,7 @@ func Xlseek64(t *TLS, fd int32, offset types.Off_t, whence int32) types.Off_t {
|
|||
return -1
|
||||
}
|
||||
|
||||
n, err := syscall.Seek(f.Handle, offset, int(whence))
|
||||
n, err := windows.Seek(f.Handle, offset, int(whence))
|
||||
if err != nil {
|
||||
if dmesgs {
|
||||
dmesg("%v: fd %v, off %#x, whence %v: %v", origin(1), f._fd, offset, whenceStr(whence), n)
|
||||
|
|
@ -366,7 +366,7 @@ func Xunlink(t *TLS, pathname uintptr) int32 {
|
|||
if __ccgo_strace {
|
||||
trc("t=%v pathname=%v, (%v:)", t, pathname, origin(2))
|
||||
}
|
||||
err := syscall.DeleteFile((*uint16)(unsafe.Pointer(pathname)))
|
||||
err := windows.DeleteFile((*uint16)(unsafe.Pointer(pathname)))
|
||||
if err != nil {
|
||||
t.setErrno(err)
|
||||
return -1
|
||||
|
|
@ -505,7 +505,7 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr {
|
|||
panic(m)
|
||||
}
|
||||
//TODO- flags |= fcntl.O_LARGEFILE
|
||||
h, err := syscall.Open(GoString(pathname), int(flags), uint32(0666))
|
||||
h, err := windows.Open(GoString(pathname), int(flags), uint32(0666))
|
||||
if err != nil {
|
||||
t.setErrno(err)
|
||||
return 0
|
||||
|
|
@ -515,7 +515,7 @@ func Xfopen64(t *TLS, pathname, mode uintptr) uintptr {
|
|||
if p != 0 {
|
||||
return p
|
||||
}
|
||||
_ = syscall.Close(h)
|
||||
_ = windows.Close(h)
|
||||
t.setErrno(errno.ENOMEM)
|
||||
return 0
|
||||
}
|
||||
|
|
@ -615,8 +615,8 @@ func X_localtime32(_ *TLS, sourceTime uintptr) uintptr {
|
|||
|
||||
// struct tm *_gmtime32( const __time32_t *sourceTime );
|
||||
func X_gmtime32(t *TLS, sourceTime uintptr) uintptr {
|
||||
r0, _, err := syscall.SyscallN(procGmtime32.Addr(), uintptr(sourceTime))
|
||||
if err != 0 {
|
||||
r0, _, err := procGmtime32.Call(uintptr(sourceTime))
|
||||
if err != windows.NOERROR {
|
||||
t.setErrno(err)
|
||||
}
|
||||
return uintptr(r0)
|
||||
|
|
@ -681,8 +681,8 @@ func X_fstat(t *TLS, fd int32, buffer uintptr) int32 {
|
|||
return -1
|
||||
}
|
||||
|
||||
var d syscall.ByHandleFileInformation
|
||||
err := syscall.GetFileInformationByHandle(f.Handle, &d)
|
||||
var d windows.ByHandleFileInformation
|
||||
err := windows.GetFileInformationByHandle(f.Handle, &d)
|
||||
if err != nil {
|
||||
t.setErrno(EBADF)
|
||||
return -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue