chore(deps): Update sqlite dependencies

This commit is contained in:
TwiN
2022-12-01 20:19:56 -05:00
parent 080563bd4f
commit cdec353744
564 changed files with 583632 additions and 1166555 deletions

View File

@ -11,6 +11,7 @@ import (
"unsafe"
"modernc.org/libc/errno"
"modernc.org/libc/sys/stat"
"modernc.org/libc/sys/types"
)
@ -288,10 +289,6 @@ func Xsymlink(t *TLS, target, linkpath uintptr) int32 {
// return 0
}
func Xchmod(t *TLS, pathname uintptr, mode int32) int32 {
panic(todo(""))
}
// int utimes(const char *filename, const struct timeval times[2]);
func Xutimes(t *TLS, filename, times uintptr) int32 {
panic(todo(""))
@ -515,27 +512,33 @@ func X_gmtime32(t *TLS, sourceTime uintptr) uintptr {
}
// LONG SetWindowLongW(
// HWND hWnd,
// int nIndex,
// LONG dwNewLong
//
// HWND hWnd,
// int nIndex,
// LONG dwNewLong
//
// );
func XSetWindowLongW(t *TLS, hwnd uintptr, nIndex int32, dwNewLong long) long {
panic(todo(""))
}
// LONG GetWindowLongW(
// HWND hWnd,
// int nIndex
//
// HWND hWnd,
// int nIndex
//
// );
func XGetWindowLongW(t *TLS, hwnd uintptr, nIndex int32) long {
panic(todo(""))
}
// LRESULT LRESULT DefWindowProcW(
// HWND hWnd,
// UINT Msg,
// WPARAM wParam,
// LPARAM lParam
//
// HWND hWnd,
// UINT Msg,
// WPARAM wParam,
// LPARAM lParam
//
// );
func XDefWindowProcW(t *TLS, _ ...interface{}) int32 {
panic(todo(""))
@ -544,3 +547,37 @@ func XDefWindowProcW(t *TLS, _ ...interface{}) int32 {
func XSendMessageTimeoutW(t *TLS, _ ...interface{}) int32 {
panic(todo(""))
}
// int _fstat(
//
// int fd,
// struct __stat *buffer
//
// );
func X_fstat(t *TLS, fd int32, buffer uintptr) int32 {
f, ok := fdToFile(fd)
if !ok {
t.setErrno(EBADF)
return -1
}
var d syscall.ByHandleFileInformation
err := syscall.GetFileInformationByHandle(f.Handle, &d)
if err != nil {
t.setErrno(EBADF)
return -1
}
var bStat32 = (*stat.X_stat32)(unsafe.Pointer(buffer))
var accessTime = int64(d.LastAccessTime.HighDateTime)<<32 + int64(d.LastAccessTime.LowDateTime)
bStat32.Fst_atime = int32(WindowsTickToUnixSeconds(accessTime))
var modTime = int64(d.LastWriteTime.HighDateTime)<<32 + int64(d.LastWriteTime.LowDateTime)
bStat32.Fst_mtime = int32(WindowsTickToUnixSeconds(modTime))
var crTime = int64(d.CreationTime.HighDateTime)<<32 + int64(d.CreationTime.LowDateTime)
bStat32.Fst_ctime = int32(WindowsTickToUnixSeconds(crTime))
var fSz = int64(d.FileSizeHigh)<<32 + int64(d.FileSizeLow)
bStat32.Fst_size = int32(fSz)
bStat32.Fst_mode = WindowsAttrbiutesToStat(d.FileAttributes)
return 0
}