mirror of https://github.com/golang/go.git
all: update vendored dependencies
Generated with x/build/cmd/updatestd. For #36905. For #55079. Change-Id: I5ba28993359cb5bbfb1bc7cfcea9576b07fcfb14 Reviewed-on: https://go-review.googlesource.com/c/go/+/502878 Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
54c75b40a2
commit
80629caecb
|
|
@ -6,10 +6,10 @@ require (
|
||||||
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26
|
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26
|
||||||
golang.org/x/arch v0.3.0
|
golang.org/x/arch v0.3.0
|
||||||
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7
|
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7
|
||||||
golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c
|
golang.org/x/sync v0.2.1-0.20230601203510-93782cc822b6
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc
|
golang.org/x/sys v0.9.0
|
||||||
golang.org/x/term v0.8.0
|
golang.org/x/term v0.9.0
|
||||||
golang.org/x/tools v0.9.2-0.20230526183654-5974258e689a
|
golang.org/x/tools v0.9.4-0.20230613194514-c6c983054920
|
||||||
)
|
)
|
||||||
|
|
||||||
require github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2 // indirect
|
require github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2 // indirect
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k=
|
||||||
golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||||
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7 h1:OSEstGpBW1+G0wiXI0bBgOnI8nRJQKX3GCNxF75VR1s=
|
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7 h1:OSEstGpBW1+G0wiXI0bBgOnI8nRJQKX3GCNxF75VR1s=
|
||||||
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
golang.org/x/mod v0.10.1-0.20230606122920-62c7e578f1a7/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||||
golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c h1:w3VOlmQViynAglgPijJYTjrryY2u09i59amSGCFck24=
|
golang.org/x/sync v0.2.1-0.20230601203510-93782cc822b6 h1:kiysxTbHE5FVnrNyc9BC/yeJi3DTUBHIJtNbC9uvXk4=
|
||||||
golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
golang.org/x/sync v0.2.1-0.20230601203510-93782cc822b6/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc h1:p4WpFbnzwh0EhIaGMueCjfMUkyWX6WQcJfxbS7GOQtQ=
|
golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s=
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols=
|
golang.org/x/term v0.9.0 h1:GRRCnKYhdQrD8kfRAdQ6Zcw1P0OcELxGLKJvtjVMZ28=
|
||||||
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo=
|
||||||
golang.org/x/tools v0.9.2-0.20230526183654-5974258e689a h1:czMl6qpiocFoGyqk9BcRHqf9ssTZke6W2+J5LNuKIR0=
|
golang.org/x/tools v0.9.4-0.20230613194514-c6c983054920 h1:FJIPEU9owLOeJgghpx63YhobtkWkORJ3O5ZnbFr8Bzs=
|
||||||
golang.org/x/tools v0.9.2-0.20230526183654-5974258e689a/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
|
golang.org/x/tools v0.9.4-0.20230613194514-c6c983054920/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ if [[ "$GOOS" = "linux" ]]; then
|
||||||
# Use the Docker-based build system
|
# Use the Docker-based build system
|
||||||
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
||||||
$cmd docker build --tag generate:$GOOS $GOOS
|
$cmd docker build --tag generate:$GOOS $GOOS
|
||||||
$cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")/.." && /bin/pwd):/build generate:$GOOS
|
$cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")/.." && pwd):/build generate:$GOOS
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -741,7 +741,8 @@ main(void)
|
||||||
e = errors[i].num;
|
e = errors[i].num;
|
||||||
if(i > 0 && errors[i-1].num == e)
|
if(i > 0 && errors[i-1].num == e)
|
||||||
continue;
|
continue;
|
||||||
strcpy(buf, strerror(e));
|
strncpy(buf, strerror(e), sizeof(buf) - 1);
|
||||||
|
buf[sizeof(buf) - 1] = '\0';
|
||||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||||
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
||||||
buf[0] += a - A;
|
buf[0] += a - A;
|
||||||
|
|
@ -760,7 +761,8 @@ main(void)
|
||||||
e = signals[i].num;
|
e = signals[i].num;
|
||||||
if(i > 0 && signals[i-1].num == e)
|
if(i > 0 && signals[i-1].num == e)
|
||||||
continue;
|
continue;
|
||||||
strcpy(buf, strsignal(e));
|
strncpy(buf, strsignal(e), sizeof(buf) - 1);
|
||||||
|
buf[sizeof(buf) - 1] = '\0';
|
||||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||||
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
||||||
buf[0] += a - A;
|
buf[0] += a - A;
|
||||||
|
|
|
||||||
|
|
@ -1699,12 +1699,23 @@ func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data)
|
return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// elfNT_PRSTATUS is a copy of the debug/elf.NT_PRSTATUS constant so
|
||||||
|
// x/sys/unix doesn't need to depend on debug/elf and thus
|
||||||
|
// compress/zlib, debug/dwarf, and other packages.
|
||||||
|
const elfNT_PRSTATUS = 1
|
||||||
|
|
||||||
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
||||||
return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
|
var iov Iovec
|
||||||
|
iov.Base = (*byte)(unsafe.Pointer(regsout))
|
||||||
|
iov.SetLen(int(unsafe.Sizeof(*regsout)))
|
||||||
|
return ptracePtr(PTRACE_GETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov))
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
|
func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
|
||||||
return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
|
var iov Iovec
|
||||||
|
iov.Base = (*byte)(unsafe.Pointer(regs))
|
||||||
|
iov.SetLen(int(unsafe.Sizeof(*regs)))
|
||||||
|
return ptracePtr(PTRACE_SETREGSET, pid, uintptr(elfNT_PRSTATUS), unsafe.Pointer(&iov))
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceSetOptions(pid int, options int) (err error) {
|
func PtraceSetOptions(pid int, options int) (err error) {
|
||||||
|
|
@ -2420,6 +2431,21 @@ func PthreadSigmask(how int, set, oldset *Sigset_t) error {
|
||||||
return rtSigprocmask(how, set, oldset, _C__NSIG/8)
|
return rtSigprocmask(how, set, oldset, _C__NSIG/8)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb getresuid(ruid *_C_int, euid *_C_int, suid *_C_int)
|
||||||
|
//sysnb getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int)
|
||||||
|
|
||||||
|
func Getresuid() (ruid, euid, suid int) {
|
||||||
|
var r, e, s _C_int
|
||||||
|
getresuid(&r, &e, &s)
|
||||||
|
return int(r), int(e), int(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getresgid() (rgid, egid, sgid int) {
|
||||||
|
var r, e, s _C_int
|
||||||
|
getresgid(&r, &e, &s)
|
||||||
|
return int(r), int(e), int(s)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,21 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb getresuid(ruid *_C_int, euid *_C_int, suid *_C_int)
|
||||||
|
//sysnb getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int)
|
||||||
|
|
||||||
|
func Getresuid() (ruid, euid, suid int) {
|
||||||
|
var r, e, s _C_int
|
||||||
|
getresuid(&r, &e, &s)
|
||||||
|
return int(r), int(e), int(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getresgid() (rgid, egid, sgid int) {
|
||||||
|
var r, e, s _C_int
|
||||||
|
getresgid(&r, &e, &s)
|
||||||
|
return int(r), int(e), int(s)
|
||||||
|
}
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
|
||||||
|
|
||||||
|
|
@ -338,8 +353,6 @@ func Uname(uname *Utsname) error {
|
||||||
// getgid
|
// getgid
|
||||||
// getitimer
|
// getitimer
|
||||||
// getlogin
|
// getlogin
|
||||||
// getresgid
|
|
||||||
// getresuid
|
|
||||||
// getthrid
|
// getthrid
|
||||||
// ktrace
|
// ktrace
|
||||||
// lfs_bmapv
|
// lfs_bmapv
|
||||||
|
|
|
||||||
|
|
@ -2172,3 +2172,17 @@ func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
RawSyscallNoError(SYS_GETRESUID, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
RawSyscallNoError(SYS_GETRESGID, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $4
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/4, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $4
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/4, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4
|
||||||
|
|
|
||||||
|
|
@ -519,15 +519,29 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|
@ -541,6 +555,16 @@ var libc_ioctl_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(mib) > 0 {
|
if len(mib) > 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/8, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/8, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $4
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/4, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $4
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/4, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/8, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/8, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/8, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/8, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,18 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
CALL libc_getresuid(SB)
|
||||||
|
RET
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/8, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
CALL libc_getresgid(SB)
|
||||||
|
RET
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/8, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
CALL libc_ioctl(SB)
|
CALL libc_ioctl(SB)
|
||||||
RET
|
RET
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,28 @@ var libc_getcwd_trampoline_addr uintptr
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresuid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
|
||||||
|
syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_getresgid_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,16 @@ TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresuid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresuid(SB)
|
||||||
|
GLOBL ·libc_getresuid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresuid_trampoline_addr(SB)/8, $libc_getresuid_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_getresgid_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getresgid(SB)
|
||||||
|
GLOBL ·libc_getresgid_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_getresgid_trampoline_addr(SB)/8, $libc_getresgid_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_ioctl(SB)
|
JMP libc_ioctl(SB)
|
||||||
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,6 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"golang.org/x/tools/internal/typeparams"
|
"golang.org/x/tools/internal/typeparams"
|
||||||
|
|
||||||
_ "unsafe" // for go:linkname
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// A Path is an opaque name that identifies a types.Object
|
// A Path is an opaque name that identifies a types.Object
|
||||||
|
|
@ -123,7 +121,7 @@ func For(obj types.Object) (Path, error) {
|
||||||
// An Encoder amortizes the cost of encoding the paths of multiple objects.
|
// An Encoder amortizes the cost of encoding the paths of multiple objects.
|
||||||
// The zero value of an Encoder is ready to use.
|
// The zero value of an Encoder is ready to use.
|
||||||
type Encoder struct {
|
type Encoder struct {
|
||||||
scopeNamesMemo map[*types.Scope][]string // memoization of Scope.Names()
|
scopeMemo map[*types.Scope][]types.Object // memoization of scopeObjects
|
||||||
namedMethodsMemo map[*types.Named][]*types.Func // memoization of namedMethods()
|
namedMethodsMemo map[*types.Named][]*types.Func // memoization of namedMethods()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -257,15 +255,14 @@ func (enc *Encoder) For(obj types.Object) (Path, error) {
|
||||||
// the best paths because non-types may
|
// the best paths because non-types may
|
||||||
// refer to types, but not the reverse.
|
// refer to types, but not the reverse.
|
||||||
empty := make([]byte, 0, 48) // initial space
|
empty := make([]byte, 0, 48) // initial space
|
||||||
names := enc.scopeNames(scope)
|
objs := enc.scopeObjects(scope)
|
||||||
for _, name := range names {
|
for _, o := range objs {
|
||||||
o := scope.Lookup(name)
|
|
||||||
tname, ok := o.(*types.TypeName)
|
tname, ok := o.(*types.TypeName)
|
||||||
if !ok {
|
if !ok {
|
||||||
continue // handle non-types in second pass
|
continue // handle non-types in second pass
|
||||||
}
|
}
|
||||||
|
|
||||||
path := append(empty, name...)
|
path := append(empty, o.Name()...)
|
||||||
path = append(path, opType)
|
path = append(path, opType)
|
||||||
|
|
||||||
T := o.Type()
|
T := o.Type()
|
||||||
|
|
@ -291,9 +288,8 @@ func (enc *Encoder) For(obj types.Object) (Path, error) {
|
||||||
|
|
||||||
// Then inspect everything else:
|
// Then inspect everything else:
|
||||||
// non-types, and declared methods of defined types.
|
// non-types, and declared methods of defined types.
|
||||||
for _, name := range names {
|
for _, o := range objs {
|
||||||
o := scope.Lookup(name)
|
path := append(empty, o.Name()...)
|
||||||
path := append(empty, name...)
|
|
||||||
if _, ok := o.(*types.TypeName); !ok {
|
if _, ok := o.(*types.TypeName); !ok {
|
||||||
if o.Exported() {
|
if o.Exported() {
|
||||||
// exported non-type (const, var, func)
|
// exported non-type (const, var, func)
|
||||||
|
|
@ -748,17 +744,22 @@ func (enc *Encoder) namedMethods(named *types.Named) []*types.Func {
|
||||||
return methods
|
return methods
|
||||||
}
|
}
|
||||||
|
|
||||||
// scopeNames is a memoization of scope.Names. Callers must not modify the result.
|
// scopeObjects is a memoization of scope objects.
|
||||||
func (enc *Encoder) scopeNames(scope *types.Scope) []string {
|
// Callers must not modify the result.
|
||||||
m := enc.scopeNamesMemo
|
func (enc *Encoder) scopeObjects(scope *types.Scope) []types.Object {
|
||||||
|
m := enc.scopeMemo
|
||||||
if m == nil {
|
if m == nil {
|
||||||
m = make(map[*types.Scope][]string)
|
m = make(map[*types.Scope][]types.Object)
|
||||||
enc.scopeNamesMemo = m
|
enc.scopeMemo = m
|
||||||
}
|
}
|
||||||
names, ok := m[scope]
|
objs, ok := m[scope]
|
||||||
if !ok {
|
if !ok {
|
||||||
names = scope.Names() // allocates and sorts
|
names := scope.Names() // allocates and sorts
|
||||||
m[scope] = names
|
objs = make([]types.Object, len(names))
|
||||||
|
for i, name := range names {
|
||||||
|
objs[i] = scope.Lookup(name)
|
||||||
}
|
}
|
||||||
return names
|
m[scope] = objs
|
||||||
|
}
|
||||||
|
return objs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,26 @@ func OriginMethod(fn *types.Func) *types.Func {
|
||||||
}
|
}
|
||||||
orig := NamedTypeOrigin(named)
|
orig := NamedTypeOrigin(named)
|
||||||
gfn, _, _ := types.LookupFieldOrMethod(orig, true, fn.Pkg(), fn.Name())
|
gfn, _, _ := types.LookupFieldOrMethod(orig, true, fn.Pkg(), fn.Name())
|
||||||
|
|
||||||
|
// This is a fix for a gopls crash (#60628) due to a go/types bug (#60634). In:
|
||||||
|
// package p
|
||||||
|
// type T *int
|
||||||
|
// func (*T) f() {}
|
||||||
|
// LookupFieldOrMethod(T, true, p, f)=nil, but NewMethodSet(*T)={(*T).f}.
|
||||||
|
// Here we make them consistent by force.
|
||||||
|
// (The go/types bug is general, but this workaround is reached only
|
||||||
|
// for generic T thanks to the early return above.)
|
||||||
|
if gfn == nil {
|
||||||
|
mset := types.NewMethodSet(types.NewPointer(orig))
|
||||||
|
for i := 0; i < mset.Len(); i++ {
|
||||||
|
m := mset.At(i)
|
||||||
|
if m.Obj().Id() == fn.Id() {
|
||||||
|
gfn = m.Obj()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return gfn.(*types.Func)
|
return gfn.(*types.Func)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,19 +34,19 @@ golang.org/x/mod/sumdb/dirhash
|
||||||
golang.org/x/mod/sumdb/note
|
golang.org/x/mod/sumdb/note
|
||||||
golang.org/x/mod/sumdb/tlog
|
golang.org/x/mod/sumdb/tlog
|
||||||
golang.org/x/mod/zip
|
golang.org/x/mod/zip
|
||||||
# golang.org/x/sync v0.2.1-0.20230523185436-4966af63bb0c
|
# golang.org/x/sync v0.2.1-0.20230601203510-93782cc822b6
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/sync/semaphore
|
golang.org/x/sync/semaphore
|
||||||
# golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc
|
# golang.org/x/sys v0.9.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/sys/internal/unsafeheader
|
golang.org/x/sys/internal/unsafeheader
|
||||||
golang.org/x/sys/plan9
|
golang.org/x/sys/plan9
|
||||||
golang.org/x/sys/unix
|
golang.org/x/sys/unix
|
||||||
golang.org/x/sys/windows
|
golang.org/x/sys/windows
|
||||||
# golang.org/x/term v0.8.0
|
# golang.org/x/term v0.9.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/term
|
golang.org/x/term
|
||||||
# golang.org/x/tools v0.9.2-0.20230526183654-5974258e689a
|
# golang.org/x/tools v0.9.4-0.20230613194514-c6c983054920
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
golang.org/x/tools/cmd/bisect
|
golang.org/x/tools/cmd/bisect
|
||||||
golang.org/x/tools/cover
|
golang.org/x/tools/cover
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ module std
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
require (
|
require (
|
||||||
golang.org/x/crypto v0.9.0
|
golang.org/x/crypto v0.10.0
|
||||||
golang.org/x/net v0.10.1-0.20230525180353-f7250ea19d21
|
golang.org/x/net v0.11.1-0.20230613203745-f5464ddb689c
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc // indirect
|
golang.org/x/sys v0.9.0 // indirect
|
||||||
golang.org/x/text v0.9.0 // indirect
|
golang.org/x/text v0.10.1-0.20230613190012-2df65d769a9e // indirect
|
||||||
)
|
)
|
||||||
|
|
|
||||||
16
src/go.sum
16
src/go.sum
|
|
@ -1,8 +1,8 @@
|
||||||
golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
|
golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM=
|
||||||
golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
|
golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I=
|
||||||
golang.org/x/net v0.10.1-0.20230525180353-f7250ea19d21 h1:jUMNhNY++lQOGP3xpA6+oKyHzRWdM7e6XBFppuDXEUw=
|
golang.org/x/net v0.11.1-0.20230613203745-f5464ddb689c h1:icjsA5jFPWsTcuIb/yIeU6mgXRHPQBfo0Lzd1GQmKZI=
|
||||||
golang.org/x/net v0.10.1-0.20230525180353-f7250ea19d21/go.mod h1:HUkFaVObNZHS2ti0M2K3nhgZkXc79hOnIQbGUtDSthg=
|
golang.org/x/net v0.11.1-0.20230613203745-f5464ddb689c/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ=
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc h1:p4WpFbnzwh0EhIaGMueCjfMUkyWX6WQcJfxbS7GOQtQ=
|
golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s=
|
||||||
golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
|
golang.org/x/text v0.10.1-0.20230613190012-2df65d769a9e h1:GTf7SHdimRGQ2uYYuJ0eJUoAEJ9ufU2ocSTVWnbeVQc=
|
||||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
golang.org/x/text v0.10.1-0.20230613190012-2df65d769a9e/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ func CheckJoiners(enable bool) Option {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// StrictDomainName limits the set of permissable ASCII characters to those
|
// StrictDomainName limits the set of permissible ASCII characters to those
|
||||||
// allowed in domain names as defined in RFC 1034 (A-Z, a-z, 0-9 and the
|
// allowed in domain names as defined in RFC 1034 (A-Z, a-z, 0-9 and the
|
||||||
// hyphen). This is set by default for MapForLookup and ValidateForRegistration,
|
// hyphen). This is set by default for MapForLookup and ValidateForRegistration,
|
||||||
// but is only useful if ValidateLabels is set.
|
// but is only useful if ValidateLabels is set.
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -6,27 +6,6 @@
|
||||||
|
|
||||||
package idna
|
package idna
|
||||||
|
|
||||||
// appendMapping appends the mapping for the respective rune. isMapped must be
|
|
||||||
// true. A mapping is a categorization of a rune as defined in UTS #46.
|
|
||||||
func (c info) appendMapping(b []byte, s string) []byte {
|
|
||||||
index := int(c >> indexShift)
|
|
||||||
if c&xorBit == 0 {
|
|
||||||
s := mappings[index:]
|
|
||||||
return append(b, s[1:s[0]+1]...)
|
|
||||||
}
|
|
||||||
b = append(b, s...)
|
|
||||||
if c&inlineXOR == inlineXOR {
|
|
||||||
// TODO: support and handle two-byte inline masks
|
|
||||||
b[len(b)-1] ^= byte(index)
|
|
||||||
} else {
|
|
||||||
for p := len(b) - int(xorData[index]); p < len(b); p++ {
|
|
||||||
index++
|
|
||||||
b[p] ^= xorData[index]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sparse block handling code.
|
// Sparse block handling code.
|
||||||
|
|
||||||
type valueRange struct {
|
type valueRange struct {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||||
|
|
||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !go1.16
|
||||||
|
// +build !go1.16
|
||||||
|
|
||||||
|
package idna
|
||||||
|
|
||||||
|
// appendMapping appends the mapping for the respective rune. isMapped must be
|
||||||
|
// true. A mapping is a categorization of a rune as defined in UTS #46.
|
||||||
|
func (c info) appendMapping(b []byte, s string) []byte {
|
||||||
|
index := int(c >> indexShift)
|
||||||
|
if c&xorBit == 0 {
|
||||||
|
s := mappings[index:]
|
||||||
|
return append(b, s[1:s[0]+1]...)
|
||||||
|
}
|
||||||
|
b = append(b, s...)
|
||||||
|
if c&inlineXOR == inlineXOR {
|
||||||
|
// TODO: support and handle two-byte inline masks
|
||||||
|
b[len(b)-1] ^= byte(index)
|
||||||
|
} else {
|
||||||
|
for p := len(b) - int(xorData[index]); p < len(b); p++ {
|
||||||
|
index++
|
||||||
|
b[p] ^= xorData[index]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||||
|
|
||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build go1.16
|
||||||
|
// +build go1.16
|
||||||
|
|
||||||
|
package idna
|
||||||
|
|
||||||
|
// appendMapping appends the mapping for the respective rune. isMapped must be
|
||||||
|
// true. A mapping is a categorization of a rune as defined in UTS #46.
|
||||||
|
func (c info) appendMapping(b []byte, s string) []byte {
|
||||||
|
index := int(c >> indexShift)
|
||||||
|
if c&xorBit == 0 {
|
||||||
|
p := index
|
||||||
|
return append(b, mappings[mappingIndex[p]:mappingIndex[p+1]]...)
|
||||||
|
}
|
||||||
|
b = append(b, s...)
|
||||||
|
if c&inlineXOR == inlineXOR {
|
||||||
|
// TODO: support and handle two-byte inline masks
|
||||||
|
b[len(b)-1] ^= byte(index)
|
||||||
|
} else {
|
||||||
|
for p := len(b) - int(xorData[index]); p < len(b); p++ {
|
||||||
|
index++
|
||||||
|
b[p] ^= xorData[index]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.16
|
//go:build go1.16 && !go1.21
|
||||||
// +build go1.16
|
// +build go1.16,!go1.21
|
||||||
|
|
||||||
package bidi
|
package bidi
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.16
|
//go:build go1.16 && !go1.21
|
||||||
// +build go1.16
|
// +build go1.16,!go1.21
|
||||||
|
|
||||||
package norm
|
package norm
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +1,4 @@
|
||||||
# golang.org/x/crypto v0.9.0
|
# golang.org/x/crypto v0.10.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/crypto/chacha20
|
golang.org/x/crypto/chacha20
|
||||||
golang.org/x/crypto/chacha20poly1305
|
golang.org/x/crypto/chacha20poly1305
|
||||||
|
|
@ -7,7 +7,7 @@ golang.org/x/crypto/cryptobyte/asn1
|
||||||
golang.org/x/crypto/hkdf
|
golang.org/x/crypto/hkdf
|
||||||
golang.org/x/crypto/internal/alias
|
golang.org/x/crypto/internal/alias
|
||||||
golang.org/x/crypto/internal/poly1305
|
golang.org/x/crypto/internal/poly1305
|
||||||
# golang.org/x/net v0.10.1-0.20230525180353-f7250ea19d21
|
# golang.org/x/net v0.11.1-0.20230613203745-f5464ddb689c
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/net/dns/dnsmessage
|
golang.org/x/net/dns/dnsmessage
|
||||||
golang.org/x/net/http/httpguts
|
golang.org/x/net/http/httpguts
|
||||||
|
|
@ -17,10 +17,10 @@ golang.org/x/net/idna
|
||||||
golang.org/x/net/lif
|
golang.org/x/net/lif
|
||||||
golang.org/x/net/nettest
|
golang.org/x/net/nettest
|
||||||
golang.org/x/net/route
|
golang.org/x/net/route
|
||||||
# golang.org/x/sys v0.8.1-0.20230523194307-b5c7a0975ddc
|
# golang.org/x/sys v0.9.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/sys/cpu
|
golang.org/x/sys/cpu
|
||||||
# golang.org/x/text v0.9.0
|
# golang.org/x/text v0.10.1-0.20230613190012-2df65d769a9e
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/text/secure/bidirule
|
golang.org/x/text/secure/bidirule
|
||||||
golang.org/x/text/transform
|
golang.org/x/text/transform
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue