mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 19:52:26 -05:00
[chore]: Bump modernc.org/sqlite from 1.21.1 to 1.22.0 (#1711)
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.21.1 to 1.22.0. - [Release notes](https://gitlab.com/cznic/sqlite/tags) - [Commits](https://gitlab.com/cznic/sqlite/compare/v1.21.1...v1.22.0) --- updated-dependencies: - dependency-name: modernc.org/sqlite dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
fd3bf9284d
commit
49395f2464
6 changed files with 216 additions and 9 deletions
10
vendor/modernc.org/libc/libc_openbsd.go
generated
vendored
10
vendor/modernc.org/libc/libc_openbsd.go
generated
vendored
|
|
@ -1468,8 +1468,16 @@ func X__inet_ntoa(t *TLS, in1 in.In_addr) uintptr {
|
|||
}
|
||||
|
||||
func Xmmap(t *TLS, addr uintptr, length types.Size_t, prot, flags, fd int32, offset types.Off_t) uintptr {
|
||||
// On 2021-12-23, a new syscall for mmap was introduced:
|
||||
//
|
||||
// 49 STD NOLOCK { void *sys_mmap(void *addr, size_t len, int prot, \
|
||||
// int flags, int fd, off_t pos); }
|
||||
// src: https://github.com/golang/go/issues/59661
|
||||
|
||||
const unix_SYS_MMAP = 49
|
||||
|
||||
// Cannot avoid the syscall here, addr sometimes matter.
|
||||
data, _, err := unix.Syscall6(unix.SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
|
||||
data, _, err := unix.Syscall6(unix_SYS_MMAP, addr, uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
|
||||
if err != 0 {
|
||||
if dmesgs {
|
||||
dmesg("%v: %v FAIL", origin(1), err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue