diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index 2d5fff063..801b8b8ca 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - go-version: [ '1.20', '1.21' ] + go-version: [ '1.21', '1.22' ] os: [ubuntu-latest, macos-latest, windows-latest] include: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index def78a8b0..cae47a844 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: pull_request: env: - GO_VERSION: '1.21' + GO_VERSION: '1.22' GOLANGCI_LINT_VERSION: v1.55.2 jobs: @@ -45,7 +45,7 @@ jobs: needs: linting strategy: matrix: - go-version: [ '1.20', '1.21' ] + go-version: [ '1.21', '1.22' ] steps: - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v2 @@ -76,7 +76,7 @@ jobs: working-directory: ${{ github.workspace }}/go/src/github.com/traefik/yaegi strategy: matrix: - go-version: [ '1.20', '1.21' ] + go-version: [ '1.21', '1.22' ] steps: - name: Set up Go ${{ matrix.go-version }} diff --git a/Makefile b/Makefile index be8a2747c..5ad726eb5 100644 --- a/Makefile +++ b/Makefile @@ -27,4 +27,15 @@ tests: install.sh: .goreleaser.yml godownloader --repo=traefik/yaegi -o install.sh .goreleaser.yml -.PHONY: check gen_all_syscall gen_tests generate_downloader internal/cmd/extract/extract install +generic_list = cmp/cmp.go slices/slices.go slices/sort.go slices/zsortanyfunc.go maps/maps.go \ + sync/oncefunc.go sync/atomic/type.go + +# get_generic_src imports stdlib files containing generic symbols definitions +get_generic_src: + eval "`go env`"; echo $$GOROOT; gov=$${GOVERSION#*.}; gov=$${gov%.*}; \ + for f in ${generic_list}; do \ + nf=stdlib/generic/go1_$${gov}_`echo $$f | tr / _`.txt; echo "nf: $$nf"; \ + cat "$$GOROOT/src/$$f" > "$$nf"; \ + done + +.PHONY: check gen_all_syscall internal/cmd/extract/extract get_generic_src install diff --git a/README.md b/README.md index 5673f60bd..70bacca41 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ It powers executable Go scripts and plugins, in embedded interpreters or interac * Works everywhere Go works * All Go & runtime resources accessible from script (with control) * Security: `unsafe` and `syscall` packages neither used nor exported by default -* Support the latest 2 major releases of Go (Go 1.20 and Go 1.21) +* Support the latest 2 major releases of Go (Go 1.21 and Go 1.22) ## Install diff --git a/_test/addr0.go b/_test/addr0.go index 1f03bd04d..544edc69f 100644 --- a/_test/addr0.go +++ b/_test/addr0.go @@ -15,11 +15,10 @@ func main() { r := extendedRequest{} req := &r.Request - - fmt.Println(r) - fmt.Println(req) + fmt.Printf("%T\n", r.Request) + fmt.Printf("%T\n", req) } // Output: -// {{ 0 0 map[] 0 [] false map[] map[] map[] } } -// &{ 0 0 map[] 0 [] false map[] map[] map[] } +// http.Request +// *http.Request diff --git a/extract/extract.go b/extract/extract.go index 139547b5d..d727207f9 100644 --- a/extract/extract.go +++ b/extract/extract.go @@ -478,7 +478,7 @@ func GetMinor(part string) string { return minor } -const defaultMinorVersion = 21 +const defaultMinorVersion = 22 func genBuildTags() (string, error) { version := runtime.Version() diff --git a/go.mod b/go.mod index 21378239a..e8cc07765 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/traefik/yaegi -go 1.20 +go 1.21 diff --git a/interp/interp_consistent_test.go b/interp/interp_consistent_test.go index 97010f183..85a3b9adf 100644 --- a/interp/interp_consistent_test.go +++ b/interp/interp_consistent_test.go @@ -7,6 +7,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strings" "testing" @@ -15,6 +16,13 @@ import ( "github.com/traefik/yaegi/stdlib/unsafe" ) +// The following tests depend on an incompatible language change in go1.22, where `for` variables are now +// defined in body (thus reallocated at each loop). We skip them until both supported versions behave the same. +// We will remove this in Go1.23. +var testsToSkipGo122 = map[string]bool{"closure9.go": true, "closure10.go": true, "closure11.go": true, "closure12.go": true} + +var go122 = strings.HasPrefix(runtime.Version(), "go1.22") + func TestInterpConsistencyBuild(t *testing.T) { if testing.Short() { t.Skip("short mode") @@ -125,6 +133,9 @@ func TestInterpConsistencyBuild(t *testing.T) { if go121 && testsToSkipGo121[file.Name()] { continue } + if go122 && testsToSkipGo122[file.Name()] { + continue + } file := file t.Run(file.Name(), func(t *testing.T) { diff --git a/stdlib/generic/go1_20_generic.go b/stdlib/generic/go1_20_generic.go deleted file mode 100644 index 594c85e31..000000000 --- a/stdlib/generic/go1_20_generic.go +++ /dev/null @@ -1,6 +0,0 @@ -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package generic - -var Sources = []string{} diff --git a/stdlib/generic/go1_21_generic.go b/stdlib/generic/go1_21_generic.go index 08960b0db..bc9fd9ef8 100644 --- a/stdlib/generic/go1_21_generic.go +++ b/stdlib/generic/go1_21_generic.go @@ -1,5 +1,5 @@ -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package generic diff --git a/stdlib/generic/go1_22_cmp_cmp.go.txt b/stdlib/generic/go1_22_cmp_cmp.go.txt new file mode 100644 index 000000000..4d1af6a98 --- /dev/null +++ b/stdlib/generic/go1_22_cmp_cmp.go.txt @@ -0,0 +1,71 @@ +// Copyright 2023 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. + +// Package cmp provides types and functions related to comparing +// ordered values. +package cmp + +// Ordered is a constraint that permits any ordered type: any type +// that supports the operators < <= >= >. +// If future releases of Go add new ordered types, +// this constraint will be modified to include them. +// +// Note that floating-point types may contain NaN ("not-a-number") values. +// An operator such as == or < will always report false when +// comparing a NaN value with any other value, NaN or not. +// See the [Compare] function for a consistent way to compare NaN values. +type Ordered interface { + ~int | ~int8 | ~int16 | ~int32 | ~int64 | + ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | + ~float32 | ~float64 | + ~string +} + +// Less reports whether x is less than y. +// For floating-point types, a NaN is considered less than any non-NaN, +// and -0.0 is not less than (is equal to) 0.0. +func Less[T Ordered](x, y T) bool { + return (isNaN(x) && !isNaN(y)) || x < y +} + +// Compare returns +// +// -1 if x is less than y, +// 0 if x equals y, +// +1 if x is greater than y. +// +// For floating-point types, a NaN is considered less than any non-NaN, +// a NaN is considered equal to a NaN, and -0.0 is equal to 0.0. +func Compare[T Ordered](x, y T) int { + xNaN := isNaN(x) + yNaN := isNaN(y) + if xNaN && yNaN { + return 0 + } + if xNaN || x < y { + return -1 + } + if yNaN || x > y { + return +1 + } + return 0 +} + +// isNaN reports whether x is a NaN without requiring the math package. +// This will always return false if T is not floating-point. +func isNaN[T Ordered](x T) bool { + return x != x +} + +// Or returns the first of its arguments that is not equal to the zero value. +// If no argument is non-zero, it returns the zero value. +func Or[T comparable](vals ...T) T { + var zero T + for _, val := range vals { + if val != zero { + return val + } + } + return zero +} diff --git a/stdlib/generic/go1_22_generic.go b/stdlib/generic/go1_22_generic.go new file mode 100644 index 000000000..4639318cd --- /dev/null +++ b/stdlib/generic/go1_22_generic.go @@ -0,0 +1,41 @@ +//go:build go1.22 +// +build go1.22 + +package generic + +import _ "embed" + +//go:embed go1_22_cmp_cmp.go.txt +var cmpSource string + +//go:embed go1_22_maps_maps.go.txt +var mapsSource string + +//go:embed go1_22_slices_slices.go.txt +var slicesSource string + +/* +//go:embed go1_22_slices_sort.go.txt +var slicesSource1 string + +//go:embed go1_22_slices_zsortanyfunc.go.txt +var slicesSource2 string + +//go:embed go1_22_sync_oncefunc.go.txt +var syncSource string + +//go:embed go1_22_sync_atomic_type.go.txt +var syncAtomicSource string +*/ + +// Sources contains the list of generic packages source strings. +var Sources = [...]string{ + cmpSource, + mapsSource, + slicesSource, + // FIXME(marc): support the following. + // slicesSource1, + // slicesSource2, + // syncAtomicSource, + // syncSource, +} diff --git a/stdlib/generic/go1_22_maps_maps.go.txt b/stdlib/generic/go1_22_maps_maps.go.txt new file mode 100644 index 000000000..50d037488 --- /dev/null +++ b/stdlib/generic/go1_22_maps_maps.go.txt @@ -0,0 +1,68 @@ +// Copyright 2021 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. + +// Package maps defines various functions useful with maps of any type. +package maps + +// Equal reports whether two maps contain the same key/value pairs. +// Values are compared using ==. +func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { + if len(m1) != len(m2) { + return false + } + for k, v1 := range m1 { + if v2, ok := m2[k]; !ok || v1 != v2 { + return false + } + } + return true +} + +// EqualFunc is like Equal, but compares values using eq. +// Keys are still compared with ==. +func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool { + if len(m1) != len(m2) { + return false + } + for k, v1 := range m1 { + if v2, ok := m2[k]; !ok || !eq(v1, v2) { + return false + } + } + return true +} + +// clone is implemented in the runtime package. +func clone(m any) any { + return m +} + +// Clone returns a copy of m. This is a shallow clone: +// the new keys and values are set using ordinary assignment. +func Clone[M ~map[K]V, K comparable, V any](m M) M { + // Preserve nil in case it matters. + if m == nil { + return nil + } + return clone(m).(M) +} + +// Copy copies all key/value pairs in src adding them to dst. +// When a key in src is already present in dst, +// the value in dst will be overwritten by the value associated +// with the key in src. +func Copy[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) { + for k, v := range src { + dst[k] = v + } +} + +// DeleteFunc deletes any key/value pairs from m for which del returns true. +func DeleteFunc[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool) { + for k, v := range m { + if del(k, v) { + delete(m, k) + } + } +} diff --git a/stdlib/generic/go1_22_slices_slices.go.txt b/stdlib/generic/go1_22_slices_slices.go.txt new file mode 100644 index 000000000..d9515692d --- /dev/null +++ b/stdlib/generic/go1_22_slices_slices.go.txt @@ -0,0 +1,518 @@ +// Copyright 2021 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. + +// Package slices defines various functions useful with slices of any type. +package slices + +import ( + "cmp" + // TODO(marc) fix this. "unsafe" +) + +// Equal reports whether two slices are equal: the same length and all +// elements equal. If the lengths are different, Equal returns false. +// Otherwise, the elements are compared in increasing index order, and the +// comparison stops at the first unequal pair. +// Floating point NaNs are not considered equal. +func Equal[S ~[]E, E comparable](s1, s2 S) bool { + if len(s1) != len(s2) { + return false + } + for i := range s1 { + if s1[i] != s2[i] { + return false + } + } + return true +} + +// EqualFunc reports whether two slices are equal using an equality +// function on each pair of elements. If the lengths are different, +// EqualFunc returns false. Otherwise, the elements are compared in +// increasing index order, and the comparison stops at the first index +// for which eq returns false. +func EqualFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, eq func(E1, E2) bool) bool { + if len(s1) != len(s2) { + return false + } + for i, v1 := range s1 { + v2 := s2[i] + if !eq(v1, v2) { + return false + } + } + return true +} + +// Compare compares the elements of s1 and s2, using [cmp.Compare] on each pair +// of elements. The elements are compared sequentially, starting at index 0, +// until one element is not equal to the other. +// The result of comparing the first non-matching elements is returned. +// If both slices are equal until one of them ends, the shorter slice is +// considered less than the longer one. +// The result is 0 if s1 == s2, -1 if s1 < s2, and +1 if s1 > s2. +func Compare[S ~[]E, E cmp.Ordered](s1, s2 S) int { + for i, v1 := range s1 { + if i >= len(s2) { + return +1 + } + v2 := s2[i] + if c := cmp.Compare(v1, v2); c != 0 { + return c + } + } + if len(s1) < len(s2) { + return -1 + } + return 0 +} + +// CompareFunc is like [Compare] but uses a custom comparison function on each +// pair of elements. +// The result is the first non-zero result of cmp; if cmp always +// returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2), +// and +1 if len(s1) > len(s2). +func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int { + for i, v1 := range s1 { + if i >= len(s2) { + return +1 + } + v2 := s2[i] + if c := cmp(v1, v2); c != 0 { + return c + } + } + if len(s1) < len(s2) { + return -1 + } + return 0 +} + +// Index returns the index of the first occurrence of v in s, +// or -1 if not present. +func Index[S ~[]E, E comparable](s S, v E) int { + for i := range s { + if v == s[i] { + return i + } + } + return -1 +} + +// IndexFunc returns the first index i satisfying f(s[i]), +// or -1 if none do. +func IndexFunc[S ~[]E, E any](s S, f func(E) bool) int { + for i := range s { + if f(s[i]) { + return i + } + } + return -1 +} + +// Contains reports whether v is present in s. +func Contains[S ~[]E, E comparable](s S, v E) bool { + return Index(s, v) >= 0 +} + +// ContainsFunc reports whether at least one +// element e of s satisfies f(e). +func ContainsFunc[S ~[]E, E any](s S, f func(E) bool) bool { + return IndexFunc(s, f) >= 0 +} + +// Insert inserts the values v... into s at index i, +// returning the modified slice. +// The elements at s[i:] are shifted up to make room. +// In the returned slice r, r[i] == v[0], +// and r[i+len(v)] == value originally at r[i]. +// Insert panics if i is out of range. +// This function is O(len(s) + len(v)). +func Insert[S ~[]E, E any](s S, i int, v ...E) S { + _ = s[i:] // bounds check + + m := len(v) + if m == 0 { + return s + } + n := len(s) + if i == n { + return append(s, v...) + } + if n+m > cap(s) { + // Use append rather than make so that we bump the size of + // the slice up to the next storage class. + // This is what Grow does but we don't call Grow because + // that might copy the values twice. + s2 := append(s[:i], make(S, n+m-i)...) + copy(s2[i:], v) + copy(s2[i+m:], s[i:]) + return s2 + } + s = s[:n+m] + + // before: + // s: aaaaaaaabbbbccccccccdddd + // ^ ^ ^ ^ + // i i+m n n+m + // after: + // s: aaaaaaaavvvvbbbbcccccccc + // ^ ^ ^ ^ + // i i+m n n+m + // + // a are the values that don't move in s. + // v are the values copied in from v. + // b and c are the values from s that are shifted up in index. + // d are the values that get overwritten, never to be seen again. + + if !overlaps(v, s[i+m:]) { + // Easy case - v does not overlap either the c or d regions. + // (It might be in some of a or b, or elsewhere entirely.) + // The data we copy up doesn't write to v at all, so just do it. + + copy(s[i+m:], s[i:]) + + // Now we have + // s: aaaaaaaabbbbbbbbcccccccc + // ^ ^ ^ ^ + // i i+m n n+m + // Note the b values are duplicated. + + copy(s[i:], v) + + // Now we have + // s: aaaaaaaavvvvbbbbcccccccc + // ^ ^ ^ ^ + // i i+m n n+m + // That's the result we want. + return s + } + + // The hard case - v overlaps c or d. We can't just shift up + // the data because we'd move or clobber the values we're trying + // to insert. + // So instead, write v on top of d, then rotate. + copy(s[n:], v) + + // Now we have + // s: aaaaaaaabbbbccccccccvvvv + // ^ ^ ^ ^ + // i i+m n n+m + + rotateRight(s[i:], m) + + // Now we have + // s: aaaaaaaavvvvbbbbcccccccc + // ^ ^ ^ ^ + // i i+m n n+m + // That's the result we want. + return s +} + +// Delete removes the elements s[i:j] from s, returning the modified slice. +// Delete panics if j > len(s) or s[i:j] is not a valid slice of s. +// Delete is O(len(s)-i), so if many items must be deleted, it is better to +// make a single call deleting them all together than to delete one at a time. +// Delete zeroes the elements s[len(s)-(j-i):len(s)]. +func Delete[S ~[]E, E any](s S, i, j int) S { + _ = s[i:j:len(s)] // bounds check + + if i == j { + return s + } + + oldlen := len(s) + s = append(s[:i], s[j:]...) + clear(s[len(s):oldlen]) // zero/nil out the obsolete elements, for GC + return s +} + +// DeleteFunc removes any elements from s for which del returns true, +// returning the modified slice. +// DeleteFunc zeroes the elements between the new length and the original length. +func DeleteFunc[S ~[]E, E any](s S, del func(E) bool) S { + i := IndexFunc(s, del) + if i == -1 { + return s + } + // Don't start copying elements until we find one to delete. + for j := i + 1; j < len(s); j++ { + if v := s[j]; !del(v) { + s[i] = v + i++ + } + } + clear(s[i:]) // zero/nil out the obsolete elements, for GC + return s[:i] +} + +// Replace replaces the elements s[i:j] by the given v, and returns the +// modified slice. +// Replace panics if j > len(s) or s[i:j] is not a valid slice of s. +// When len(v) < (j-i), Replace zeroes the elements between the new length and the original length. +func Replace[S ~[]E, E any](s S, i, j int, v ...E) S { + _ = s[i:j] // bounds check + + if i == j { + return Insert(s, i, v...) + } + if j == len(s) { + return append(s[:i], v...) + } + + tot := len(s[:i]) + len(v) + len(s[j:]) + if tot > cap(s) { + // Too big to fit, allocate and copy over. + s2 := append(s[:i], make(S, tot-i)...) // See Insert + copy(s2[i:], v) + copy(s2[i+len(v):], s[j:]) + return s2 + } + + r := s[:tot] + + if i+len(v) <= j { + // Easy, as v fits in the deleted portion. + copy(r[i:], v) + copy(r[i+len(v):], s[j:]) + clear(s[tot:]) // zero/nil out the obsolete elements, for GC + return r + } + + // We are expanding (v is bigger than j-i). + // The situation is something like this: + // (example has i=4,j=8,len(s)=16,len(v)=6) + // s: aaaaxxxxbbbbbbbbyy + // ^ ^ ^ ^ + // i j len(s) tot + // a: prefix of s + // x: deleted range + // b: more of s + // y: area to expand into + + if !overlaps(r[i+len(v):], v) { + // Easy, as v is not clobbered by the first copy. + copy(r[i+len(v):], s[j:]) + copy(r[i:], v) + return r + } + + // This is a situation where we don't have a single place to which + // we can copy v. Parts of it need to go to two different places. + // We want to copy the prefix of v into y and the suffix into x, then + // rotate |y| spots to the right. + // + // v[2:] v[:2] + // | | + // s: aaaavvvvbbbbbbbbvv + // ^ ^ ^ ^ + // i j len(s) tot + // + // If either of those two destinations don't alias v, then we're good. + y := len(v) - (j - i) // length of y portion + + if !overlaps(r[i:j], v) { + copy(r[i:j], v[y:]) + copy(r[len(s):], v[:y]) + rotateRight(r[i:], y) + return r + } + if !overlaps(r[len(s):], v) { + copy(r[len(s):], v[:y]) + copy(r[i:j], v[y:]) + rotateRight(r[i:], y) + return r + } + + // Now we know that v overlaps both x and y. + // That means that the entirety of b is *inside* v. + // So we don't need to preserve b at all; instead we + // can copy v first, then copy the b part of v out of + // v to the right destination. + k := startIdx(v, s[j:]) + copy(r[i:], v) + copy(r[i+len(v):], r[i+k:]) + return r +} + +// Clone returns a copy of the slice. +// The elements are copied using assignment, so this is a shallow clone. +func Clone[S ~[]E, E any](s S) S { + // The s[:0:0] preserves nil in case it matters. + return append(s[:0:0], s...) +} + +// Compact replaces consecutive runs of equal elements with a single copy. +// This is like the uniq command found on Unix. +// Compact modifies the contents of the slice s and returns the modified slice, +// which may have a smaller length. +// Compact zeroes the elements between the new length and the original length. +func Compact[S ~[]E, E comparable](s S) S { + if len(s) < 2 { + return s + } + i := 1 + for k := 1; k < len(s); k++ { + if s[k] != s[k-1] { + if i != k { + s[i] = s[k] + } + i++ + } + } + clear(s[i:]) // zero/nil out the obsolete elements, for GC + return s[:i] +} + +// CompactFunc is like [Compact] but uses an equality function to compare elements. +// For runs of elements that compare equal, CompactFunc keeps the first one. +// CompactFunc zeroes the elements between the new length and the original length. +func CompactFunc[S ~[]E, E any](s S, eq func(E, E) bool) S { + if len(s) < 2 { + return s + } + i := 1 + for k := 1; k < len(s); k++ { + if !eq(s[k], s[k-1]) { + if i != k { + s[i] = s[k] + } + i++ + } + } + clear(s[i:]) // zero/nil out the obsolete elements, for GC + return s[:i] +} + +// Grow increases the slice's capacity, if necessary, to guarantee space for +// another n elements. After Grow(n), at least n elements can be appended +// to the slice without another allocation. If n is negative or too large to +// allocate the memory, Grow panics. +func Grow[S ~[]E, E any](s S, n int) S { + if n < 0 { + panic("cannot be negative") + } + if n -= cap(s) - len(s); n > 0 { + s = append(s[:cap(s)], make([]E, n)...)[:len(s)] + } + return s +} + +// Clip removes unused capacity from the slice, returning s[:len(s):len(s)]. +func Clip[S ~[]E, E any](s S) S { + return s[:len(s):len(s)] +} + +// Rotation algorithm explanation: +// +// rotate left by 2 +// start with +// 0123456789 +// split up like this +// 01 234567 89 +// swap first 2 and last 2 +// 89 234567 01 +// join first parts +// 89234567 01 +// recursively rotate first left part by 2 +// 23456789 01 +// join at the end +// 2345678901 +// +// rotate left by 8 +// start with +// 0123456789 +// split up like this +// 01 234567 89 +// swap first 2 and last 2 +// 89 234567 01 +// join last parts +// 89 23456701 +// recursively rotate second part left by 6 +// 89 01234567 +// join at the end +// 8901234567 + +// TODO: There are other rotate algorithms. +// This algorithm has the desirable property that it moves each element exactly twice. +// The triple-reverse algorithm is simpler and more cache friendly, but takes more writes. +// The follow-cycles algorithm can be 1-write but it is not very cache friendly. + +// rotateLeft rotates b left by n spaces. +// s_final[i] = s_orig[i+r], wrapping around. +func rotateLeft[E any](s []E, r int) { + for r != 0 && r != len(s) { + if r*2 <= len(s) { + swap(s[:r], s[len(s)-r:]) + s = s[:len(s)-r] + } else { + swap(s[:len(s)-r], s[r:]) + s, r = s[len(s)-r:], r*2-len(s) + } + } +} +func rotateRight[E any](s []E, r int) { + rotateLeft(s, len(s)-r) +} + +// swap swaps the contents of x and y. x and y must be equal length and disjoint. +func swap[E any](x, y []E) { + for i := 0; i < len(x); i++ { + x[i], y[i] = y[i], x[i] + } +} + +// overlaps reports whether the memory ranges a[0:len(a)] and b[0:len(b)] overlap. +func overlaps[E any](a, b []E) bool { + return false + /* TODO(marc): restore the following + if len(a) == 0 || len(b) == 0 { + return false + } + elemSize := unsafe.Sizeof(a[0]) + if elemSize == 0 { + return false + } + // TODO: use a runtime/unsafe facility once one becomes available. See issue 12445. + // Also see crypto/internal/alias/alias.go:AnyOverlap + return uintptr(unsafe.Pointer(&a[0])) <= uintptr(unsafe.Pointer(&b[len(b)-1]))+(elemSize-1) && + uintptr(unsafe.Pointer(&b[0])) <= uintptr(unsafe.Pointer(&a[len(a)-1]))+(elemSize-1) + */ +} + +// startIdx returns the index in haystack where the needle starts. +// prerequisite: the needle must be aliased entirely inside the haystack. +func startIdx[E any](haystack, needle []E) int { + p := &needle[0] + for i := range haystack { + if p == &haystack[i] { + return i + } + } + // TODO: what if the overlap is by a non-integral number of Es? + panic("needle not found") +} + +// Reverse reverses the elements of the slice in place. +func Reverse[S ~[]E, E any](s S) { + for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 { + s[i], s[j] = s[j], s[i] + } +} + +// Concat returns a new slice concatenating the passed in slices. +func Concat[S ~[]E, E any](slices ...S) S { + size := 0 + for _, s := range slices { + size += len(s) + if size < 0 { + panic("len out of range") + } + } + newslice := Grow[S](nil, size) + for _, s := range slices { + newslice = append(newslice, s...) + } + return newslice +} diff --git a/stdlib/generic/go1_22_slices_sort.go.txt b/stdlib/generic/go1_22_slices_sort.go.txt new file mode 100644 index 000000000..d5e998ce1 --- /dev/null +++ b/stdlib/generic/go1_22_slices_sort.go.txt @@ -0,0 +1,194 @@ +// Copyright 2023 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:generate go run $GOROOT/src/sort/gen_sort_variants.go -generic + +package slices + +import ( + "cmp" + "math/bits" +) + +// Sort sorts a slice of any ordered type in ascending order. +// When sorting floating-point numbers, NaNs are ordered before other values. +func Sort[S ~[]E, E cmp.Ordered](x S) { + n := len(x) + pdqsortOrdered(x, 0, n, bits.Len(uint(n))) +} + +// SortFunc sorts the slice x in ascending order as determined by the cmp +// function. This sort is not guaranteed to be stable. +// cmp(a, b) should return a negative number when a < b, a positive number when +// a > b and zero when a == b. +// +// SortFunc requires that cmp is a strict weak ordering. +// See https://en.wikipedia.org/wiki/Weak_ordering#Strict_weak_orderings. +func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int) { + n := len(x) + pdqsortCmpFunc(x, 0, n, bits.Len(uint(n)), cmp) +} + +// SortStableFunc sorts the slice x while keeping the original order of equal +// elements, using cmp to compare elements in the same way as [SortFunc]. +func SortStableFunc[S ~[]E, E any](x S, cmp func(a, b E) int) { + stableCmpFunc(x, len(x), cmp) +} + +// IsSorted reports whether x is sorted in ascending order. +func IsSorted[S ~[]E, E cmp.Ordered](x S) bool { + for i := len(x) - 1; i > 0; i-- { + if cmp.Less(x[i], x[i-1]) { + return false + } + } + return true +} + +// IsSortedFunc reports whether x is sorted in ascending order, with cmp as the +// comparison function as defined by [SortFunc]. +func IsSortedFunc[S ~[]E, E any](x S, cmp func(a, b E) int) bool { + for i := len(x) - 1; i > 0; i-- { + if cmp(x[i], x[i-1]) < 0 { + return false + } + } + return true +} + +// Min returns the minimal value in x. It panics if x is empty. +// For floating-point numbers, Min propagates NaNs (any NaN value in x +// forces the output to be NaN). +func Min[S ~[]E, E cmp.Ordered](x S) E { + if len(x) < 1 { + panic("slices.Min: empty list") + } + m := x[0] + for i := 1; i < len(x); i++ { + m = min(m, x[i]) + } + return m +} + +// MinFunc returns the minimal value in x, using cmp to compare elements. +// It panics if x is empty. If there is more than one minimal element +// according to the cmp function, MinFunc returns the first one. +func MinFunc[S ~[]E, E any](x S, cmp func(a, b E) int) E { + if len(x) < 1 { + panic("slices.MinFunc: empty list") + } + m := x[0] + for i := 1; i < len(x); i++ { + if cmp(x[i], m) < 0 { + m = x[i] + } + } + return m +} + +// Max returns the maximal value in x. It panics if x is empty. +// For floating-point E, Max propagates NaNs (any NaN value in x +// forces the output to be NaN). +func Max[S ~[]E, E cmp.Ordered](x S) E { + if len(x) < 1 { + panic("slices.Max: empty list") + } + m := x[0] + for i := 1; i < len(x); i++ { + m = max(m, x[i]) + } + return m +} + +// MaxFunc returns the maximal value in x, using cmp to compare elements. +// It panics if x is empty. If there is more than one maximal element +// according to the cmp function, MaxFunc returns the first one. +func MaxFunc[S ~[]E, E any](x S, cmp func(a, b E) int) E { + if len(x) < 1 { + panic("slices.MaxFunc: empty list") + } + m := x[0] + for i := 1; i < len(x); i++ { + if cmp(x[i], m) > 0 { + m = x[i] + } + } + return m +} + +// BinarySearch searches for target in a sorted slice and returns the position +// where target is found, or the position where target would appear in the +// sort order; it also returns a bool saying whether the target is really found +// in the slice. The slice must be sorted in increasing order. +func BinarySearch[S ~[]E, E cmp.Ordered](x S, target E) (int, bool) { + // Inlining is faster than calling BinarySearchFunc with a lambda. + n := len(x) + // Define x[-1] < target and x[n] >= target. + // Invariant: x[i-1] < target, x[j] >= target. + i, j := 0, n + for i < j { + h := int(uint(i+j) >> 1) // avoid overflow when computing h + // i ≤ h < j + if cmp.Less(x[h], target) { + i = h + 1 // preserves x[i-1] < target + } else { + j = h // preserves x[j] >= target + } + } + // i == j, x[i-1] < target, and x[j] (= x[i]) >= target => answer is i. + return i, i < n && (x[i] == target || (isNaN(x[i]) && isNaN(target))) +} + +// BinarySearchFunc works like [BinarySearch], but uses a custom comparison +// function. The slice must be sorted in increasing order, where "increasing" +// is defined by cmp. cmp should return 0 if the slice element matches +// the target, a negative number if the slice element precedes the target, +// or a positive number if the slice element follows the target. +// cmp must implement the same ordering as the slice, such that if +// cmp(a, t) < 0 and cmp(b, t) >= 0, then a must precede b in the slice. +func BinarySearchFunc[S ~[]E, E, T any](x S, target T, cmp func(E, T) int) (int, bool) { + n := len(x) + // Define cmp(x[-1], target) < 0 and cmp(x[n], target) >= 0 . + // Invariant: cmp(x[i - 1], target) < 0, cmp(x[j], target) >= 0. + i, j := 0, n + for i < j { + h := int(uint(i+j) >> 1) // avoid overflow when computing h + // i ≤ h < j + if cmp(x[h], target) < 0 { + i = h + 1 // preserves cmp(x[i - 1], target) < 0 + } else { + j = h // preserves cmp(x[j], target) >= 0 + } + } + // i == j, cmp(x[i-1], target) < 0, and cmp(x[j], target) (= cmp(x[i], target)) >= 0 => answer is i. + return i, i < n && cmp(x[i], target) == 0 +} + +type sortedHint int // hint for pdqsort when choosing the pivot + +const ( + unknownHint sortedHint = iota + increasingHint + decreasingHint +) + +// xorshift paper: https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf +type xorshift uint64 + +func (r *xorshift) Next() uint64 { + *r ^= *r << 13 + *r ^= *r >> 17 + *r ^= *r << 5 + return uint64(*r) +} + +func nextPowerOfTwo(length int) uint { + return 1 << bits.Len(uint(length)) +} + +// isNaN reports whether x is a NaN without requiring the math package. +// This will always return false if T is not floating-point. +func isNaN[T cmp.Ordered](x T) bool { + return x != x +} diff --git a/stdlib/generic/go1_22_slices_zsortanyfunc.go.txt b/stdlib/generic/go1_22_slices_zsortanyfunc.go.txt new file mode 100644 index 000000000..06f2c7a24 --- /dev/null +++ b/stdlib/generic/go1_22_slices_zsortanyfunc.go.txt @@ -0,0 +1,479 @@ +// Code generated by gen_sort_variants.go; DO NOT EDIT. + +// Copyright 2022 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. + +package slices + +// insertionSortCmpFunc sorts data[a:b] using insertion sort. +func insertionSortCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) { + for i := a + 1; i < b; i++ { + for j := i; j > a && (cmp(data[j], data[j-1]) < 0); j-- { + data[j], data[j-1] = data[j-1], data[j] + } + } +} + +// siftDownCmpFunc implements the heap property on data[lo:hi]. +// first is an offset into the array where the root of the heap lies. +func siftDownCmpFunc[E any](data []E, lo, hi, first int, cmp func(a, b E) int) { + root := lo + for { + child := 2*root + 1 + if child >= hi { + break + } + if child+1 < hi && (cmp(data[first+child], data[first+child+1]) < 0) { + child++ + } + if !(cmp(data[first+root], data[first+child]) < 0) { + return + } + data[first+root], data[first+child] = data[first+child], data[first+root] + root = child + } +} + +func heapSortCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) { + first := a + lo := 0 + hi := b - a + + // Build heap with greatest element at top. + for i := (hi - 1) / 2; i >= 0; i-- { + siftDownCmpFunc(data, i, hi, first, cmp) + } + + // Pop elements, largest first, into end of data. + for i := hi - 1; i >= 0; i-- { + data[first], data[first+i] = data[first+i], data[first] + siftDownCmpFunc(data, lo, i, first, cmp) + } +} + +// pdqsortCmpFunc sorts data[a:b]. +// The algorithm based on pattern-defeating quicksort(pdqsort), but without the optimizations from BlockQuicksort. +// pdqsort paper: https://arxiv.org/pdf/2106.05123.pdf +// C++ implementation: https://github.com/orlp/pdqsort +// Rust implementation: https://docs.rs/pdqsort/latest/pdqsort/ +// limit is the number of allowed bad (very unbalanced) pivots before falling back to heapsort. +func pdqsortCmpFunc[E any](data []E, a, b, limit int, cmp func(a, b E) int) { + const maxInsertion = 12 + + var ( + wasBalanced = true // whether the last partitioning was reasonably balanced + wasPartitioned = true // whether the slice was already partitioned + ) + + for { + length := b - a + + if length <= maxInsertion { + insertionSortCmpFunc(data, a, b, cmp) + return + } + + // Fall back to heapsort if too many bad choices were made. + if limit == 0 { + heapSortCmpFunc(data, a, b, cmp) + return + } + + // If the last partitioning was imbalanced, we need to breaking patterns. + if !wasBalanced { + breakPatternsCmpFunc(data, a, b, cmp) + limit-- + } + + pivot, hint := choosePivotCmpFunc(data, a, b, cmp) + if hint == decreasingHint { + reverseRangeCmpFunc(data, a, b, cmp) + // The chosen pivot was pivot-a elements after the start of the array. + // After reversing it is pivot-a elements before the end of the array. + // The idea came from Rust's implementation. + pivot = (b - 1) - (pivot - a) + hint = increasingHint + } + + // The slice is likely already sorted. + if wasBalanced && wasPartitioned && hint == increasingHint { + if partialInsertionSortCmpFunc(data, a, b, cmp) { + return + } + } + + // Probably the slice contains many duplicate elements, partition the slice into + // elements equal to and elements greater than the pivot. + if a > 0 && !(cmp(data[a-1], data[pivot]) < 0) { + mid := partitionEqualCmpFunc(data, a, b, pivot, cmp) + a = mid + continue + } + + mid, alreadyPartitioned := partitionCmpFunc(data, a, b, pivot, cmp) + wasPartitioned = alreadyPartitioned + + leftLen, rightLen := mid-a, b-mid + balanceThreshold := length / 8 + if leftLen < rightLen { + wasBalanced = leftLen >= balanceThreshold + pdqsortCmpFunc(data, a, mid, limit, cmp) + a = mid + 1 + } else { + wasBalanced = rightLen >= balanceThreshold + pdqsortCmpFunc(data, mid+1, b, limit, cmp) + b = mid + } + } +} + +// partitionCmpFunc does one quicksort partition. +// Let p = data[pivot] +// Moves elements in data[a:b] around, so that data[i]

=p for inewpivot. +// On return, data[newpivot] = p +func partitionCmpFunc[E any](data []E, a, b, pivot int, cmp func(a, b E) int) (newpivot int, alreadyPartitioned bool) { + data[a], data[pivot] = data[pivot], data[a] + i, j := a+1, b-1 // i and j are inclusive of the elements remaining to be partitioned + + for i <= j && (cmp(data[i], data[a]) < 0) { + i++ + } + for i <= j && !(cmp(data[j], data[a]) < 0) { + j-- + } + if i > j { + data[j], data[a] = data[a], data[j] + return j, true + } + data[i], data[j] = data[j], data[i] + i++ + j-- + + for { + for i <= j && (cmp(data[i], data[a]) < 0) { + i++ + } + for i <= j && !(cmp(data[j], data[a]) < 0) { + j-- + } + if i > j { + break + } + data[i], data[j] = data[j], data[i] + i++ + j-- + } + data[j], data[a] = data[a], data[j] + return j, false +} + +// partitionEqualCmpFunc partitions data[a:b] into elements equal to data[pivot] followed by elements greater than data[pivot]. +// It assumed that data[a:b] does not contain elements smaller than the data[pivot]. +func partitionEqualCmpFunc[E any](data []E, a, b, pivot int, cmp func(a, b E) int) (newpivot int) { + data[a], data[pivot] = data[pivot], data[a] + i, j := a+1, b-1 // i and j are inclusive of the elements remaining to be partitioned + + for { + for i <= j && !(cmp(data[a], data[i]) < 0) { + i++ + } + for i <= j && (cmp(data[a], data[j]) < 0) { + j-- + } + if i > j { + break + } + data[i], data[j] = data[j], data[i] + i++ + j-- + } + return i +} + +// partialInsertionSortCmpFunc partially sorts a slice, returns true if the slice is sorted at the end. +func partialInsertionSortCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) bool { + const ( + maxSteps = 5 // maximum number of adjacent out-of-order pairs that will get shifted + shortestShifting = 50 // don't shift any elements on short arrays + ) + i := a + 1 + for j := 0; j < maxSteps; j++ { + for i < b && !(cmp(data[i], data[i-1]) < 0) { + i++ + } + + if i == b { + return true + } + + if b-a < shortestShifting { + return false + } + + data[i], data[i-1] = data[i-1], data[i] + + // Shift the smaller one to the left. + if i-a >= 2 { + for j := i - 1; j >= 1; j-- { + if !(cmp(data[j], data[j-1]) < 0) { + break + } + data[j], data[j-1] = data[j-1], data[j] + } + } + // Shift the greater one to the right. + if b-i >= 2 { + for j := i + 1; j < b; j++ { + if !(cmp(data[j], data[j-1]) < 0) { + break + } + data[j], data[j-1] = data[j-1], data[j] + } + } + } + return false +} + +// breakPatternsCmpFunc scatters some elements around in an attempt to break some patterns +// that might cause imbalanced partitions in quicksort. +func breakPatternsCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) { + length := b - a + if length >= 8 { + random := xorshift(length) + modulus := nextPowerOfTwo(length) + + for idx := a + (length/4)*2 - 1; idx <= a+(length/4)*2+1; idx++ { + other := int(uint(random.Next()) & (modulus - 1)) + if other >= length { + other -= length + } + data[idx], data[a+other] = data[a+other], data[idx] + } + } +} + +// choosePivotCmpFunc chooses a pivot in data[a:b]. +// +// [0,8): chooses a static pivot. +// [8,shortestNinther): uses the simple median-of-three method. +// [shortestNinther,∞): uses the Tukey ninther method. +func choosePivotCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) (pivot int, hint sortedHint) { + const ( + shortestNinther = 50 + maxSwaps = 4 * 3 + ) + + l := b - a + + var ( + swaps int + i = a + l/4*1 + j = a + l/4*2 + k = a + l/4*3 + ) + + if l >= 8 { + if l >= shortestNinther { + // Tukey ninther method, the idea came from Rust's implementation. + i = medianAdjacentCmpFunc(data, i, &swaps, cmp) + j = medianAdjacentCmpFunc(data, j, &swaps, cmp) + k = medianAdjacentCmpFunc(data, k, &swaps, cmp) + } + // Find the median among i, j, k and stores it into j. + j = medianCmpFunc(data, i, j, k, &swaps, cmp) + } + + switch swaps { + case 0: + return j, increasingHint + case maxSwaps: + return j, decreasingHint + default: + return j, unknownHint + } +} + +// order2CmpFunc returns x,y where data[x] <= data[y], where x,y=a,b or x,y=b,a. +func order2CmpFunc[E any](data []E, a, b int, swaps *int, cmp func(a, b E) int) (int, int) { + if cmp(data[b], data[a]) < 0 { + *swaps++ + return b, a + } + return a, b +} + +// medianCmpFunc returns x where data[x] is the median of data[a],data[b],data[c], where x is a, b, or c. +func medianCmpFunc[E any](data []E, a, b, c int, swaps *int, cmp func(a, b E) int) int { + a, b = order2CmpFunc(data, a, b, swaps, cmp) + b, c = order2CmpFunc(data, b, c, swaps, cmp) + a, b = order2CmpFunc(data, a, b, swaps, cmp) + return b +} + +// medianAdjacentCmpFunc finds the median of data[a - 1], data[a], data[a + 1] and stores the index into a. +func medianAdjacentCmpFunc[E any](data []E, a int, swaps *int, cmp func(a, b E) int) int { + return medianCmpFunc(data, a-1, a, a+1, swaps, cmp) +} + +func reverseRangeCmpFunc[E any](data []E, a, b int, cmp func(a, b E) int) { + i := a + j := b - 1 + for i < j { + data[i], data[j] = data[j], data[i] + i++ + j-- + } +} + +func swapRangeCmpFunc[E any](data []E, a, b, n int, cmp func(a, b E) int) { + for i := 0; i < n; i++ { + data[a+i], data[b+i] = data[b+i], data[a+i] + } +} + +func stableCmpFunc[E any](data []E, n int, cmp func(a, b E) int) { + blockSize := 20 // must be > 0 + a, b := 0, blockSize + for b <= n { + insertionSortCmpFunc(data, a, b, cmp) + a = b + b += blockSize + } + insertionSortCmpFunc(data, a, n, cmp) + + for blockSize < n { + a, b = 0, 2*blockSize + for b <= n { + symMergeCmpFunc(data, a, a+blockSize, b, cmp) + a = b + b += 2 * blockSize + } + if m := a + blockSize; m < n { + symMergeCmpFunc(data, a, m, n, cmp) + } + blockSize *= 2 + } +} + +// symMergeCmpFunc merges the two sorted subsequences data[a:m] and data[m:b] using +// the SymMerge algorithm from Pok-Son Kim and Arne Kutzner, "Stable Minimum +// Storage Merging by Symmetric Comparisons", in Susanne Albers and Tomasz +// Radzik, editors, Algorithms - ESA 2004, volume 3221 of Lecture Notes in +// Computer Science, pages 714-723. Springer, 2004. +// +// Let M = m-a and N = b-n. Wolog M < N. +// The recursion depth is bound by ceil(log(N+M)). +// The algorithm needs O(M*log(N/M + 1)) calls to data.Less. +// The algorithm needs O((M+N)*log(M)) calls to data.Swap. +// +// The paper gives O((M+N)*log(M)) as the number of assignments assuming a +// rotation algorithm which uses O(M+N+gcd(M+N)) assignments. The argumentation +// in the paper carries through for Swap operations, especially as the block +// swapping rotate uses only O(M+N) Swaps. +// +// symMerge assumes non-degenerate arguments: a < m && m < b. +// Having the caller check this condition eliminates many leaf recursion calls, +// which improves performance. +func symMergeCmpFunc[E any](data []E, a, m, b int, cmp func(a, b E) int) { + // Avoid unnecessary recursions of symMerge + // by direct insertion of data[a] into data[m:b] + // if data[a:m] only contains one element. + if m-a == 1 { + // Use binary search to find the lowest index i + // such that data[i] >= data[a] for m <= i < b. + // Exit the search loop with i == b in case no such index exists. + i := m + j := b + for i < j { + h := int(uint(i+j) >> 1) + if cmp(data[h], data[a]) < 0 { + i = h + 1 + } else { + j = h + } + } + // Swap values until data[a] reaches the position before i. + for k := a; k < i-1; k++ { + data[k], data[k+1] = data[k+1], data[k] + } + return + } + + // Avoid unnecessary recursions of symMerge + // by direct insertion of data[m] into data[a:m] + // if data[m:b] only contains one element. + if b-m == 1 { + // Use binary search to find the lowest index i + // such that data[i] > data[m] for a <= i < m. + // Exit the search loop with i == m in case no such index exists. + i := a + j := m + for i < j { + h := int(uint(i+j) >> 1) + if !(cmp(data[m], data[h]) < 0) { + i = h + 1 + } else { + j = h + } + } + // Swap values until data[m] reaches the position i. + for k := m; k > i; k-- { + data[k], data[k-1] = data[k-1], data[k] + } + return + } + + mid := int(uint(a+b) >> 1) + n := mid + m + var start, r int + if m > mid { + start = n - b + r = mid + } else { + start = a + r = m + } + p := n - 1 + + for start < r { + c := int(uint(start+r) >> 1) + if !(cmp(data[p-c], data[c]) < 0) { + start = c + 1 + } else { + r = c + } + } + + end := n - start + if start < m && m < end { + rotateCmpFunc(data, start, m, end, cmp) + } + if a < start && start < mid { + symMergeCmpFunc(data, a, start, mid, cmp) + } + if mid < end && end < b { + symMergeCmpFunc(data, mid, end, b, cmp) + } +} + +// rotateCmpFunc rotates two consecutive blocks u = data[a:m] and v = data[m:b] in data: +// Data of the form 'x u v y' is changed to 'x v u y'. +// rotate performs at most b-a many calls to data.Swap, +// and it assumes non-degenerate arguments: a < m && m < b. +func rotateCmpFunc[E any](data []E, a, m, b int, cmp func(a, b E) int) { + i := m - a + j := b - m + + for i != j { + if i > j { + swapRangeCmpFunc(data, m-i, m, j, cmp) + i -= j + } else { + swapRangeCmpFunc(data, m-i, m+j-i, i, cmp) + j -= i + } + } + // i == j + swapRangeCmpFunc(data, m-i, m, i, cmp) +} diff --git a/stdlib/generic/go1_22_sync_atomic_type.go.txt b/stdlib/generic/go1_22_sync_atomic_type.go.txt new file mode 100644 index 000000000..179fa9309 --- /dev/null +++ b/stdlib/generic/go1_22_sync_atomic_type.go.txt @@ -0,0 +1,200 @@ +// Copyright 2022 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. + +package atomic + +import "unsafe" + +// A Bool is an atomic boolean value. +// The zero value is false. +type Bool struct { + _ noCopy + v uint32 +} + +// Load atomically loads and returns the value stored in x. +func (x *Bool) Load() bool { return LoadUint32(&x.v) != 0 } + +// Store atomically stores val into x. +func (x *Bool) Store(val bool) { StoreUint32(&x.v, b32(val)) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 } + +// CompareAndSwap executes the compare-and-swap operation for the boolean value x. +func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) { + return CompareAndSwapUint32(&x.v, b32(old), b32(new)) +} + +// b32 returns a uint32 0 or 1 representing b. +func b32(b bool) uint32 { + if b { + return 1 + } + return 0 +} + +// For testing *Pointer[T]'s methods can be inlined. +// Keep in sync with cmd/compile/internal/test/inl_test.go:TestIntendedInlining. +var _ = &Pointer[int]{} + +// A Pointer is an atomic pointer of type *T. The zero value is a nil *T. +type Pointer[T any] struct { + // Mention *T in a field to disallow conversion between Pointer types. + // See go.dev/issue/56603 for more details. + // Use *T, not T, to avoid spurious recursive type definition errors. + _ [0]*T + + _ noCopy + v unsafe.Pointer +} + +// Load atomically loads and returns the value stored in x. +func (x *Pointer[T]) Load() *T { return (*T)(LoadPointer(&x.v)) } + +// Store atomically stores val into x. +func (x *Pointer[T]) Store(val *T) { StorePointer(&x.v, unsafe.Pointer(val)) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Pointer[T]) Swap(new *T) (old *T) { return (*T)(SwapPointer(&x.v, unsafe.Pointer(new))) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Pointer[T]) CompareAndSwap(old, new *T) (swapped bool) { + return CompareAndSwapPointer(&x.v, unsafe.Pointer(old), unsafe.Pointer(new)) +} + +// An Int32 is an atomic int32. The zero value is zero. +type Int32 struct { + _ noCopy + v int32 +} + +// Load atomically loads and returns the value stored in x. +func (x *Int32) Load() int32 { return LoadInt32(&x.v) } + +// Store atomically stores val into x. +func (x *Int32) Store(val int32) { StoreInt32(&x.v, val) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Int32) Swap(new int32) (old int32) { return SwapInt32(&x.v, new) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Int32) CompareAndSwap(old, new int32) (swapped bool) { + return CompareAndSwapInt32(&x.v, old, new) +} + +// Add atomically adds delta to x and returns the new value. +func (x *Int32) Add(delta int32) (new int32) { return AddInt32(&x.v, delta) } + +// An Int64 is an atomic int64. The zero value is zero. +type Int64 struct { + _ noCopy + _ align64 + v int64 +} + +// Load atomically loads and returns the value stored in x. +func (x *Int64) Load() int64 { return LoadInt64(&x.v) } + +// Store atomically stores val into x. +func (x *Int64) Store(val int64) { StoreInt64(&x.v, val) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Int64) Swap(new int64) (old int64) { return SwapInt64(&x.v, new) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Int64) CompareAndSwap(old, new int64) (swapped bool) { + return CompareAndSwapInt64(&x.v, old, new) +} + +// Add atomically adds delta to x and returns the new value. +func (x *Int64) Add(delta int64) (new int64) { return AddInt64(&x.v, delta) } + +// A Uint32 is an atomic uint32. The zero value is zero. +type Uint32 struct { + _ noCopy + v uint32 +} + +// Load atomically loads and returns the value stored in x. +func (x *Uint32) Load() uint32 { return LoadUint32(&x.v) } + +// Store atomically stores val into x. +func (x *Uint32) Store(val uint32) { StoreUint32(&x.v, val) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Uint32) Swap(new uint32) (old uint32) { return SwapUint32(&x.v, new) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Uint32) CompareAndSwap(old, new uint32) (swapped bool) { + return CompareAndSwapUint32(&x.v, old, new) +} + +// Add atomically adds delta to x and returns the new value. +func (x *Uint32) Add(delta uint32) (new uint32) { return AddUint32(&x.v, delta) } + +// A Uint64 is an atomic uint64. The zero value is zero. +type Uint64 struct { + _ noCopy + _ align64 + v uint64 +} + +// Load atomically loads and returns the value stored in x. +func (x *Uint64) Load() uint64 { return LoadUint64(&x.v) } + +// Store atomically stores val into x. +func (x *Uint64) Store(val uint64) { StoreUint64(&x.v, val) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Uint64) Swap(new uint64) (old uint64) { return SwapUint64(&x.v, new) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Uint64) CompareAndSwap(old, new uint64) (swapped bool) { + return CompareAndSwapUint64(&x.v, old, new) +} + +// Add atomically adds delta to x and returns the new value. +func (x *Uint64) Add(delta uint64) (new uint64) { return AddUint64(&x.v, delta) } + +// A Uintptr is an atomic uintptr. The zero value is zero. +type Uintptr struct { + _ noCopy + v uintptr +} + +// Load atomically loads and returns the value stored in x. +func (x *Uintptr) Load() uintptr { return LoadUintptr(&x.v) } + +// Store atomically stores val into x. +func (x *Uintptr) Store(val uintptr) { StoreUintptr(&x.v, val) } + +// Swap atomically stores new into x and returns the previous value. +func (x *Uintptr) Swap(new uintptr) (old uintptr) { return SwapUintptr(&x.v, new) } + +// CompareAndSwap executes the compare-and-swap operation for x. +func (x *Uintptr) CompareAndSwap(old, new uintptr) (swapped bool) { + return CompareAndSwapUintptr(&x.v, old, new) +} + +// Add atomically adds delta to x and returns the new value. +func (x *Uintptr) Add(delta uintptr) (new uintptr) { return AddUintptr(&x.v, delta) } + +// noCopy may be added to structs which must not be copied +// after the first use. +// +// See https://golang.org/issues/8005#issuecomment-190753527 +// for details. +// +// Note that it must not be embedded, due to the Lock and Unlock methods. +type noCopy struct{} + +// Lock is a no-op used by -copylocks checker from `go vet`. +func (*noCopy) Lock() {} +func (*noCopy) Unlock() {} + +// align64 may be added to structs that must be 64-bit aligned. +// This struct is recognized by a special case in the compiler +// and will not work if copied to any other package. +type align64 struct{} diff --git a/stdlib/generic/go1_22_sync_oncefunc.go.txt b/stdlib/generic/go1_22_sync_oncefunc.go.txt new file mode 100644 index 000000000..db286283d --- /dev/null +++ b/stdlib/generic/go1_22_sync_oncefunc.go.txt @@ -0,0 +1,100 @@ +// Copyright 2022 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. + +package sync + +// OnceFunc returns a function that invokes f only once. The returned function +// may be called concurrently. +// +// If f panics, the returned function will panic with the same value on every call. +func OnceFunc(f func()) func() { + var ( + once Once + valid bool + p any + ) + // Construct the inner closure just once to reduce costs on the fast path. + g := func() { + defer func() { + p = recover() + if !valid { + // Re-panic immediately so on the first call the user gets a + // complete stack trace into f. + panic(p) + } + }() + f() + f = nil // Do not keep f alive after invoking it. + valid = true // Set only if f does not panic. + } + return func() { + once.Do(g) + if !valid { + panic(p) + } + } +} + +// OnceValue returns a function that invokes f only once and returns the value +// returned by f. The returned function may be called concurrently. +// +// If f panics, the returned function will panic with the same value on every call. +func OnceValue[T any](f func() T) func() T { + var ( + once Once + valid bool + p any + result T + ) + g := func() { + defer func() { + p = recover() + if !valid { + panic(p) + } + }() + result = f() + f = nil + valid = true + } + return func() T { + once.Do(g) + if !valid { + panic(p) + } + return result + } +} + +// OnceValues returns a function that invokes f only once and returns the values +// returned by f. The returned function may be called concurrently. +// +// If f panics, the returned function will panic with the same value on every call. +func OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) { + var ( + once Once + valid bool + p any + r1 T1 + r2 T2 + ) + g := func() { + defer func() { + p = recover() + if !valid { + panic(p) + } + }() + r1, r2 = f() + f = nil + valid = true + } + return func() (T1, T2) { + once.Do(g) + if !valid { + panic(p) + } + return r1, r2 + } +} diff --git a/stdlib/go1_20_crypto_tls.go b/stdlib/go1_20_crypto_tls.go deleted file mode 100644 index a4da97bea..000000000 --- a/stdlib/go1_20_crypto_tls.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by 'yaegi extract crypto/tls'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package stdlib - -import ( - "crypto/tls" - "go/constant" - "go/token" - "reflect" -) - -func init() { - Symbols["crypto/tls/tls"] = map[string]reflect.Value{ - // function, constant and variable definitions - "CipherSuiteName": reflect.ValueOf(tls.CipherSuiteName), - "CipherSuites": reflect.ValueOf(tls.CipherSuites), - "Client": reflect.ValueOf(tls.Client), - "CurveP256": reflect.ValueOf(tls.CurveP256), - "CurveP384": reflect.ValueOf(tls.CurveP384), - "CurveP521": reflect.ValueOf(tls.CurveP521), - "Dial": reflect.ValueOf(tls.Dial), - "DialWithDialer": reflect.ValueOf(tls.DialWithDialer), - "ECDSAWithP256AndSHA256": reflect.ValueOf(tls.ECDSAWithP256AndSHA256), - "ECDSAWithP384AndSHA384": reflect.ValueOf(tls.ECDSAWithP384AndSHA384), - "ECDSAWithP521AndSHA512": reflect.ValueOf(tls.ECDSAWithP521AndSHA512), - "ECDSAWithSHA1": reflect.ValueOf(tls.ECDSAWithSHA1), - "Ed25519": reflect.ValueOf(tls.Ed25519), - "InsecureCipherSuites": reflect.ValueOf(tls.InsecureCipherSuites), - "Listen": reflect.ValueOf(tls.Listen), - "LoadX509KeyPair": reflect.ValueOf(tls.LoadX509KeyPair), - "NewLRUClientSessionCache": reflect.ValueOf(tls.NewLRUClientSessionCache), - "NewListener": reflect.ValueOf(tls.NewListener), - "NoClientCert": reflect.ValueOf(tls.NoClientCert), - "PKCS1WithSHA1": reflect.ValueOf(tls.PKCS1WithSHA1), - "PKCS1WithSHA256": reflect.ValueOf(tls.PKCS1WithSHA256), - "PKCS1WithSHA384": reflect.ValueOf(tls.PKCS1WithSHA384), - "PKCS1WithSHA512": reflect.ValueOf(tls.PKCS1WithSHA512), - "PSSWithSHA256": reflect.ValueOf(tls.PSSWithSHA256), - "PSSWithSHA384": reflect.ValueOf(tls.PSSWithSHA384), - "PSSWithSHA512": reflect.ValueOf(tls.PSSWithSHA512), - "RenegotiateFreelyAsClient": reflect.ValueOf(tls.RenegotiateFreelyAsClient), - "RenegotiateNever": reflect.ValueOf(tls.RenegotiateNever), - "RenegotiateOnceAsClient": reflect.ValueOf(tls.RenegotiateOnceAsClient), - "RequestClientCert": reflect.ValueOf(tls.RequestClientCert), - "RequireAndVerifyClientCert": reflect.ValueOf(tls.RequireAndVerifyClientCert), - "RequireAnyClientCert": reflect.ValueOf(tls.RequireAnyClientCert), - "Server": reflect.ValueOf(tls.Server), - "TLS_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_AES_128_GCM_SHA256), - "TLS_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_AES_256_GCM_SHA384), - "TLS_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_CHACHA20_POLY1305_SHA256), - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA), - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256), - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256), - "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA), - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384), - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305), - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256), - "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA), - "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA), - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA), - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256), - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), - "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384), - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305), - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256), - "TLS_ECDHE_RSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA), - "TLS_FALLBACK_SCSV": reflect.ValueOf(tls.TLS_FALLBACK_SCSV), - "TLS_RSA_WITH_3DES_EDE_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA), - "TLS_RSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_CBC_SHA), - "TLS_RSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_CBC_SHA256), - "TLS_RSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_GCM_SHA256), - "TLS_RSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_AES_256_CBC_SHA), - "TLS_RSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_RSA_WITH_AES_256_GCM_SHA384), - "TLS_RSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_RC4_128_SHA), - "VerifyClientCertIfGiven": reflect.ValueOf(tls.VerifyClientCertIfGiven), - "VersionSSL30": reflect.ValueOf(constant.MakeFromLiteral("768", token.INT, 0)), - "VersionTLS10": reflect.ValueOf(constant.MakeFromLiteral("769", token.INT, 0)), - "VersionTLS11": reflect.ValueOf(constant.MakeFromLiteral("770", token.INT, 0)), - "VersionTLS12": reflect.ValueOf(constant.MakeFromLiteral("771", token.INT, 0)), - "VersionTLS13": reflect.ValueOf(constant.MakeFromLiteral("772", token.INT, 0)), - "X25519": reflect.ValueOf(tls.X25519), - "X509KeyPair": reflect.ValueOf(tls.X509KeyPair), - - // type definitions - "Certificate": reflect.ValueOf((*tls.Certificate)(nil)), - "CertificateRequestInfo": reflect.ValueOf((*tls.CertificateRequestInfo)(nil)), - "CertificateVerificationError": reflect.ValueOf((*tls.CertificateVerificationError)(nil)), - "CipherSuite": reflect.ValueOf((*tls.CipherSuite)(nil)), - "ClientAuthType": reflect.ValueOf((*tls.ClientAuthType)(nil)), - "ClientHelloInfo": reflect.ValueOf((*tls.ClientHelloInfo)(nil)), - "ClientSessionCache": reflect.ValueOf((*tls.ClientSessionCache)(nil)), - "ClientSessionState": reflect.ValueOf((*tls.ClientSessionState)(nil)), - "Config": reflect.ValueOf((*tls.Config)(nil)), - "Conn": reflect.ValueOf((*tls.Conn)(nil)), - "ConnectionState": reflect.ValueOf((*tls.ConnectionState)(nil)), - "CurveID": reflect.ValueOf((*tls.CurveID)(nil)), - "Dialer": reflect.ValueOf((*tls.Dialer)(nil)), - "RecordHeaderError": reflect.ValueOf((*tls.RecordHeaderError)(nil)), - "RenegotiationSupport": reflect.ValueOf((*tls.RenegotiationSupport)(nil)), - "SignatureScheme": reflect.ValueOf((*tls.SignatureScheme)(nil)), - - // interface wrapper definitions - "_ClientSessionCache": reflect.ValueOf((*_crypto_tls_ClientSessionCache)(nil)), - } -} - -// _crypto_tls_ClientSessionCache is an interface wrapper for ClientSessionCache type -type _crypto_tls_ClientSessionCache struct { - IValue interface{} - WGet func(sessionKey string) (session *tls.ClientSessionState, ok bool) - WPut func(sessionKey string, cs *tls.ClientSessionState) -} - -func (W _crypto_tls_ClientSessionCache) Get(sessionKey string) (session *tls.ClientSessionState, ok bool) { - return W.WGet(sessionKey) -} -func (W _crypto_tls_ClientSessionCache) Put(sessionKey string, cs *tls.ClientSessionState) { - W.WPut(sessionKey, cs) -} diff --git a/stdlib/go1_20_errors.go b/stdlib/go1_20_errors.go deleted file mode 100644 index 3f19b38d1..000000000 --- a/stdlib/go1_20_errors.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by 'yaegi extract errors'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package stdlib - -import ( - "errors" - "reflect" -) - -func init() { - Symbols["errors/errors"] = map[string]reflect.Value{ - // function, constant and variable definitions - "As": reflect.ValueOf(errors.As), - "Is": reflect.ValueOf(errors.Is), - "Join": reflect.ValueOf(errors.Join), - "New": reflect.ValueOf(errors.New), - "Unwrap": reflect.ValueOf(errors.Unwrap), - } -} diff --git a/stdlib/go1_21_archive_tar.go b/stdlib/go1_21_archive_tar.go index aecb0164d..5916f90f9 100644 --- a/stdlib/go1_21_archive_tar.go +++ b/stdlib/go1_21_archive_tar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract archive/tar'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_archive_zip.go b/stdlib/go1_21_archive_zip.go index 1f8b288c8..b68b2a312 100644 --- a/stdlib/go1_21_archive_zip.go +++ b/stdlib/go1_21_archive_zip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_bufio.go b/stdlib/go1_21_bufio.go index dae627fae..3dfde7708 100644 --- a/stdlib/go1_21_bufio.go +++ b/stdlib/go1_21_bufio.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract bufio'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_bytes.go b/stdlib/go1_21_bytes.go index 93bae1797..039c3e2d7 100644 --- a/stdlib/go1_21_bytes.go +++ b/stdlib/go1_21_bytes.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract bytes'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_cmp.go b/stdlib/go1_21_cmp.go index 8dd3b081f..d5a2f1583 100644 --- a/stdlib/go1_21_cmp.go +++ b/stdlib/go1_21_cmp.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract cmp'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_compress_bzip2.go b/stdlib/go1_21_compress_bzip2.go index 047cc1fc0..07397b200 100644 --- a/stdlib/go1_21_compress_bzip2.go +++ b/stdlib/go1_21_compress_bzip2.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_compress_flate.go b/stdlib/go1_21_compress_flate.go index 2fa29a3df..84738370d 100644 --- a/stdlib/go1_21_compress_flate.go +++ b/stdlib/go1_21_compress_flate.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/flate'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_compress_gzip.go b/stdlib/go1_21_compress_gzip.go index 32003d932..6be4560fc 100644 --- a/stdlib/go1_21_compress_gzip.go +++ b/stdlib/go1_21_compress_gzip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_compress_lzw.go b/stdlib/go1_21_compress_lzw.go index 70d7725a2..f281c453f 100644 --- a/stdlib/go1_21_compress_lzw.go +++ b/stdlib/go1_21_compress_lzw.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_compress_zlib.go b/stdlib/go1_21_compress_zlib.go index 3795097a2..0d27a5d31 100644 --- a/stdlib/go1_21_compress_zlib.go +++ b/stdlib/go1_21_compress_zlib.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/zlib'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_container_heap.go b/stdlib/go1_21_container_heap.go index 97940ba5d..874a9e63a 100644 --- a/stdlib/go1_21_container_heap.go +++ b/stdlib/go1_21_container_heap.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_container_list.go b/stdlib/go1_21_container_list.go index 9730ce89d..a6dbb6016 100644 --- a/stdlib/go1_21_container_list.go +++ b/stdlib/go1_21_container_list.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/list'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_container_ring.go b/stdlib/go1_21_container_ring.go index 8baec1d33..c2cbb03a3 100644 --- a/stdlib/go1_21_container_ring.go +++ b/stdlib/go1_21_container_ring.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_context.go b/stdlib/go1_21_context.go index f461e793d..18e432886 100644 --- a/stdlib/go1_21_context.go +++ b/stdlib/go1_21_context.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract context'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto.go b/stdlib/go1_21_crypto.go index d017dd379..d07187df8 100644 --- a/stdlib/go1_21_crypto.go +++ b/stdlib/go1_21_crypto.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_aes.go b/stdlib/go1_21_crypto_aes.go index 76f15ef65..6968c662c 100644 --- a/stdlib/go1_21_crypto_aes.go +++ b/stdlib/go1_21_crypto_aes.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_cipher.go b/stdlib/go1_21_crypto_cipher.go index 9488eb84d..557b4efbc 100644 --- a/stdlib/go1_21_crypto_cipher.go +++ b/stdlib/go1_21_crypto_cipher.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/cipher'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_des.go b/stdlib/go1_21_crypto_des.go index 04ea2193d..fe547e2f6 100644 --- a/stdlib/go1_21_crypto_des.go +++ b/stdlib/go1_21_crypto_des.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_dsa.go b/stdlib/go1_21_crypto_dsa.go index 0c11e8f3d..3671ead14 100644 --- a/stdlib/go1_21_crypto_dsa.go +++ b/stdlib/go1_21_crypto_dsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_ecdh.go b/stdlib/go1_21_crypto_ecdh.go index a17fbc729..a99388e84 100644 --- a/stdlib/go1_21_crypto_ecdh.go +++ b/stdlib/go1_21_crypto_ecdh.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ecdh'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_ecdsa.go b/stdlib/go1_21_crypto_ecdsa.go index 03a25b42a..38477fe62 100644 --- a/stdlib/go1_21_crypto_ecdsa.go +++ b/stdlib/go1_21_crypto_ecdsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_ed25519.go b/stdlib/go1_21_crypto_ed25519.go index 273bcd726..4ad87948c 100644 --- a/stdlib/go1_21_crypto_ed25519.go +++ b/stdlib/go1_21_crypto_ed25519.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_elliptic.go b/stdlib/go1_21_crypto_elliptic.go index a49866ae8..580057170 100644 --- a/stdlib/go1_21_crypto_elliptic.go +++ b/stdlib/go1_21_crypto_elliptic.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/elliptic'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_hmac.go b/stdlib/go1_21_crypto_hmac.go index fadbd824a..7a891be1f 100644 --- a/stdlib/go1_21_crypto_hmac.go +++ b/stdlib/go1_21_crypto_hmac.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_md5.go b/stdlib/go1_21_crypto_md5.go index ce401fd25..96ee7e8e6 100644 --- a/stdlib/go1_21_crypto_md5.go +++ b/stdlib/go1_21_crypto_md5.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_rand.go b/stdlib/go1_21_crypto_rand.go index ee9433c79..448e77827 100644 --- a/stdlib/go1_21_crypto_rand.go +++ b/stdlib/go1_21_crypto_rand.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_rc4.go b/stdlib/go1_21_crypto_rc4.go index 435b0a50b..e9f2ed6c4 100644 --- a/stdlib/go1_21_crypto_rc4.go +++ b/stdlib/go1_21_crypto_rc4.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_rsa.go b/stdlib/go1_21_crypto_rsa.go index 10bf636c3..b0ea7615f 100644 --- a/stdlib/go1_21_crypto_rsa.go +++ b/stdlib/go1_21_crypto_rsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rsa'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_sha1.go b/stdlib/go1_21_crypto_sha1.go index c6bb6fa6a..2e7c5a26e 100644 --- a/stdlib/go1_21_crypto_sha1.go +++ b/stdlib/go1_21_crypto_sha1.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_sha256.go b/stdlib/go1_21_crypto_sha256.go index 612a1d6fd..43bd85b66 100644 --- a/stdlib/go1_21_crypto_sha256.go +++ b/stdlib/go1_21_crypto_sha256.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_sha512.go b/stdlib/go1_21_crypto_sha512.go index 682645563..ccc79d14c 100644 --- a/stdlib/go1_21_crypto_sha512.go +++ b/stdlib/go1_21_crypto_sha512.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_subtle.go b/stdlib/go1_21_crypto_subtle.go index 6302a3406..e5eb31961 100644 --- a/stdlib/go1_21_crypto_subtle.go +++ b/stdlib/go1_21_crypto_subtle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_tls.go b/stdlib/go1_21_crypto_tls.go index ff3a4ef1f..b875576ac 100644 --- a/stdlib/go1_21_crypto_tls.go +++ b/stdlib/go1_21_crypto_tls.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/tls'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_x509.go b/stdlib/go1_21_crypto_x509.go index d0d1373a9..754019480 100644 --- a/stdlib/go1_21_crypto_x509.go +++ b/stdlib/go1_21_crypto_x509.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/x509'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_crypto_x509_pkix.go b/stdlib/go1_21_crypto_x509_pkix.go index 4a12dca29..b2e001b23 100644 --- a/stdlib/go1_21_crypto_x509_pkix.go +++ b/stdlib/go1_21_crypto_x509_pkix.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_database_sql.go b/stdlib/go1_21_database_sql.go index 71fa61b82..252bbd2ea 100644 --- a/stdlib/go1_21_database_sql.go +++ b/stdlib/go1_21_database_sql.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract database/sql'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_database_sql_driver.go b/stdlib/go1_21_database_sql_driver.go index 0400475f1..af8656399 100644 --- a/stdlib/go1_21_database_sql_driver.go +++ b/stdlib/go1_21_database_sql_driver.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract database/sql/driver'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_buildinfo.go b/stdlib/go1_21_debug_buildinfo.go index 449cf8c10..4023c87cc 100644 --- a/stdlib/go1_21_debug_buildinfo.go +++ b/stdlib/go1_21_debug_buildinfo.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/buildinfo'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_dwarf.go b/stdlib/go1_21_debug_dwarf.go index 25370852a..7a1770e9f 100644 --- a/stdlib/go1_21_debug_dwarf.go +++ b/stdlib/go1_21_debug_dwarf.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/dwarf'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_elf.go b/stdlib/go1_21_debug_elf.go index 49569c132..4873eadcf 100644 --- a/stdlib/go1_21_debug_elf.go +++ b/stdlib/go1_21_debug_elf.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/elf'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_gosym.go b/stdlib/go1_21_debug_gosym.go index 804cb1ea3..0c3ada18b 100644 --- a/stdlib/go1_21_debug_gosym.go +++ b/stdlib/go1_21_debug_gosym.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_macho.go b/stdlib/go1_21_debug_macho.go index e1712c42c..8c44ed888 100644 --- a/stdlib/go1_21_debug_macho.go +++ b/stdlib/go1_21_debug_macho.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/macho'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_pe.go b/stdlib/go1_21_debug_pe.go index d130a502d..60201b097 100644 --- a/stdlib/go1_21_debug_pe.go +++ b/stdlib/go1_21_debug_pe.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/pe'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_debug_plan9obj.go b/stdlib/go1_21_debug_plan9obj.go index 4d9883b7f..936eb3c55 100644 --- a/stdlib/go1_21_debug_plan9obj.go +++ b/stdlib/go1_21_debug_plan9obj.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding.go b/stdlib/go1_21_encoding.go index 67d19d6df..29017684d 100644 --- a/stdlib/go1_21_encoding.go +++ b/stdlib/go1_21_encoding.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_ascii85.go b/stdlib/go1_21_encoding_ascii85.go index 45b99bdaf..34e9ef628 100644 --- a/stdlib/go1_21_encoding_ascii85.go +++ b/stdlib/go1_21_encoding_ascii85.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_asn1.go b/stdlib/go1_21_encoding_asn1.go index 231b66e4c..afcec3a6c 100644 --- a/stdlib/go1_21_encoding_asn1.go +++ b/stdlib/go1_21_encoding_asn1.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/asn1'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_base32.go b/stdlib/go1_21_encoding_base32.go index e7bc47827..080c13985 100644 --- a/stdlib/go1_21_encoding_base32.go +++ b/stdlib/go1_21_encoding_base32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_base64.go b/stdlib/go1_21_encoding_base64.go index 039f9970b..ce7bcf6cd 100644 --- a/stdlib/go1_21_encoding_base64.go +++ b/stdlib/go1_21_encoding_base64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_binary.go b/stdlib/go1_21_encoding_binary.go index ba2da57dc..466b3a3bd 100644 --- a/stdlib/go1_21_encoding_binary.go +++ b/stdlib/go1_21_encoding_binary.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/binary'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_csv.go b/stdlib/go1_21_encoding_csv.go index 78cda1af5..a7093ce4f 100644 --- a/stdlib/go1_21_encoding_csv.go +++ b/stdlib/go1_21_encoding_csv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_gob.go b/stdlib/go1_21_encoding_gob.go index fc5804df5..2501263d6 100644 --- a/stdlib/go1_21_encoding_gob.go +++ b/stdlib/go1_21_encoding_gob.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_hex.go b/stdlib/go1_21_encoding_hex.go index 2138e12fd..53b8d7eb2 100644 --- a/stdlib/go1_21_encoding_hex.go +++ b/stdlib/go1_21_encoding_hex.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_json.go b/stdlib/go1_21_encoding_json.go index 18c8c1b1d..433c48b08 100644 --- a/stdlib/go1_21_encoding_json.go +++ b/stdlib/go1_21_encoding_json.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/json'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_pem.go b/stdlib/go1_21_encoding_pem.go index 3894bd071..df6a9ad7d 100644 --- a/stdlib/go1_21_encoding_pem.go +++ b/stdlib/go1_21_encoding_pem.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_encoding_xml.go b/stdlib/go1_21_encoding_xml.go index cbdd785a4..9d38b2226 100644 --- a/stdlib/go1_21_encoding_xml.go +++ b/stdlib/go1_21_encoding_xml.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_errors.go b/stdlib/go1_21_errors.go index 88c887551..aef49fcba 100644 --- a/stdlib/go1_21_errors.go +++ b/stdlib/go1_21_errors.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract errors'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_expvar.go b/stdlib/go1_21_expvar.go index 7bb3dd557..facbfc878 100644 --- a/stdlib/go1_21_expvar.go +++ b/stdlib/go1_21_expvar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract expvar'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_flag.go b/stdlib/go1_21_flag.go index c9b5d737c..91abe9a78 100644 --- a/stdlib/go1_21_flag.go +++ b/stdlib/go1_21_flag.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract flag'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_fmt.go b/stdlib/go1_21_fmt.go index 15e5f494e..a6ba4d49f 100644 --- a/stdlib/go1_21_fmt.go +++ b/stdlib/go1_21_fmt.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract fmt'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_ast.go b/stdlib/go1_21_go_ast.go index 6175248a2..48a918662 100644 --- a/stdlib/go1_21_go_ast.go +++ b/stdlib/go1_21_go_ast.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/ast'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_build.go b/stdlib/go1_21_go_build.go index 064560512..f9675e329 100644 --- a/stdlib/go1_21_go_build.go +++ b/stdlib/go1_21_go_build.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/build'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_build_constraint.go b/stdlib/go1_21_go_build_constraint.go index 38c2beffa..c4616facc 100644 --- a/stdlib/go1_21_go_build_constraint.go +++ b/stdlib/go1_21_go_build_constraint.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/build/constraint'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_constant.go b/stdlib/go1_21_go_constant.go index 0e4a47744..e117c69fb 100644 --- a/stdlib/go1_21_go_constant.go +++ b/stdlib/go1_21_go_constant.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_doc.go b/stdlib/go1_21_go_doc.go index a73bf83e8..7f101394b 100644 --- a/stdlib/go1_21_go_doc.go +++ b/stdlib/go1_21_go_doc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/doc'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_doc_comment.go b/stdlib/go1_21_go_doc_comment.go index d981cc813..ac2747d80 100644 --- a/stdlib/go1_21_go_doc_comment.go +++ b/stdlib/go1_21_go_doc_comment.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/doc/comment'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_format.go b/stdlib/go1_21_go_format.go index 0a2d06ea4..8e3c63992 100644 --- a/stdlib/go1_21_go_format.go +++ b/stdlib/go1_21_go_format.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/format'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_importer.go b/stdlib/go1_21_go_importer.go index 00e43d68f..36d3b10a8 100644 --- a/stdlib/go1_21_go_importer.go +++ b/stdlib/go1_21_go_importer.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_parser.go b/stdlib/go1_21_go_parser.go index 796efec8b..29fc0986f 100644 --- a/stdlib/go1_21_go_parser.go +++ b/stdlib/go1_21_go_parser.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/parser'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_printer.go b/stdlib/go1_21_go_printer.go index 94c653cd9..d9d27d549 100644 --- a/stdlib/go1_21_go_printer.go +++ b/stdlib/go1_21_go_printer.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_scanner.go b/stdlib/go1_21_go_scanner.go index 0d59bb907..7b1443d64 100644 --- a/stdlib/go1_21_go_scanner.go +++ b/stdlib/go1_21_go_scanner.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_token.go b/stdlib/go1_21_go_token.go index 6a4a57dc2..4fb48c4a8 100644 --- a/stdlib/go1_21_go_token.go +++ b/stdlib/go1_21_go_token.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/token'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_go_types.go b/stdlib/go1_21_go_types.go index 2757aa6dc..b0802455e 100644 --- a/stdlib/go1_21_go_types.go +++ b/stdlib/go1_21_go_types.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/types'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash.go b/stdlib/go1_21_hash.go index d29cd8d12..12789f727 100644 --- a/stdlib/go1_21_hash.go +++ b/stdlib/go1_21_hash.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash_adler32.go b/stdlib/go1_21_hash_adler32.go index 61ff99760..cae64c582 100644 --- a/stdlib/go1_21_hash_adler32.go +++ b/stdlib/go1_21_hash_adler32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash_crc32.go b/stdlib/go1_21_hash_crc32.go index b683b756a..680b9e6cf 100644 --- a/stdlib/go1_21_hash_crc32.go +++ b/stdlib/go1_21_hash_crc32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash_crc64.go b/stdlib/go1_21_hash_crc64.go index d4808f204..acb8452d4 100644 --- a/stdlib/go1_21_hash_crc64.go +++ b/stdlib/go1_21_hash_crc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash_fnv.go b/stdlib/go1_21_hash_fnv.go index 98c264aba..906a5e3d6 100644 --- a/stdlib/go1_21_hash_fnv.go +++ b/stdlib/go1_21_hash_fnv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_hash_maphash.go b/stdlib/go1_21_hash_maphash.go index b11b84a91..11b412e7e 100644 --- a/stdlib/go1_21_hash_maphash.go +++ b/stdlib/go1_21_hash_maphash.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_html.go b/stdlib/go1_21_html.go index 101bf23d4..a9ddaa23d 100644 --- a/stdlib/go1_21_html.go +++ b/stdlib/go1_21_html.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract html'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_html_template.go b/stdlib/go1_21_html_template.go index 236ec3a0d..8dbf5ebc7 100644 --- a/stdlib/go1_21_html_template.go +++ b/stdlib/go1_21_html_template.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract html/template'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image.go b/stdlib/go1_21_image.go index 3ab1a6c0c..a88455e37 100644 --- a/stdlib/go1_21_image.go +++ b/stdlib/go1_21_image.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_color.go b/stdlib/go1_21_image_color.go index 02ebbbf66..08ed8192a 100644 --- a/stdlib/go1_21_image_color.go +++ b/stdlib/go1_21_image_color.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/color'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_color_palette.go b/stdlib/go1_21_image_color_palette.go index 3ca43d10e..44dc99f0d 100644 --- a/stdlib/go1_21_image_color_palette.go +++ b/stdlib/go1_21_image_color_palette.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_draw.go b/stdlib/go1_21_image_draw.go index 7745bbc4f..94224ffba 100644 --- a/stdlib/go1_21_image_draw.go +++ b/stdlib/go1_21_image_draw.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/draw'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_gif.go b/stdlib/go1_21_image_gif.go index 2fad82348..411c9633c 100644 --- a/stdlib/go1_21_image_gif.go +++ b/stdlib/go1_21_image_gif.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/gif'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_jpeg.go b/stdlib/go1_21_image_jpeg.go index 7bc129cc2..39aa2cdd7 100644 --- a/stdlib/go1_21_image_jpeg.go +++ b/stdlib/go1_21_image_jpeg.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_image_png.go b/stdlib/go1_21_image_png.go index d7a723d02..e0f79a9e5 100644 --- a/stdlib/go1_21_image_png.go +++ b/stdlib/go1_21_image_png.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/png'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_index_suffixarray.go b/stdlib/go1_21_index_suffixarray.go index 1e6b3667f..f2f86e068 100644 --- a/stdlib/go1_21_index_suffixarray.go +++ b/stdlib/go1_21_index_suffixarray.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_io.go b/stdlib/go1_21_io.go index 9415f82e0..792f4d676 100644 --- a/stdlib/go1_21_io.go +++ b/stdlib/go1_21_io.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_io_fs.go b/stdlib/go1_21_io_fs.go index 82ec06c8d..eb4185e77 100644 --- a/stdlib/go1_21_io_fs.go +++ b/stdlib/go1_21_io_fs.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io/fs'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_io_ioutil.go b/stdlib/go1_21_io_ioutil.go index ea1982de6..252a7ea9a 100644 --- a/stdlib/go1_21_io_ioutil.go +++ b/stdlib/go1_21_io_ioutil.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_log.go b/stdlib/go1_21_log.go index b98550166..aee993f15 100644 --- a/stdlib/go1_21_log.go +++ b/stdlib/go1_21_log.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract log'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_log_slog.go b/stdlib/go1_21_log_slog.go index 16f0d2c81..8073a9029 100644 --- a/stdlib/go1_21_log_slog.go +++ b/stdlib/go1_21_log_slog.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract log/slog'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_log_syslog.go b/stdlib/go1_21_log_syslog.go index 28d552ae9..d98129641 100644 --- a/stdlib/go1_21_log_syslog.go +++ b/stdlib/go1_21_log_syslog.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract log/syslog'. DO NOT EDIT. -//go:build go1.21 && !windows && !nacl && !plan9 -// +build go1.21,!windows,!nacl,!plan9 +//go:build go1.21 && !go1.22 && !windows && !nacl && !plan9 +// +build go1.21,!go1.22,!windows,!nacl,!plan9 package stdlib diff --git a/stdlib/go1_21_maps.go b/stdlib/go1_21_maps.go index 4002a484d..c3c0387b9 100644 --- a/stdlib/go1_21_maps.go +++ b/stdlib/go1_21_maps.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract maps'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_math.go b/stdlib/go1_21_math.go index 2fddb9035..8e8775331 100644 --- a/stdlib/go1_21_math.go +++ b/stdlib/go1_21_math.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_math_big.go b/stdlib/go1_21_math_big.go index c76a2797a..8d4fdd7c4 100644 --- a/stdlib/go1_21_math_big.go +++ b/stdlib/go1_21_math_big.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/big'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_math_bits.go b/stdlib/go1_21_math_bits.go index 1d7aa8d66..0db896f49 100644 --- a/stdlib/go1_21_math_bits.go +++ b/stdlib/go1_21_math_bits.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/bits'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_math_cmplx.go b/stdlib/go1_21_math_cmplx.go index 141865132..4f12fe526 100644 --- a/stdlib/go1_21_math_cmplx.go +++ b/stdlib/go1_21_math_cmplx.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_math_rand.go b/stdlib/go1_21_math_rand.go index 709e19440..90a867298 100644 --- a/stdlib/go1_21_math_rand.go +++ b/stdlib/go1_21_math_rand.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/rand'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_mime.go b/stdlib/go1_21_mime.go index dcaeb712c..f52ce4402 100644 --- a/stdlib/go1_21_mime.go +++ b/stdlib/go1_21_mime.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_mime_multipart.go b/stdlib/go1_21_mime_multipart.go index 14aa9a7f5..61433a152 100644 --- a/stdlib/go1_21_mime_multipart.go +++ b/stdlib/go1_21_mime_multipart.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime/multipart'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_mime_quotedprintable.go b/stdlib/go1_21_mime_quotedprintable.go index 798853b46..2165ab6a5 100644 --- a/stdlib/go1_21_mime_quotedprintable.go +++ b/stdlib/go1_21_mime_quotedprintable.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net.go b/stdlib/go1_21_net.go index f80194dd7..249833a26 100644 --- a/stdlib/go1_21_net.go +++ b/stdlib/go1_21_net.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http.go b/stdlib/go1_21_net_http.go index 5687cdbd6..5c60168de 100644 --- a/stdlib/go1_21_net_http.go +++ b/stdlib/go1_21_net_http.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_cgi.go b/stdlib/go1_21_net_http_cgi.go index 7b4026da8..c069b9ebf 100644 --- a/stdlib/go1_21_net_http_cgi.go +++ b/stdlib/go1_21_net_http_cgi.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_cookiejar.go b/stdlib/go1_21_net_http_cookiejar.go index 006535c80..b06b4bce7 100644 --- a/stdlib/go1_21_net_http_cookiejar.go +++ b/stdlib/go1_21_net_http_cookiejar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_fcgi.go b/stdlib/go1_21_net_http_fcgi.go index 31dd94590..d0efbf3b1 100644 --- a/stdlib/go1_21_net_http_fcgi.go +++ b/stdlib/go1_21_net_http_fcgi.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_httptest.go b/stdlib/go1_21_net_http_httptest.go index 1fc287b27..28d143561 100644 --- a/stdlib/go1_21_net_http_httptest.go +++ b/stdlib/go1_21_net_http_httptest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_httptrace.go b/stdlib/go1_21_net_http_httptrace.go index 0abf95bfc..32b49e74c 100644 --- a/stdlib/go1_21_net_http_httptrace.go +++ b/stdlib/go1_21_net_http_httptrace.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_httputil.go b/stdlib/go1_21_net_http_httputil.go index 7b69ea755..c4e5bbaf3 100644 --- a/stdlib/go1_21_net_http_httputil.go +++ b/stdlib/go1_21_net_http_httputil.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_http_pprof.go b/stdlib/go1_21_net_http_pprof.go index dfcb7347f..8aa109c4f 100644 --- a/stdlib/go1_21_net_http_pprof.go +++ b/stdlib/go1_21_net_http_pprof.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_mail.go b/stdlib/go1_21_net_mail.go index fc6bb7495..0290c006e 100644 --- a/stdlib/go1_21_net_mail.go +++ b/stdlib/go1_21_net_mail.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_netip.go b/stdlib/go1_21_net_netip.go index 1a50ba1c8..c02465711 100644 --- a/stdlib/go1_21_net_netip.go +++ b/stdlib/go1_21_net_netip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/netip'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_rpc.go b/stdlib/go1_21_net_rpc.go index 869c1ca12..e70f78ba8 100644 --- a/stdlib/go1_21_net_rpc.go +++ b/stdlib/go1_21_net_rpc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/rpc'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_rpc_jsonrpc.go b/stdlib/go1_21_net_rpc_jsonrpc.go index c7fbc5c08..2a3f21e3f 100644 --- a/stdlib/go1_21_net_rpc_jsonrpc.go +++ b/stdlib/go1_21_net_rpc_jsonrpc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_smtp.go b/stdlib/go1_21_net_smtp.go index cd5826ced..f6c9e8c3b 100644 --- a/stdlib/go1_21_net_smtp.go +++ b/stdlib/go1_21_net_smtp.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_textproto.go b/stdlib/go1_21_net_textproto.go index cd7da3f7c..c889a2093 100644 --- a/stdlib/go1_21_net_textproto.go +++ b/stdlib/go1_21_net_textproto.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_net_url.go b/stdlib/go1_21_net_url.go index 5a25bd1d4..5a9d1a8d4 100644 --- a/stdlib/go1_21_net_url.go +++ b/stdlib/go1_21_net_url.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/url'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_os.go b/stdlib/go1_21_os.go index 69d43e7b7..29ea64e13 100644 --- a/stdlib/go1_21_os.go +++ b/stdlib/go1_21_os.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_os_signal.go b/stdlib/go1_21_os_signal.go index 05e23827d..973ffe9da 100644 --- a/stdlib/go1_21_os_signal.go +++ b/stdlib/go1_21_os_signal.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os/signal'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_os_user.go b/stdlib/go1_21_os_user.go index 4a08e19b8..84a1a66b6 100644 --- a/stdlib/go1_21_os_user.go +++ b/stdlib/go1_21_os_user.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os/user'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_path.go b/stdlib/go1_21_path.go index 67f617cb3..983b50699 100644 --- a/stdlib/go1_21_path.go +++ b/stdlib/go1_21_path.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract path'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_path_filepath.go b/stdlib/go1_21_path_filepath.go index c865fc3f9..a5e7450e3 100644 --- a/stdlib/go1_21_path_filepath.go +++ b/stdlib/go1_21_path_filepath.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract path/filepath'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_reflect.go b/stdlib/go1_21_reflect.go index d2e5c1ba7..0e0fe61e5 100644 --- a/stdlib/go1_21_reflect.go +++ b/stdlib/go1_21_reflect.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract reflect'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_regexp.go b/stdlib/go1_21_regexp.go index ee96b6b47..22b308aa8 100644 --- a/stdlib/go1_21_regexp.go +++ b/stdlib/go1_21_regexp.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract regexp'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_regexp_syntax.go b/stdlib/go1_21_regexp_syntax.go index ae41e6d5c..ad2515734 100644 --- a/stdlib/go1_21_regexp_syntax.go +++ b/stdlib/go1_21_regexp_syntax.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract regexp/syntax'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_runtime.go b/stdlib/go1_21_runtime.go index 4b52be8da..984b65bad 100644 --- a/stdlib/go1_21_runtime.go +++ b/stdlib/go1_21_runtime.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_runtime_debug.go b/stdlib/go1_21_runtime_debug.go index f6ae8093d..2abbfe2f0 100644 --- a/stdlib/go1_21_runtime_debug.go +++ b/stdlib/go1_21_runtime_debug.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_runtime_metrics.go b/stdlib/go1_21_runtime_metrics.go index 0b90bdea8..b43e77993 100644 --- a/stdlib/go1_21_runtime_metrics.go +++ b/stdlib/go1_21_runtime_metrics.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/metrics'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_runtime_pprof.go b/stdlib/go1_21_runtime_pprof.go index d3552932d..2d57ce9e2 100644 --- a/stdlib/go1_21_runtime_pprof.go +++ b/stdlib/go1_21_runtime_pprof.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_runtime_trace.go b/stdlib/go1_21_runtime_trace.go index 9c497f2d8..731180465 100644 --- a/stdlib/go1_21_runtime_trace.go +++ b/stdlib/go1_21_runtime_trace.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_slices.go b/stdlib/go1_21_slices.go index 976da0443..546ee7788 100644 --- a/stdlib/go1_21_slices.go +++ b/stdlib/go1_21_slices.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract slices'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_sort.go b/stdlib/go1_21_sort.go index 7977b2139..786838755 100644 --- a/stdlib/go1_21_sort.go +++ b/stdlib/go1_21_sort.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sort'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_strconv.go b/stdlib/go1_21_strconv.go index d5a0b683c..1e1f9d945 100644 --- a/stdlib/go1_21_strconv.go +++ b/stdlib/go1_21_strconv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract strconv'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_strings.go b/stdlib/go1_21_strings.go index 5c29e9582..2731806c5 100644 --- a/stdlib/go1_21_strings.go +++ b/stdlib/go1_21_strings.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract strings'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_sync.go b/stdlib/go1_21_sync.go index 365be1b17..04c9506ad 100644 --- a/stdlib/go1_21_sync.go +++ b/stdlib/go1_21_sync.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sync'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_sync_atomic.go b/stdlib/go1_21_sync_atomic.go index 054ce7fc3..2bd80a2b7 100644 --- a/stdlib/go1_21_sync_atomic.go +++ b/stdlib/go1_21_sync_atomic.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sync/atomic'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_testing.go b/stdlib/go1_21_testing.go index c04fa0ff4..596be080e 100644 --- a/stdlib/go1_21_testing.go +++ b/stdlib/go1_21_testing.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_testing_fstest.go b/stdlib/go1_21_testing_fstest.go index 7627396fe..05c4ccecb 100644 --- a/stdlib/go1_21_testing_fstest.go +++ b/stdlib/go1_21_testing_fstest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/fstest'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_testing_iotest.go b/stdlib/go1_21_testing_iotest.go index 8e9abea70..a922e891b 100644 --- a/stdlib/go1_21_testing_iotest.go +++ b/stdlib/go1_21_testing_iotest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_testing_quick.go b/stdlib/go1_21_testing_quick.go index 8e6341d3a..5677f873e 100644 --- a/stdlib/go1_21_testing_quick.go +++ b/stdlib/go1_21_testing_quick.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_testing_slogtest.go b/stdlib/go1_21_testing_slogtest.go index 70f47d9d7..f444c749f 100644 --- a/stdlib/go1_21_testing_slogtest.go +++ b/stdlib/go1_21_testing_slogtest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/slogtest'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_text_scanner.go b/stdlib/go1_21_text_scanner.go index 0cb7f9a64..8879d027f 100644 --- a/stdlib/go1_21_text_scanner.go +++ b/stdlib/go1_21_text_scanner.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/scanner'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_text_tabwriter.go b/stdlib/go1_21_text_tabwriter.go index f0f775c55..fb8410137 100644 --- a/stdlib/go1_21_text_tabwriter.go +++ b/stdlib/go1_21_text_tabwriter.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_text_template.go b/stdlib/go1_21_text_template.go index c0473ca6e..92f0d239b 100644 --- a/stdlib/go1_21_text_template.go +++ b/stdlib/go1_21_text_template.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/template'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_text_template_parse.go b/stdlib/go1_21_text_template_parse.go index deccd6d28..150db8b15 100644 --- a/stdlib/go1_21_text_template_parse.go +++ b/stdlib/go1_21_text_template_parse.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/template/parse'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_time.go b/stdlib/go1_21_time.go index 19e9ef04b..e013153b3 100644 --- a/stdlib/go1_21_time.go +++ b/stdlib/go1_21_time.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract time'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_unicode.go b/stdlib/go1_21_unicode.go index ee8cf67e1..c6f001cf1 100644 --- a/stdlib/go1_21_unicode.go +++ b/stdlib/go1_21_unicode.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_unicode_utf16.go b/stdlib/go1_21_unicode_utf16.go index 89f64cca0..6577a59b7 100644 --- a/stdlib/go1_21_unicode_utf16.go +++ b/stdlib/go1_21_unicode_utf16.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_21_unicode_utf8.go b/stdlib/go1_21_unicode_utf8.go index 775f95210..91c22ba66 100644 --- a/stdlib/go1_21_unicode_utf8.go +++ b/stdlib/go1_21_unicode_utf8.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package stdlib diff --git a/stdlib/go1_20_archive_tar.go b/stdlib/go1_22_archive_tar.go similarity index 97% rename from stdlib/go1_20_archive_tar.go rename to stdlib/go1_22_archive_tar.go index 2676ed80c..99fa50665 100644 --- a/stdlib/go1_20_archive_tar.go +++ b/stdlib/go1_22_archive_tar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract archive/tar'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_archive_zip.go b/stdlib/go1_22_archive_zip.go similarity index 96% rename from stdlib/go1_20_archive_zip.go rename to stdlib/go1_22_archive_zip.go index a71d4f02b..f6475ef43 100644 --- a/stdlib/go1_20_archive_zip.go +++ b/stdlib/go1_22_archive_zip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_bufio.go b/stdlib/go1_22_bufio.go similarity index 97% rename from stdlib/go1_20_bufio.go rename to stdlib/go1_22_bufio.go index 3c32578e6..e1541d8b5 100644 --- a/stdlib/go1_20_bufio.go +++ b/stdlib/go1_22_bufio.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract bufio'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_bytes.go b/stdlib/go1_22_bytes.go similarity index 97% rename from stdlib/go1_20_bytes.go rename to stdlib/go1_22_bytes.go index 4364bb881..728cf3a59 100644 --- a/stdlib/go1_20_bytes.go +++ b/stdlib/go1_22_bytes.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract bytes'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -19,6 +19,7 @@ func init() { "Compare": reflect.ValueOf(bytes.Compare), "Contains": reflect.ValueOf(bytes.Contains), "ContainsAny": reflect.ValueOf(bytes.ContainsAny), + "ContainsFunc": reflect.ValueOf(bytes.ContainsFunc), "ContainsRune": reflect.ValueOf(bytes.ContainsRune), "Count": reflect.ValueOf(bytes.Count), "Cut": reflect.ValueOf(bytes.Cut), diff --git a/stdlib/go1_22_cmp.go b/stdlib/go1_22_cmp.go new file mode 100644 index 000000000..f4b0c62d1 --- /dev/null +++ b/stdlib/go1_22_cmp.go @@ -0,0 +1,14 @@ +// Code generated by 'yaegi extract cmp'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "reflect" +) + +func init() { + Symbols["cmp/cmp"] = map[string]reflect.Value{} +} diff --git a/stdlib/go1_20_compress_bzip2.go b/stdlib/go1_22_compress_bzip2.go similarity index 87% rename from stdlib/go1_20_compress_bzip2.go rename to stdlib/go1_22_compress_bzip2.go index 5e1b91bee..ff8995769 100644 --- a/stdlib/go1_20_compress_bzip2.go +++ b/stdlib/go1_22_compress_bzip2.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_compress_flate.go b/stdlib/go1_22_compress_flate.go similarity index 97% rename from stdlib/go1_20_compress_flate.go rename to stdlib/go1_22_compress_flate.go index 6a527dad6..491dccb55 100644 --- a/stdlib/go1_20_compress_flate.go +++ b/stdlib/go1_22_compress_flate.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/flate'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_compress_gzip.go b/stdlib/go1_22_compress_gzip.go similarity index 95% rename from stdlib/go1_20_compress_gzip.go rename to stdlib/go1_22_compress_gzip.go index dad069de5..2185fe476 100644 --- a/stdlib/go1_20_compress_gzip.go +++ b/stdlib/go1_22_compress_gzip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_compress_lzw.go b/stdlib/go1_22_compress_lzw.go similarity index 91% rename from stdlib/go1_20_compress_lzw.go rename to stdlib/go1_22_compress_lzw.go index 0ee414bde..8d8b65042 100644 --- a/stdlib/go1_20_compress_lzw.go +++ b/stdlib/go1_22_compress_lzw.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_compress_zlib.go b/stdlib/go1_22_compress_zlib.go similarity index 96% rename from stdlib/go1_20_compress_zlib.go rename to stdlib/go1_22_compress_zlib.go index a0d6d198f..7839098e4 100644 --- a/stdlib/go1_20_compress_zlib.go +++ b/stdlib/go1_22_compress_zlib.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract compress/zlib'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_container_heap.go b/stdlib/go1_22_container_heap.go similarity index 95% rename from stdlib/go1_20_container_heap.go rename to stdlib/go1_22_container_heap.go index 607212c25..dc448ea6e 100644 --- a/stdlib/go1_20_container_heap.go +++ b/stdlib/go1_22_container_heap.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_container_list.go b/stdlib/go1_22_container_list.go similarity index 88% rename from stdlib/go1_20_container_list.go rename to stdlib/go1_22_container_list.go index 9587131a1..a9f319b18 100644 --- a/stdlib/go1_20_container_list.go +++ b/stdlib/go1_22_container_list.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/list'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_container_ring.go b/stdlib/go1_22_container_ring.go similarity index 86% rename from stdlib/go1_20_container_ring.go rename to stdlib/go1_22_container_ring.go index 991eb645c..c10468e03 100644 --- a/stdlib/go1_20_container_ring.go +++ b/stdlib/go1_22_container_ring.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_context.go b/stdlib/go1_22_context.go similarity index 55% rename from stdlib/go1_20_context.go rename to stdlib/go1_22_context.go index c9df4a678..10e89fd49 100644 --- a/stdlib/go1_20_context.go +++ b/stdlib/go1_22_context.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract context'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -14,16 +14,20 @@ import ( func init() { Symbols["context/context"] = map[string]reflect.Value{ // function, constant and variable definitions - "Background": reflect.ValueOf(context.Background), - "Canceled": reflect.ValueOf(&context.Canceled).Elem(), - "Cause": reflect.ValueOf(context.Cause), - "DeadlineExceeded": reflect.ValueOf(&context.DeadlineExceeded).Elem(), - "TODO": reflect.ValueOf(context.TODO), - "WithCancel": reflect.ValueOf(context.WithCancel), - "WithCancelCause": reflect.ValueOf(context.WithCancelCause), - "WithDeadline": reflect.ValueOf(context.WithDeadline), - "WithTimeout": reflect.ValueOf(context.WithTimeout), - "WithValue": reflect.ValueOf(context.WithValue), + "AfterFunc": reflect.ValueOf(context.AfterFunc), + "Background": reflect.ValueOf(context.Background), + "Canceled": reflect.ValueOf(&context.Canceled).Elem(), + "Cause": reflect.ValueOf(context.Cause), + "DeadlineExceeded": reflect.ValueOf(&context.DeadlineExceeded).Elem(), + "TODO": reflect.ValueOf(context.TODO), + "WithCancel": reflect.ValueOf(context.WithCancel), + "WithCancelCause": reflect.ValueOf(context.WithCancelCause), + "WithDeadline": reflect.ValueOf(context.WithDeadline), + "WithDeadlineCause": reflect.ValueOf(context.WithDeadlineCause), + "WithTimeout": reflect.ValueOf(context.WithTimeout), + "WithTimeoutCause": reflect.ValueOf(context.WithTimeoutCause), + "WithValue": reflect.ValueOf(context.WithValue), + "WithoutCancel": reflect.ValueOf(context.WithoutCancel), // type definitions "CancelCauseFunc": reflect.ValueOf((*context.CancelCauseFunc)(nil)), diff --git a/stdlib/go1_20_crypto.go b/stdlib/go1_22_crypto.go similarity index 98% rename from stdlib/go1_20_crypto.go rename to stdlib/go1_22_crypto.go index bc245a935..cf6a331c0 100644 --- a/stdlib/go1_20_crypto.go +++ b/stdlib/go1_22_crypto.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_aes.go b/stdlib/go1_22_crypto_aes.go similarity index 89% rename from stdlib/go1_20_crypto_aes.go rename to stdlib/go1_22_crypto_aes.go index 64f51a3b1..bfed2f857 100644 --- a/stdlib/go1_20_crypto_aes.go +++ b/stdlib/go1_22_crypto_aes.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_cipher.go b/stdlib/go1_22_crypto_cipher.go similarity index 98% rename from stdlib/go1_20_crypto_cipher.go rename to stdlib/go1_22_crypto_cipher.go index 0f27e4211..b6666fc38 100644 --- a/stdlib/go1_20_crypto_cipher.go +++ b/stdlib/go1_22_crypto_cipher.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/cipher'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_des.go b/stdlib/go1_22_crypto_des.go similarity index 91% rename from stdlib/go1_20_crypto_des.go rename to stdlib/go1_22_crypto_des.go index 68502e36f..2b677f680 100644 --- a/stdlib/go1_20_crypto_des.go +++ b/stdlib/go1_22_crypto_des.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_dsa.go b/stdlib/go1_22_crypto_dsa.go similarity index 95% rename from stdlib/go1_20_crypto_dsa.go rename to stdlib/go1_22_crypto_dsa.go index 038077796..83d890f27 100644 --- a/stdlib/go1_20_crypto_dsa.go +++ b/stdlib/go1_22_crypto_dsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_ecdh.go b/stdlib/go1_22_crypto_ecdh.go similarity index 96% rename from stdlib/go1_20_crypto_ecdh.go rename to stdlib/go1_22_crypto_ecdh.go index 3e1dd66ce..7b3a05751 100644 --- a/stdlib/go1_20_crypto_ecdh.go +++ b/stdlib/go1_22_crypto_ecdh.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ecdh'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_ecdsa.go b/stdlib/go1_22_crypto_ecdsa.go similarity index 92% rename from stdlib/go1_20_crypto_ecdsa.go rename to stdlib/go1_22_crypto_ecdsa.go index 72325b6cd..8dc9a4848 100644 --- a/stdlib/go1_20_crypto_ecdsa.go +++ b/stdlib/go1_22_crypto_ecdsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_ed25519.go b/stdlib/go1_22_crypto_ed25519.go similarity index 95% rename from stdlib/go1_20_crypto_ed25519.go rename to stdlib/go1_22_crypto_ed25519.go index 667652d1d..6bade9412 100644 --- a/stdlib/go1_20_crypto_ed25519.go +++ b/stdlib/go1_22_crypto_ed25519.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_elliptic.go b/stdlib/go1_22_crypto_elliptic.go similarity index 97% rename from stdlib/go1_20_crypto_elliptic.go rename to stdlib/go1_22_crypto_elliptic.go index 2e8d34663..d24b58a12 100644 --- a/stdlib/go1_20_crypto_elliptic.go +++ b/stdlib/go1_22_crypto_elliptic.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/elliptic'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_hmac.go b/stdlib/go1_22_crypto_hmac.go similarity index 85% rename from stdlib/go1_20_crypto_hmac.go rename to stdlib/go1_22_crypto_hmac.go index 2b4f3b6f3..82e023d6e 100644 --- a/stdlib/go1_20_crypto_hmac.go +++ b/stdlib/go1_22_crypto_hmac.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_md5.go b/stdlib/go1_22_crypto_md5.go similarity index 90% rename from stdlib/go1_20_crypto_md5.go rename to stdlib/go1_22_crypto_md5.go index 460c4f308..2f41b69d4 100644 --- a/stdlib/go1_20_crypto_md5.go +++ b/stdlib/go1_22_crypto_md5.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_rand.go b/stdlib/go1_22_crypto_rand.go similarity index 88% rename from stdlib/go1_20_crypto_rand.go rename to stdlib/go1_22_crypto_rand.go index d76c65c06..75c7b5715 100644 --- a/stdlib/go1_20_crypto_rand.go +++ b/stdlib/go1_22_crypto_rand.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_rc4.go b/stdlib/go1_22_crypto_rc4.go similarity index 88% rename from stdlib/go1_20_crypto_rc4.go rename to stdlib/go1_22_crypto_rc4.go index 7f894aba9..758e22c21 100644 --- a/stdlib/go1_20_crypto_rc4.go +++ b/stdlib/go1_22_crypto_rc4.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_rsa.go b/stdlib/go1_22_crypto_rsa.go similarity index 97% rename from stdlib/go1_20_crypto_rsa.go rename to stdlib/go1_22_crypto_rsa.go index 9dbfb5052..c29c82142 100644 --- a/stdlib/go1_20_crypto_rsa.go +++ b/stdlib/go1_22_crypto_rsa.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/rsa'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_sha1.go b/stdlib/go1_22_crypto_sha1.go similarity index 90% rename from stdlib/go1_20_crypto_sha1.go rename to stdlib/go1_22_crypto_sha1.go index ec61be2e2..54a48a8f5 100644 --- a/stdlib/go1_20_crypto_sha1.go +++ b/stdlib/go1_22_crypto_sha1.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_sha256.go b/stdlib/go1_22_crypto_sha256.go similarity index 92% rename from stdlib/go1_20_crypto_sha256.go rename to stdlib/go1_22_crypto_sha256.go index 3f283211b..021c1b6df 100644 --- a/stdlib/go1_20_crypto_sha256.go +++ b/stdlib/go1_22_crypto_sha256.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_sha512.go b/stdlib/go1_22_crypto_sha512.go similarity index 95% rename from stdlib/go1_20_crypto_sha512.go rename to stdlib/go1_22_crypto_sha512.go index 2545fc6cc..f82dabd27 100644 --- a/stdlib/go1_20_crypto_sha512.go +++ b/stdlib/go1_22_crypto_sha512.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_crypto_subtle.go b/stdlib/go1_22_crypto_subtle.go similarity index 93% rename from stdlib/go1_20_crypto_subtle.go rename to stdlib/go1_22_crypto_subtle.go index 4ed047dfb..9c9bf4a9b 100644 --- a/stdlib/go1_20_crypto_subtle.go +++ b/stdlib/go1_22_crypto_subtle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_crypto_tls.go b/stdlib/go1_22_crypto_tls.go new file mode 100644 index 000000000..5733d4e32 --- /dev/null +++ b/stdlib/go1_22_crypto_tls.go @@ -0,0 +1,148 @@ +// Code generated by 'yaegi extract crypto/tls'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "crypto/tls" + "go/constant" + "go/token" + "reflect" +) + +func init() { + Symbols["crypto/tls/tls"] = map[string]reflect.Value{ + // function, constant and variable definitions + "CipherSuiteName": reflect.ValueOf(tls.CipherSuiteName), + "CipherSuites": reflect.ValueOf(tls.CipherSuites), + "Client": reflect.ValueOf(tls.Client), + "CurveP256": reflect.ValueOf(tls.CurveP256), + "CurveP384": reflect.ValueOf(tls.CurveP384), + "CurveP521": reflect.ValueOf(tls.CurveP521), + "Dial": reflect.ValueOf(tls.Dial), + "DialWithDialer": reflect.ValueOf(tls.DialWithDialer), + "ECDSAWithP256AndSHA256": reflect.ValueOf(tls.ECDSAWithP256AndSHA256), + "ECDSAWithP384AndSHA384": reflect.ValueOf(tls.ECDSAWithP384AndSHA384), + "ECDSAWithP521AndSHA512": reflect.ValueOf(tls.ECDSAWithP521AndSHA512), + "ECDSAWithSHA1": reflect.ValueOf(tls.ECDSAWithSHA1), + "Ed25519": reflect.ValueOf(tls.Ed25519), + "InsecureCipherSuites": reflect.ValueOf(tls.InsecureCipherSuites), + "Listen": reflect.ValueOf(tls.Listen), + "LoadX509KeyPair": reflect.ValueOf(tls.LoadX509KeyPair), + "NewLRUClientSessionCache": reflect.ValueOf(tls.NewLRUClientSessionCache), + "NewListener": reflect.ValueOf(tls.NewListener), + "NewResumptionState": reflect.ValueOf(tls.NewResumptionState), + "NoClientCert": reflect.ValueOf(tls.NoClientCert), + "PKCS1WithSHA1": reflect.ValueOf(tls.PKCS1WithSHA1), + "PKCS1WithSHA256": reflect.ValueOf(tls.PKCS1WithSHA256), + "PKCS1WithSHA384": reflect.ValueOf(tls.PKCS1WithSHA384), + "PKCS1WithSHA512": reflect.ValueOf(tls.PKCS1WithSHA512), + "PSSWithSHA256": reflect.ValueOf(tls.PSSWithSHA256), + "PSSWithSHA384": reflect.ValueOf(tls.PSSWithSHA384), + "PSSWithSHA512": reflect.ValueOf(tls.PSSWithSHA512), + "ParseSessionState": reflect.ValueOf(tls.ParseSessionState), + "QUICClient": reflect.ValueOf(tls.QUICClient), + "QUICEncryptionLevelApplication": reflect.ValueOf(tls.QUICEncryptionLevelApplication), + "QUICEncryptionLevelEarly": reflect.ValueOf(tls.QUICEncryptionLevelEarly), + "QUICEncryptionLevelHandshake": reflect.ValueOf(tls.QUICEncryptionLevelHandshake), + "QUICEncryptionLevelInitial": reflect.ValueOf(tls.QUICEncryptionLevelInitial), + "QUICHandshakeDone": reflect.ValueOf(tls.QUICHandshakeDone), + "QUICNoEvent": reflect.ValueOf(tls.QUICNoEvent), + "QUICRejectedEarlyData": reflect.ValueOf(tls.QUICRejectedEarlyData), + "QUICServer": reflect.ValueOf(tls.QUICServer), + "QUICSetReadSecret": reflect.ValueOf(tls.QUICSetReadSecret), + "QUICSetWriteSecret": reflect.ValueOf(tls.QUICSetWriteSecret), + "QUICTransportParameters": reflect.ValueOf(tls.QUICTransportParameters), + "QUICTransportParametersRequired": reflect.ValueOf(tls.QUICTransportParametersRequired), + "QUICWriteData": reflect.ValueOf(tls.QUICWriteData), + "RenegotiateFreelyAsClient": reflect.ValueOf(tls.RenegotiateFreelyAsClient), + "RenegotiateNever": reflect.ValueOf(tls.RenegotiateNever), + "RenegotiateOnceAsClient": reflect.ValueOf(tls.RenegotiateOnceAsClient), + "RequestClientCert": reflect.ValueOf(tls.RequestClientCert), + "RequireAndVerifyClientCert": reflect.ValueOf(tls.RequireAndVerifyClientCert), + "RequireAnyClientCert": reflect.ValueOf(tls.RequireAnyClientCert), + "Server": reflect.ValueOf(tls.Server), + "TLS_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_AES_128_GCM_SHA256), + "TLS_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_AES_256_GCM_SHA384), + "TLS_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_CHACHA20_POLY1305_SHA256), + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA), + "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256), + "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256), + "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA), + "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384), + "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305), + "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256), + "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA), + "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA), + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA), + "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256), + "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), + "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), + "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384), + "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305), + "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256), + "TLS_ECDHE_RSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA), + "TLS_FALLBACK_SCSV": reflect.ValueOf(tls.TLS_FALLBACK_SCSV), + "TLS_RSA_WITH_3DES_EDE_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA), + "TLS_RSA_WITH_AES_128_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_CBC_SHA), + "TLS_RSA_WITH_AES_128_CBC_SHA256": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_CBC_SHA256), + "TLS_RSA_WITH_AES_128_GCM_SHA256": reflect.ValueOf(tls.TLS_RSA_WITH_AES_128_GCM_SHA256), + "TLS_RSA_WITH_AES_256_CBC_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_AES_256_CBC_SHA), + "TLS_RSA_WITH_AES_256_GCM_SHA384": reflect.ValueOf(tls.TLS_RSA_WITH_AES_256_GCM_SHA384), + "TLS_RSA_WITH_RC4_128_SHA": reflect.ValueOf(tls.TLS_RSA_WITH_RC4_128_SHA), + "VerifyClientCertIfGiven": reflect.ValueOf(tls.VerifyClientCertIfGiven), + "VersionName": reflect.ValueOf(tls.VersionName), + "VersionSSL30": reflect.ValueOf(constant.MakeFromLiteral("768", token.INT, 0)), + "VersionTLS10": reflect.ValueOf(constant.MakeFromLiteral("769", token.INT, 0)), + "VersionTLS11": reflect.ValueOf(constant.MakeFromLiteral("770", token.INT, 0)), + "VersionTLS12": reflect.ValueOf(constant.MakeFromLiteral("771", token.INT, 0)), + "VersionTLS13": reflect.ValueOf(constant.MakeFromLiteral("772", token.INT, 0)), + "X25519": reflect.ValueOf(tls.X25519), + "X509KeyPair": reflect.ValueOf(tls.X509KeyPair), + + // type definitions + "AlertError": reflect.ValueOf((*tls.AlertError)(nil)), + "Certificate": reflect.ValueOf((*tls.Certificate)(nil)), + "CertificateRequestInfo": reflect.ValueOf((*tls.CertificateRequestInfo)(nil)), + "CertificateVerificationError": reflect.ValueOf((*tls.CertificateVerificationError)(nil)), + "CipherSuite": reflect.ValueOf((*tls.CipherSuite)(nil)), + "ClientAuthType": reflect.ValueOf((*tls.ClientAuthType)(nil)), + "ClientHelloInfo": reflect.ValueOf((*tls.ClientHelloInfo)(nil)), + "ClientSessionCache": reflect.ValueOf((*tls.ClientSessionCache)(nil)), + "ClientSessionState": reflect.ValueOf((*tls.ClientSessionState)(nil)), + "Config": reflect.ValueOf((*tls.Config)(nil)), + "Conn": reflect.ValueOf((*tls.Conn)(nil)), + "ConnectionState": reflect.ValueOf((*tls.ConnectionState)(nil)), + "CurveID": reflect.ValueOf((*tls.CurveID)(nil)), + "Dialer": reflect.ValueOf((*tls.Dialer)(nil)), + "QUICConfig": reflect.ValueOf((*tls.QUICConfig)(nil)), + "QUICConn": reflect.ValueOf((*tls.QUICConn)(nil)), + "QUICEncryptionLevel": reflect.ValueOf((*tls.QUICEncryptionLevel)(nil)), + "QUICEvent": reflect.ValueOf((*tls.QUICEvent)(nil)), + "QUICEventKind": reflect.ValueOf((*tls.QUICEventKind)(nil)), + "QUICSessionTicketOptions": reflect.ValueOf((*tls.QUICSessionTicketOptions)(nil)), + "RecordHeaderError": reflect.ValueOf((*tls.RecordHeaderError)(nil)), + "RenegotiationSupport": reflect.ValueOf((*tls.RenegotiationSupport)(nil)), + "SessionState": reflect.ValueOf((*tls.SessionState)(nil)), + "SignatureScheme": reflect.ValueOf((*tls.SignatureScheme)(nil)), + + // interface wrapper definitions + "_ClientSessionCache": reflect.ValueOf((*_crypto_tls_ClientSessionCache)(nil)), + } +} + +// _crypto_tls_ClientSessionCache is an interface wrapper for ClientSessionCache type +type _crypto_tls_ClientSessionCache struct { + IValue interface{} + WGet func(sessionKey string) (session *tls.ClientSessionState, ok bool) + WPut func(sessionKey string, cs *tls.ClientSessionState) +} + +func (W _crypto_tls_ClientSessionCache) Get(sessionKey string) (session *tls.ClientSessionState, ok bool) { + return W.WGet(sessionKey) +} +func (W _crypto_tls_ClientSessionCache) Put(sessionKey string, cs *tls.ClientSessionState) { + W.WPut(sessionKey, cs) +} diff --git a/stdlib/go1_20_crypto_x509.go b/stdlib/go1_22_crypto_x509.go similarity index 97% rename from stdlib/go1_20_crypto_x509.go rename to stdlib/go1_22_crypto_x509.go index 770e161e7..2d04cd837 100644 --- a/stdlib/go1_20_crypto_x509.go +++ b/stdlib/go1_22_crypto_x509.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/x509'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -68,6 +68,7 @@ func init() { "NameMismatch": reflect.ValueOf(x509.NameMismatch), "NewCertPool": reflect.ValueOf(x509.NewCertPool), "NotAuthorizedToSign": reflect.ValueOf(x509.NotAuthorizedToSign), + "OIDFromInts": reflect.ValueOf(x509.OIDFromInts), "PEMCipher3DES": reflect.ValueOf(x509.PEMCipher3DES), "PEMCipherAES128": reflect.ValueOf(x509.PEMCipherAES128), "PEMCipherAES192": reflect.ValueOf(x509.PEMCipherAES192), @@ -112,9 +113,11 @@ func init() { "InsecureAlgorithmError": reflect.ValueOf((*x509.InsecureAlgorithmError)(nil)), "InvalidReason": reflect.ValueOf((*x509.InvalidReason)(nil)), "KeyUsage": reflect.ValueOf((*x509.KeyUsage)(nil)), + "OID": reflect.ValueOf((*x509.OID)(nil)), "PEMCipher": reflect.ValueOf((*x509.PEMCipher)(nil)), "PublicKeyAlgorithm": reflect.ValueOf((*x509.PublicKeyAlgorithm)(nil)), "RevocationList": reflect.ValueOf((*x509.RevocationList)(nil)), + "RevocationListEntry": reflect.ValueOf((*x509.RevocationListEntry)(nil)), "SignatureAlgorithm": reflect.ValueOf((*x509.SignatureAlgorithm)(nil)), "SystemRootsError": reflect.ValueOf((*x509.SystemRootsError)(nil)), "UnhandledCriticalExtension": reflect.ValueOf((*x509.UnhandledCriticalExtension)(nil)), diff --git a/stdlib/go1_20_crypto_x509_pkix.go b/stdlib/go1_22_crypto_x509_pkix.go similarity index 95% rename from stdlib/go1_20_crypto_x509_pkix.go rename to stdlib/go1_22_crypto_x509_pkix.go index bf6e23c40..e1d398146 100644 --- a/stdlib/go1_20_crypto_x509_pkix.go +++ b/stdlib/go1_22_crypto_x509_pkix.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_database_sql.go b/stdlib/go1_22_database_sql.go similarity index 98% rename from stdlib/go1_20_database_sql.go rename to stdlib/go1_22_database_sql.go index e0a7e7aa9..4a25c1652 100644 --- a/stdlib/go1_20_database_sql.go +++ b/stdlib/go1_22_database_sql.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract database/sql'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_database_sql_driver.go b/stdlib/go1_22_database_sql_driver.go similarity index 99% rename from stdlib/go1_20_database_sql_driver.go rename to stdlib/go1_22_database_sql_driver.go index 9cc7b348c..250d3b8a2 100644 --- a/stdlib/go1_20_database_sql_driver.go +++ b/stdlib/go1_22_database_sql_driver.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract database/sql/driver'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_buildinfo.go b/stdlib/go1_22_debug_buildinfo.go similarity index 89% rename from stdlib/go1_20_debug_buildinfo.go rename to stdlib/go1_22_debug_buildinfo.go index d0fc5cf5d..722eb9986 100644 --- a/stdlib/go1_20_debug_buildinfo.go +++ b/stdlib/go1_22_debug_buildinfo.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/buildinfo'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_dwarf.go b/stdlib/go1_22_debug_dwarf.go similarity index 99% rename from stdlib/go1_20_debug_dwarf.go rename to stdlib/go1_22_debug_dwarf.go index 14952b16d..f53343a80 100644 --- a/stdlib/go1_20_debug_dwarf.go +++ b/stdlib/go1_22_debug_dwarf.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/dwarf'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_elf.go b/stdlib/go1_22_debug_elf.go similarity index 97% rename from stdlib/go1_20_debug_elf.go rename to stdlib/go1_22_debug_elf.go index 3e529c336..5e1a7eadc 100644 --- a/stdlib/go1_20_debug_elf.go +++ b/stdlib/go1_22_debug_elf.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/elf'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -21,6 +21,38 @@ func init() { "COMPRESS_LOOS": reflect.ValueOf(elf.COMPRESS_LOOS), "COMPRESS_LOPROC": reflect.ValueOf(elf.COMPRESS_LOPROC), "COMPRESS_ZLIB": reflect.ValueOf(elf.COMPRESS_ZLIB), + "COMPRESS_ZSTD": reflect.ValueOf(elf.COMPRESS_ZSTD), + "DF_1_CONFALT": reflect.ValueOf(elf.DF_1_CONFALT), + "DF_1_DIRECT": reflect.ValueOf(elf.DF_1_DIRECT), + "DF_1_DISPRELDNE": reflect.ValueOf(elf.DF_1_DISPRELDNE), + "DF_1_DISPRELPND": reflect.ValueOf(elf.DF_1_DISPRELPND), + "DF_1_EDITED": reflect.ValueOf(elf.DF_1_EDITED), + "DF_1_ENDFILTEE": reflect.ValueOf(elf.DF_1_ENDFILTEE), + "DF_1_GLOBAL": reflect.ValueOf(elf.DF_1_GLOBAL), + "DF_1_GLOBAUDIT": reflect.ValueOf(elf.DF_1_GLOBAUDIT), + "DF_1_GROUP": reflect.ValueOf(elf.DF_1_GROUP), + "DF_1_IGNMULDEF": reflect.ValueOf(elf.DF_1_IGNMULDEF), + "DF_1_INITFIRST": reflect.ValueOf(elf.DF_1_INITFIRST), + "DF_1_INTERPOSE": reflect.ValueOf(elf.DF_1_INTERPOSE), + "DF_1_KMOD": reflect.ValueOf(elf.DF_1_KMOD), + "DF_1_LOADFLTR": reflect.ValueOf(elf.DF_1_LOADFLTR), + "DF_1_NOCOMMON": reflect.ValueOf(elf.DF_1_NOCOMMON), + "DF_1_NODEFLIB": reflect.ValueOf(elf.DF_1_NODEFLIB), + "DF_1_NODELETE": reflect.ValueOf(elf.DF_1_NODELETE), + "DF_1_NODIRECT": reflect.ValueOf(elf.DF_1_NODIRECT), + "DF_1_NODUMP": reflect.ValueOf(elf.DF_1_NODUMP), + "DF_1_NOHDR": reflect.ValueOf(elf.DF_1_NOHDR), + "DF_1_NOKSYMS": reflect.ValueOf(elf.DF_1_NOKSYMS), + "DF_1_NOOPEN": reflect.ValueOf(elf.DF_1_NOOPEN), + "DF_1_NORELOC": reflect.ValueOf(elf.DF_1_NORELOC), + "DF_1_NOW": reflect.ValueOf(elf.DF_1_NOW), + "DF_1_ORIGIN": reflect.ValueOf(elf.DF_1_ORIGIN), + "DF_1_PIE": reflect.ValueOf(elf.DF_1_PIE), + "DF_1_SINGLETON": reflect.ValueOf(elf.DF_1_SINGLETON), + "DF_1_STUB": reflect.ValueOf(elf.DF_1_STUB), + "DF_1_SYMINTPOSE": reflect.ValueOf(elf.DF_1_SYMINTPOSE), + "DF_1_TRANS": reflect.ValueOf(elf.DF_1_TRANS), + "DF_1_WEAKFILTER": reflect.ValueOf(elf.DF_1_WEAKFILTER), "DF_BIND_NOW": reflect.ValueOf(elf.DF_BIND_NOW), "DF_ORIGIN": reflect.ValueOf(elf.DF_ORIGIN), "DF_STATIC_TLS": reflect.ValueOf(elf.DF_STATIC_TLS), @@ -841,6 +873,7 @@ func init() { "R_LARCH_32": reflect.ValueOf(elf.R_LARCH_32), "R_LARCH_32_PCREL": reflect.ValueOf(elf.R_LARCH_32_PCREL), "R_LARCH_64": reflect.ValueOf(elf.R_LARCH_64), + "R_LARCH_64_PCREL": reflect.ValueOf(elf.R_LARCH_64_PCREL), "R_LARCH_ABS64_HI12": reflect.ValueOf(elf.R_LARCH_ABS64_HI12), "R_LARCH_ABS64_LO20": reflect.ValueOf(elf.R_LARCH_ABS64_LO20), "R_LARCH_ABS_HI20": reflect.ValueOf(elf.R_LARCH_ABS_HI20), @@ -848,12 +881,17 @@ func init() { "R_LARCH_ADD16": reflect.ValueOf(elf.R_LARCH_ADD16), "R_LARCH_ADD24": reflect.ValueOf(elf.R_LARCH_ADD24), "R_LARCH_ADD32": reflect.ValueOf(elf.R_LARCH_ADD32), + "R_LARCH_ADD6": reflect.ValueOf(elf.R_LARCH_ADD6), "R_LARCH_ADD64": reflect.ValueOf(elf.R_LARCH_ADD64), "R_LARCH_ADD8": reflect.ValueOf(elf.R_LARCH_ADD8), + "R_LARCH_ADD_ULEB128": reflect.ValueOf(elf.R_LARCH_ADD_ULEB128), + "R_LARCH_ALIGN": reflect.ValueOf(elf.R_LARCH_ALIGN), "R_LARCH_B16": reflect.ValueOf(elf.R_LARCH_B16), "R_LARCH_B21": reflect.ValueOf(elf.R_LARCH_B21), "R_LARCH_B26": reflect.ValueOf(elf.R_LARCH_B26), + "R_LARCH_CFA": reflect.ValueOf(elf.R_LARCH_CFA), "R_LARCH_COPY": reflect.ValueOf(elf.R_LARCH_COPY), + "R_LARCH_DELETE": reflect.ValueOf(elf.R_LARCH_DELETE), "R_LARCH_GNU_VTENTRY": reflect.ValueOf(elf.R_LARCH_GNU_VTENTRY), "R_LARCH_GNU_VTINHERIT": reflect.ValueOf(elf.R_LARCH_GNU_VTINHERIT), "R_LARCH_GOT64_HI12": reflect.ValueOf(elf.R_LARCH_GOT64_HI12), @@ -873,6 +911,7 @@ func init() { "R_LARCH_PCALA64_LO20": reflect.ValueOf(elf.R_LARCH_PCALA64_LO20), "R_LARCH_PCALA_HI20": reflect.ValueOf(elf.R_LARCH_PCALA_HI20), "R_LARCH_PCALA_LO12": reflect.ValueOf(elf.R_LARCH_PCALA_LO12), + "R_LARCH_PCREL20_S2": reflect.ValueOf(elf.R_LARCH_PCREL20_S2), "R_LARCH_RELATIVE": reflect.ValueOf(elf.R_LARCH_RELATIVE), "R_LARCH_RELAX": reflect.ValueOf(elf.R_LARCH_RELAX), "R_LARCH_SOP_ADD": reflect.ValueOf(elf.R_LARCH_SOP_ADD), @@ -903,8 +942,10 @@ func init() { "R_LARCH_SUB16": reflect.ValueOf(elf.R_LARCH_SUB16), "R_LARCH_SUB24": reflect.ValueOf(elf.R_LARCH_SUB24), "R_LARCH_SUB32": reflect.ValueOf(elf.R_LARCH_SUB32), + "R_LARCH_SUB6": reflect.ValueOf(elf.R_LARCH_SUB6), "R_LARCH_SUB64": reflect.ValueOf(elf.R_LARCH_SUB64), "R_LARCH_SUB8": reflect.ValueOf(elf.R_LARCH_SUB8), + "R_LARCH_SUB_ULEB128": reflect.ValueOf(elf.R_LARCH_SUB_ULEB128), "R_LARCH_TLS_DTPMOD32": reflect.ValueOf(elf.R_LARCH_TLS_DTPMOD32), "R_LARCH_TLS_DTPMOD64": reflect.ValueOf(elf.R_LARCH_TLS_DTPMOD64), "R_LARCH_TLS_DTPREL32": reflect.ValueOf(elf.R_LARCH_TLS_DTPREL32), @@ -954,6 +995,7 @@ func init() { "R_MIPS_LO16": reflect.ValueOf(elf.R_MIPS_LO16), "R_MIPS_NONE": reflect.ValueOf(elf.R_MIPS_NONE), "R_MIPS_PC16": reflect.ValueOf(elf.R_MIPS_PC16), + "R_MIPS_PC32": reflect.ValueOf(elf.R_MIPS_PC32), "R_MIPS_PJUMP": reflect.ValueOf(elf.R_MIPS_PJUMP), "R_MIPS_REL16": reflect.ValueOf(elf.R_MIPS_REL16), "R_MIPS_REL32": reflect.ValueOf(elf.R_MIPS_REL32), @@ -1097,6 +1139,7 @@ func init() { "R_PPC64_REL16_LO": reflect.ValueOf(elf.R_PPC64_REL16_LO), "R_PPC64_REL24": reflect.ValueOf(elf.R_PPC64_REL24), "R_PPC64_REL24_NOTOC": reflect.ValueOf(elf.R_PPC64_REL24_NOTOC), + "R_PPC64_REL24_P9NOTOC": reflect.ValueOf(elf.R_PPC64_REL24_P9NOTOC), "R_PPC64_REL30": reflect.ValueOf(elf.R_PPC64_REL30), "R_PPC64_REL32": reflect.ValueOf(elf.R_PPC64_REL32), "R_PPC64_REL64": reflect.ValueOf(elf.R_PPC64_REL64), @@ -1460,6 +1503,7 @@ func init() { "Dyn32": reflect.ValueOf((*elf.Dyn32)(nil)), "Dyn64": reflect.ValueOf((*elf.Dyn64)(nil)), "DynFlag": reflect.ValueOf((*elf.DynFlag)(nil)), + "DynFlag1": reflect.ValueOf((*elf.DynFlag1)(nil)), "DynTag": reflect.ValueOf((*elf.DynTag)(nil)), "File": reflect.ValueOf((*elf.File)(nil)), "FileHeader": reflect.ValueOf((*elf.FileHeader)(nil)), diff --git a/stdlib/go1_20_debug_gosym.go b/stdlib/go1_22_debug_gosym.go similarity index 94% rename from stdlib/go1_20_debug_gosym.go rename to stdlib/go1_22_debug_gosym.go index 61163b1e1..fe5325941 100644 --- a/stdlib/go1_20_debug_gosym.go +++ b/stdlib/go1_22_debug_gosym.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_macho.go b/stdlib/go1_22_debug_macho.go similarity index 99% rename from stdlib/go1_20_debug_macho.go rename to stdlib/go1_22_debug_macho.go index 263c017f7..2f36ef5c1 100644 --- a/stdlib/go1_20_debug_macho.go +++ b/stdlib/go1_22_debug_macho.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/macho'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_pe.go b/stdlib/go1_22_debug_pe.go similarity index 99% rename from stdlib/go1_20_debug_pe.go rename to stdlib/go1_22_debug_pe.go index 638501327..262678e52 100644 --- a/stdlib/go1_20_debug_pe.go +++ b/stdlib/go1_22_debug_pe.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/pe'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_debug_plan9obj.go b/stdlib/go1_22_debug_plan9obj.go similarity index 95% rename from stdlib/go1_20_debug_plan9obj.go rename to stdlib/go1_22_debug_plan9obj.go index f61dc9ccd..81e84ccc2 100644 --- a/stdlib/go1_20_debug_plan9obj.go +++ b/stdlib/go1_22_debug_plan9obj.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding.go b/stdlib/go1_22_encoding.go similarity index 97% rename from stdlib/go1_20_encoding.go rename to stdlib/go1_22_encoding.go index da740743e..95e4a91ce 100644 --- a/stdlib/go1_20_encoding.go +++ b/stdlib/go1_22_encoding.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_ascii85.go b/stdlib/go1_22_encoding_ascii85.go similarity index 92% rename from stdlib/go1_20_encoding_ascii85.go rename to stdlib/go1_22_encoding_ascii85.go index 1081cb22f..56cc5a542 100644 --- a/stdlib/go1_20_encoding_ascii85.go +++ b/stdlib/go1_22_encoding_ascii85.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_asn1.go b/stdlib/go1_22_encoding_asn1.go similarity index 98% rename from stdlib/go1_20_encoding_asn1.go rename to stdlib/go1_22_encoding_asn1.go index 58b24fe18..89d5b4e52 100644 --- a/stdlib/go1_20_encoding_asn1.go +++ b/stdlib/go1_22_encoding_asn1.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/asn1'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_base32.go b/stdlib/go1_22_encoding_base32.go similarity index 93% rename from stdlib/go1_20_encoding_base32.go rename to stdlib/go1_22_encoding_base32.go index dba1a0da2..b9721b886 100644 --- a/stdlib/go1_20_encoding_base32.go +++ b/stdlib/go1_22_encoding_base32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_base64.go b/stdlib/go1_22_encoding_base64.go similarity index 94% rename from stdlib/go1_20_encoding_base64.go rename to stdlib/go1_22_encoding_base64.go index 9226c5192..f547bbd73 100644 --- a/stdlib/go1_20_encoding_base64.go +++ b/stdlib/go1_22_encoding_base64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_binary.go b/stdlib/go1_22_encoding_binary.go similarity index 97% rename from stdlib/go1_20_encoding_binary.go rename to stdlib/go1_22_encoding_binary.go index 24a45958f..a50aed28f 100644 --- a/stdlib/go1_20_encoding_binary.go +++ b/stdlib/go1_22_encoding_binary.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/binary'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -22,6 +22,7 @@ func init() { "MaxVarintLen16": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), "MaxVarintLen32": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), "MaxVarintLen64": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), + "NativeEndian": reflect.ValueOf(&binary.NativeEndian).Elem(), "PutUvarint": reflect.ValueOf(binary.PutUvarint), "PutVarint": reflect.ValueOf(binary.PutVarint), "Read": reflect.ValueOf(binary.Read), diff --git a/stdlib/go1_20_encoding_csv.go b/stdlib/go1_22_encoding_csv.go similarity index 93% rename from stdlib/go1_20_encoding_csv.go rename to stdlib/go1_22_encoding_csv.go index af77e0eff..90b3204ab 100644 --- a/stdlib/go1_20_encoding_csv.go +++ b/stdlib/go1_22_encoding_csv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_gob.go b/stdlib/go1_22_encoding_gob.go similarity index 96% rename from stdlib/go1_20_encoding_gob.go rename to stdlib/go1_22_encoding_gob.go index a84754755..b10c50cf0 100644 --- a/stdlib/go1_20_encoding_gob.go +++ b/stdlib/go1_22_encoding_gob.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_hex.go b/stdlib/go1_22_encoding_hex.go similarity index 86% rename from stdlib/go1_20_encoding_hex.go rename to stdlib/go1_22_encoding_hex.go index 3adb35c2d..5b6b4e24f 100644 --- a/stdlib/go1_20_encoding_hex.go +++ b/stdlib/go1_22_encoding_hex.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -13,6 +13,8 @@ import ( func init() { Symbols["encoding/hex/hex"] = map[string]reflect.Value{ // function, constant and variable definitions + "AppendDecode": reflect.ValueOf(hex.AppendDecode), + "AppendEncode": reflect.ValueOf(hex.AppendEncode), "Decode": reflect.ValueOf(hex.Decode), "DecodeString": reflect.ValueOf(hex.DecodeString), "DecodedLen": reflect.ValueOf(hex.DecodedLen), diff --git a/stdlib/go1_20_encoding_json.go b/stdlib/go1_22_encoding_json.go similarity index 98% rename from stdlib/go1_20_encoding_json.go rename to stdlib/go1_22_encoding_json.go index f9ab05b25..eebc0e239 100644 --- a/stdlib/go1_20_encoding_json.go +++ b/stdlib/go1_22_encoding_json.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/json'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_pem.go b/stdlib/go1_22_encoding_pem.go similarity index 89% rename from stdlib/go1_20_encoding_pem.go rename to stdlib/go1_22_encoding_pem.go index bba9b5f0e..7298474da 100644 --- a/stdlib/go1_20_encoding_pem.go +++ b/stdlib/go1_22_encoding_pem.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_encoding_xml.go b/stdlib/go1_22_encoding_xml.go similarity index 98% rename from stdlib/go1_20_encoding_xml.go rename to stdlib/go1_22_encoding_xml.go index 4f6337bcd..e98c4e8d6 100644 --- a/stdlib/go1_20_encoding_xml.go +++ b/stdlib/go1_22_encoding_xml.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_errors.go b/stdlib/go1_22_errors.go new file mode 100644 index 000000000..1e0e54105 --- /dev/null +++ b/stdlib/go1_22_errors.go @@ -0,0 +1,23 @@ +// Code generated by 'yaegi extract errors'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "errors" + "reflect" +) + +func init() { + Symbols["errors/errors"] = map[string]reflect.Value{ + // function, constant and variable definitions + "As": reflect.ValueOf(errors.As), + "ErrUnsupported": reflect.ValueOf(&errors.ErrUnsupported).Elem(), + "Is": reflect.ValueOf(errors.Is), + "Join": reflect.ValueOf(errors.Join), + "New": reflect.ValueOf(errors.New), + "Unwrap": reflect.ValueOf(errors.Unwrap), + } +} diff --git a/stdlib/go1_20_expvar.go b/stdlib/go1_22_expvar.go similarity index 96% rename from stdlib/go1_20_expvar.go rename to stdlib/go1_22_expvar.go index 87f969d12..7388f6027 100644 --- a/stdlib/go1_20_expvar.go +++ b/stdlib/go1_22_expvar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract expvar'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_flag.go b/stdlib/go1_22_flag.go similarity index 97% rename from stdlib/go1_20_flag.go rename to stdlib/go1_22_flag.go index 1722818ed..cfffc84b4 100644 --- a/stdlib/go1_20_flag.go +++ b/stdlib/go1_22_flag.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract flag'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -16,6 +16,7 @@ func init() { "Arg": reflect.ValueOf(flag.Arg), "Args": reflect.ValueOf(flag.Args), "Bool": reflect.ValueOf(flag.Bool), + "BoolFunc": reflect.ValueOf(flag.BoolFunc), "BoolVar": reflect.ValueOf(flag.BoolVar), "CommandLine": reflect.ValueOf(&flag.CommandLine).Elem(), "ContinueOnError": reflect.ValueOf(flag.ContinueOnError), diff --git a/stdlib/go1_20_fmt.go b/stdlib/go1_22_fmt.go similarity index 98% rename from stdlib/go1_20_fmt.go rename to stdlib/go1_22_fmt.go index be9c4407f..c580710d3 100644 --- a/stdlib/go1_20_fmt.go +++ b/stdlib/go1_22_fmt.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract fmt'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_ast.go b/stdlib/go1_22_go_ast.go similarity index 98% rename from stdlib/go1_20_go_ast.go rename to stdlib/go1_22_go_ast.go index 82bc0fdc0..748be371c 100644 --- a/stdlib/go1_20_go_ast.go +++ b/stdlib/go1_22_go_ast.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/ast'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -27,6 +27,7 @@ func init() { "Fun": reflect.ValueOf(ast.Fun), "Inspect": reflect.ValueOf(ast.Inspect), "IsExported": reflect.ValueOf(ast.IsExported), + "IsGenerated": reflect.ValueOf(ast.IsGenerated), "Lbl": reflect.ValueOf(ast.Lbl), "MergePackageFiles": reflect.ValueOf(ast.MergePackageFiles), "NewCommentMap": reflect.ValueOf(ast.NewCommentMap), @@ -42,6 +43,7 @@ func init() { "SEND": reflect.ValueOf(ast.SEND), "SortImports": reflect.ValueOf(ast.SortImports), "Typ": reflect.ValueOf(ast.Typ), + "Unparen": reflect.ValueOf(ast.Unparen), "Var": reflect.ValueOf(ast.Var), "Walk": reflect.ValueOf(ast.Walk), diff --git a/stdlib/go1_20_go_build.go b/stdlib/go1_22_go_build.go similarity index 91% rename from stdlib/go1_20_go_build.go rename to stdlib/go1_22_go_build.go index 2890931c5..126d173e0 100644 --- a/stdlib/go1_20_go_build.go +++ b/stdlib/go1_22_go_build.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/build'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -26,6 +26,7 @@ func init() { // type definitions "Context": reflect.ValueOf((*build.Context)(nil)), + "Directive": reflect.ValueOf((*build.Directive)(nil)), "ImportMode": reflect.ValueOf((*build.ImportMode)(nil)), "MultiplePackageError": reflect.ValueOf((*build.MultiplePackageError)(nil)), "NoGoError": reflect.ValueOf((*build.NoGoError)(nil)), diff --git a/stdlib/go1_20_go_build_constraint.go b/stdlib/go1_22_go_build_constraint.go similarity index 93% rename from stdlib/go1_20_go_build_constraint.go rename to stdlib/go1_22_go_build_constraint.go index 91b13d4e0..0ff7c0d98 100644 --- a/stdlib/go1_20_go_build_constraint.go +++ b/stdlib/go1_22_go_build_constraint.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/build/constraint'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -13,6 +13,7 @@ import ( func init() { Symbols["go/build/constraint/constraint"] = map[string]reflect.Value{ // function, constant and variable definitions + "GoVersion": reflect.ValueOf(constraint.GoVersion), "IsGoBuild": reflect.ValueOf(constraint.IsGoBuild), "IsPlusBuild": reflect.ValueOf(constraint.IsPlusBuild), "Parse": reflect.ValueOf(constraint.Parse), diff --git a/stdlib/go1_20_go_constant.go b/stdlib/go1_22_go_constant.go similarity index 98% rename from stdlib/go1_20_go_constant.go rename to stdlib/go1_22_go_constant.go index f6905ba3b..42743a7ef 100644 --- a/stdlib/go1_20_go_constant.go +++ b/stdlib/go1_22_go_constant.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_doc.go b/stdlib/go1_22_go_doc.go similarity index 95% rename from stdlib/go1_20_go_doc.go rename to stdlib/go1_22_go_doc.go index be8984e65..b015eb8c8 100644 --- a/stdlib/go1_20_go_doc.go +++ b/stdlib/go1_22_go_doc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/doc'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_doc_comment.go b/stdlib/go1_22_go_doc_comment.go similarity index 96% rename from stdlib/go1_20_go_doc_comment.go rename to stdlib/go1_22_go_doc_comment.go index ebe4d8834..78038096c 100644 --- a/stdlib/go1_20_go_doc_comment.go +++ b/stdlib/go1_22_go_doc_comment.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/doc/comment'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_format.go b/stdlib/go1_22_go_format.go similarity index 85% rename from stdlib/go1_20_go_format.go rename to stdlib/go1_22_go_format.go index fb67bec84..872b6ba68 100644 --- a/stdlib/go1_20_go_format.go +++ b/stdlib/go1_22_go_format.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/format'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_importer.go b/stdlib/go1_22_go_importer.go similarity index 89% rename from stdlib/go1_20_go_importer.go rename to stdlib/go1_22_go_importer.go index 8bbbd0481..763cc67d5 100644 --- a/stdlib/go1_20_go_importer.go +++ b/stdlib/go1_22_go_importer.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_parser.go b/stdlib/go1_22_go_parser.go similarity index 95% rename from stdlib/go1_20_go_parser.go rename to stdlib/go1_22_go_parser.go index fb89e65fb..e8beaa0f0 100644 --- a/stdlib/go1_20_go_parser.go +++ b/stdlib/go1_22_go_parser.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/parser'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_printer.go b/stdlib/go1_22_go_printer.go similarity index 92% rename from stdlib/go1_20_go_printer.go rename to stdlib/go1_22_go_printer.go index 583e9cddb..00299d7ce 100644 --- a/stdlib/go1_20_go_printer.go +++ b/stdlib/go1_22_go_printer.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_scanner.go b/stdlib/go1_22_go_scanner.go similarity index 92% rename from stdlib/go1_20_go_scanner.go rename to stdlib/go1_22_go_scanner.go index cf4ada876..5506ea2c9 100644 --- a/stdlib/go1_20_go_scanner.go +++ b/stdlib/go1_22_go_scanner.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_token.go b/stdlib/go1_22_go_token.go similarity index 98% rename from stdlib/go1_20_go_token.go rename to stdlib/go1_22_go_token.go index 1962a9c78..e1d645605 100644 --- a/stdlib/go1_20_go_token.go +++ b/stdlib/go1_22_go_token.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/token'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_go_types.go b/stdlib/go1_22_go_types.go similarity index 98% rename from stdlib/go1_20_go_types.go rename to stdlib/go1_22_go_types.go index 2d6dd00e8..491f2c318 100644 --- a/stdlib/go1_20_go_types.go +++ b/stdlib/go1_22_go_types.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract go/types'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -56,6 +56,7 @@ func init() { "MethodExpr": reflect.ValueOf(types.MethodExpr), "MethodVal": reflect.ValueOf(types.MethodVal), "MissingMethod": reflect.ValueOf(types.MissingMethod), + "NewAlias": reflect.ValueOf(types.NewAlias), "NewArray": reflect.ValueOf(types.NewArray), "NewChan": reflect.ValueOf(types.NewChan), "NewChecker": reflect.ValueOf(types.NewChecker), @@ -102,6 +103,7 @@ func init() { "Uint64": reflect.ValueOf(types.Uint64), "Uint8": reflect.ValueOf(types.Uint8), "Uintptr": reflect.ValueOf(types.Uintptr), + "Unalias": reflect.ValueOf(types.Unalias), "Universe": reflect.ValueOf(&types.Universe).Elem(), "Unsafe": reflect.ValueOf(&types.Unsafe).Elem(), "UnsafePointer": reflect.ValueOf(types.UnsafePointer), @@ -117,6 +119,7 @@ func init() { "WriteType": reflect.ValueOf(types.WriteType), // type definitions + "Alias": reflect.ValueOf((*types.Alias)(nil)), "ArgumentError": reflect.ValueOf((*types.ArgumentError)(nil)), "Array": reflect.ValueOf((*types.Array)(nil)), "Basic": reflect.ValueOf((*types.Basic)(nil)), diff --git a/stdlib/go1_22_go_version.go b/stdlib/go1_22_go_version.go new file mode 100644 index 000000000..1da719c8d --- /dev/null +++ b/stdlib/go1_22_go_version.go @@ -0,0 +1,20 @@ +// Code generated by 'yaegi extract go/version'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "go/version" + "reflect" +) + +func init() { + Symbols["go/version/version"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Compare": reflect.ValueOf(version.Compare), + "IsValid": reflect.ValueOf(version.IsValid), + "Lang": reflect.ValueOf(version.Lang), + } +} diff --git a/stdlib/go1_20_hash.go b/stdlib/go1_22_hash.go similarity index 97% rename from stdlib/go1_20_hash.go rename to stdlib/go1_22_hash.go index 8bd074eea..559a338b2 100644 --- a/stdlib/go1_20_hash.go +++ b/stdlib/go1_22_hash.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_hash_adler32.go b/stdlib/go1_22_hash_adler32.go similarity index 89% rename from stdlib/go1_20_hash_adler32.go rename to stdlib/go1_22_hash_adler32.go index 88a27dfa3..a3483a387 100644 --- a/stdlib/go1_20_hash_adler32.go +++ b/stdlib/go1_22_hash_adler32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_hash_crc32.go b/stdlib/go1_22_hash_crc32.go similarity index 95% rename from stdlib/go1_20_hash_crc32.go rename to stdlib/go1_22_hash_crc32.go index b5149b796..4db52f6b0 100644 --- a/stdlib/go1_20_hash_crc32.go +++ b/stdlib/go1_22_hash_crc32.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_hash_crc64.go b/stdlib/go1_22_hash_crc64.go similarity index 93% rename from stdlib/go1_20_hash_crc64.go rename to stdlib/go1_22_hash_crc64.go index 535f18dd3..30add2b2e 100644 --- a/stdlib/go1_20_hash_crc64.go +++ b/stdlib/go1_22_hash_crc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_hash_fnv.go b/stdlib/go1_22_hash_fnv.go similarity index 89% rename from stdlib/go1_20_hash_fnv.go rename to stdlib/go1_22_hash_fnv.go index ae6864b17..91f8ba977 100644 --- a/stdlib/go1_20_hash_fnv.go +++ b/stdlib/go1_22_hash_fnv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_hash_maphash.go b/stdlib/go1_22_hash_maphash.go similarity index 90% rename from stdlib/go1_20_hash_maphash.go rename to stdlib/go1_22_hash_maphash.go index 006e2e2d5..5d113b7b0 100644 --- a/stdlib/go1_20_hash_maphash.go +++ b/stdlib/go1_22_hash_maphash.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_html.go b/stdlib/go1_22_html.go similarity index 86% rename from stdlib/go1_20_html.go rename to stdlib/go1_22_html.go index f7df879c6..8a2c2c461 100644 --- a/stdlib/go1_20_html.go +++ b/stdlib/go1_22_html.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract html'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_html_template.go b/stdlib/go1_22_html_template.go similarity index 96% rename from stdlib/go1_20_html_template.go rename to stdlib/go1_22_html_template.go index 2872c3836..d27a26092 100644 --- a/stdlib/go1_20_html_template.go +++ b/stdlib/go1_22_html_template.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract html/template'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -17,6 +17,7 @@ func init() { "ErrBadHTML": reflect.ValueOf(template.ErrBadHTML), "ErrBranchEnd": reflect.ValueOf(template.ErrBranchEnd), "ErrEndContext": reflect.ValueOf(template.ErrEndContext), + "ErrJSTemplate": reflect.ValueOf(template.ErrJSTemplate), "ErrNoSuchTemplate": reflect.ValueOf(template.ErrNoSuchTemplate), "ErrOutputContext": reflect.ValueOf(template.ErrOutputContext), "ErrPartialCharset": reflect.ValueOf(template.ErrPartialCharset), diff --git a/stdlib/go1_20_image.go b/stdlib/go1_22_image.go similarity index 99% rename from stdlib/go1_20_image.go rename to stdlib/go1_22_image.go index d48300445..fd7ad4982 100644 --- a/stdlib/go1_20_image.go +++ b/stdlib/go1_22_image.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_color.go b/stdlib/go1_22_image_color.go similarity index 98% rename from stdlib/go1_20_image_color.go rename to stdlib/go1_22_image_color.go index e56b53ae5..486bd1fe3 100644 --- a/stdlib/go1_20_image_color.go +++ b/stdlib/go1_22_image_color.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/color'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_color_palette.go b/stdlib/go1_22_image_color_palette.go similarity index 87% rename from stdlib/go1_20_image_color_palette.go rename to stdlib/go1_22_image_color_palette.go index 542db19dd..42cb5b848 100644 --- a/stdlib/go1_20_image_color_palette.go +++ b/stdlib/go1_22_image_color_palette.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_draw.go b/stdlib/go1_22_image_draw.go similarity index 98% rename from stdlib/go1_20_image_draw.go rename to stdlib/go1_22_image_draw.go index 94d8629e3..98f910d6f 100644 --- a/stdlib/go1_20_image_draw.go +++ b/stdlib/go1_22_image_draw.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/draw'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_gif.go b/stdlib/go1_22_image_gif.go similarity index 94% rename from stdlib/go1_20_image_gif.go rename to stdlib/go1_22_image_gif.go index e5f68f2cd..8cc592ebf 100644 --- a/stdlib/go1_20_image_gif.go +++ b/stdlib/go1_22_image_gif.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/gif'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_jpeg.go b/stdlib/go1_22_image_jpeg.go similarity index 95% rename from stdlib/go1_20_image_jpeg.go rename to stdlib/go1_22_image_jpeg.go index a3f7a8653..30880a2c2 100644 --- a/stdlib/go1_20_image_jpeg.go +++ b/stdlib/go1_22_image_jpeg.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_image_png.go b/stdlib/go1_22_image_png.go similarity index 96% rename from stdlib/go1_20_image_png.go rename to stdlib/go1_22_image_png.go index 5742ac90c..a501550df 100644 --- a/stdlib/go1_20_image_png.go +++ b/stdlib/go1_22_image_png.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract image/png'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_index_suffixarray.go b/stdlib/go1_22_index_suffixarray.go similarity index 87% rename from stdlib/go1_20_index_suffixarray.go rename to stdlib/go1_22_index_suffixarray.go index 4ce76526b..54cce51ce 100644 --- a/stdlib/go1_20_index_suffixarray.go +++ b/stdlib/go1_22_index_suffixarray.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_io.go b/stdlib/go1_22_io.go similarity index 99% rename from stdlib/go1_20_io.go rename to stdlib/go1_22_io.go index 399509857..d7553bc33 100644 --- a/stdlib/go1_20_io.go +++ b/stdlib/go1_22_io.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_io_fs.go b/stdlib/go1_22_io_fs.go similarity index 97% rename from stdlib/go1_20_io_fs.go rename to stdlib/go1_22_io_fs.go index d4a0f5a90..ac66899f3 100644 --- a/stdlib/go1_20_io_fs.go +++ b/stdlib/go1_22_io_fs.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io/fs'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -20,6 +20,8 @@ func init() { "ErrNotExist": reflect.ValueOf(&fs.ErrNotExist).Elem(), "ErrPermission": reflect.ValueOf(&fs.ErrPermission).Elem(), "FileInfoToDirEntry": reflect.ValueOf(fs.FileInfoToDirEntry), + "FormatDirEntry": reflect.ValueOf(fs.FormatDirEntry), + "FormatFileInfo": reflect.ValueOf(fs.FormatFileInfo), "Glob": reflect.ValueOf(fs.Glob), "ModeAppend": reflect.ValueOf(fs.ModeAppend), "ModeCharDevice": reflect.ValueOf(fs.ModeCharDevice), diff --git a/stdlib/go1_20_io_ioutil.go b/stdlib/go1_22_io_ioutil.go similarity index 92% rename from stdlib/go1_20_io_ioutil.go rename to stdlib/go1_22_io_ioutil.go index ff79dd2db..a324484da 100644 --- a/stdlib/go1_20_io_ioutil.go +++ b/stdlib/go1_22_io_ioutil.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_log.go b/stdlib/go1_22_log.go similarity index 97% rename from stdlib/go1_20_log.go rename to stdlib/go1_22_log.go index a382e4b32..3e01c1363 100644 --- a/stdlib/go1_20_log.go +++ b/stdlib/go1_22_log.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract log'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_log_slog.go b/stdlib/go1_22_log_slog.go new file mode 100644 index 000000000..3be0fce8a --- /dev/null +++ b/stdlib/go1_22_log_slog.go @@ -0,0 +1,140 @@ +// Code generated by 'yaegi extract log/slog'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "context" + "go/constant" + "go/token" + "log/slog" + "reflect" +) + +func init() { + Symbols["log/slog/slog"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Any": reflect.ValueOf(slog.Any), + "AnyValue": reflect.ValueOf(slog.AnyValue), + "Bool": reflect.ValueOf(slog.Bool), + "BoolValue": reflect.ValueOf(slog.BoolValue), + "Debug": reflect.ValueOf(slog.Debug), + "DebugContext": reflect.ValueOf(slog.DebugContext), + "Default": reflect.ValueOf(slog.Default), + "Duration": reflect.ValueOf(slog.Duration), + "DurationValue": reflect.ValueOf(slog.DurationValue), + "Error": reflect.ValueOf(slog.Error), + "ErrorContext": reflect.ValueOf(slog.ErrorContext), + "Float64": reflect.ValueOf(slog.Float64), + "Float64Value": reflect.ValueOf(slog.Float64Value), + "Group": reflect.ValueOf(slog.Group), + "GroupValue": reflect.ValueOf(slog.GroupValue), + "Info": reflect.ValueOf(slog.Info), + "InfoContext": reflect.ValueOf(slog.InfoContext), + "Int": reflect.ValueOf(slog.Int), + "Int64": reflect.ValueOf(slog.Int64), + "Int64Value": reflect.ValueOf(slog.Int64Value), + "IntValue": reflect.ValueOf(slog.IntValue), + "KindAny": reflect.ValueOf(slog.KindAny), + "KindBool": reflect.ValueOf(slog.KindBool), + "KindDuration": reflect.ValueOf(slog.KindDuration), + "KindFloat64": reflect.ValueOf(slog.KindFloat64), + "KindGroup": reflect.ValueOf(slog.KindGroup), + "KindInt64": reflect.ValueOf(slog.KindInt64), + "KindLogValuer": reflect.ValueOf(slog.KindLogValuer), + "KindString": reflect.ValueOf(slog.KindString), + "KindTime": reflect.ValueOf(slog.KindTime), + "KindUint64": reflect.ValueOf(slog.KindUint64), + "LevelDebug": reflect.ValueOf(slog.LevelDebug), + "LevelError": reflect.ValueOf(slog.LevelError), + "LevelInfo": reflect.ValueOf(slog.LevelInfo), + "LevelKey": reflect.ValueOf(constant.MakeFromLiteral("\"level\"", token.STRING, 0)), + "LevelWarn": reflect.ValueOf(slog.LevelWarn), + "Log": reflect.ValueOf(slog.Log), + "LogAttrs": reflect.ValueOf(slog.LogAttrs), + "MessageKey": reflect.ValueOf(constant.MakeFromLiteral("\"msg\"", token.STRING, 0)), + "New": reflect.ValueOf(slog.New), + "NewJSONHandler": reflect.ValueOf(slog.NewJSONHandler), + "NewLogLogger": reflect.ValueOf(slog.NewLogLogger), + "NewRecord": reflect.ValueOf(slog.NewRecord), + "NewTextHandler": reflect.ValueOf(slog.NewTextHandler), + "SetDefault": reflect.ValueOf(slog.SetDefault), + "SetLogLoggerLevel": reflect.ValueOf(slog.SetLogLoggerLevel), + "SourceKey": reflect.ValueOf(constant.MakeFromLiteral("\"source\"", token.STRING, 0)), + "String": reflect.ValueOf(slog.String), + "StringValue": reflect.ValueOf(slog.StringValue), + "Time": reflect.ValueOf(slog.Time), + "TimeKey": reflect.ValueOf(constant.MakeFromLiteral("\"time\"", token.STRING, 0)), + "TimeValue": reflect.ValueOf(slog.TimeValue), + "Uint64": reflect.ValueOf(slog.Uint64), + "Uint64Value": reflect.ValueOf(slog.Uint64Value), + "Warn": reflect.ValueOf(slog.Warn), + "WarnContext": reflect.ValueOf(slog.WarnContext), + "With": reflect.ValueOf(slog.With), + + // type definitions + "Attr": reflect.ValueOf((*slog.Attr)(nil)), + "Handler": reflect.ValueOf((*slog.Handler)(nil)), + "HandlerOptions": reflect.ValueOf((*slog.HandlerOptions)(nil)), + "JSONHandler": reflect.ValueOf((*slog.JSONHandler)(nil)), + "Kind": reflect.ValueOf((*slog.Kind)(nil)), + "Level": reflect.ValueOf((*slog.Level)(nil)), + "LevelVar": reflect.ValueOf((*slog.LevelVar)(nil)), + "Leveler": reflect.ValueOf((*slog.Leveler)(nil)), + "LogValuer": reflect.ValueOf((*slog.LogValuer)(nil)), + "Logger": reflect.ValueOf((*slog.Logger)(nil)), + "Record": reflect.ValueOf((*slog.Record)(nil)), + "Source": reflect.ValueOf((*slog.Source)(nil)), + "TextHandler": reflect.ValueOf((*slog.TextHandler)(nil)), + "Value": reflect.ValueOf((*slog.Value)(nil)), + + // interface wrapper definitions + "_Handler": reflect.ValueOf((*_log_slog_Handler)(nil)), + "_Leveler": reflect.ValueOf((*_log_slog_Leveler)(nil)), + "_LogValuer": reflect.ValueOf((*_log_slog_LogValuer)(nil)), + } +} + +// _log_slog_Handler is an interface wrapper for Handler type +type _log_slog_Handler struct { + IValue interface{} + WEnabled func(a0 context.Context, a1 slog.Level) bool + WHandle func(a0 context.Context, a1 slog.Record) error + WWithAttrs func(attrs []slog.Attr) slog.Handler + WWithGroup func(name string) slog.Handler +} + +func (W _log_slog_Handler) Enabled(a0 context.Context, a1 slog.Level) bool { + return W.WEnabled(a0, a1) +} +func (W _log_slog_Handler) Handle(a0 context.Context, a1 slog.Record) error { + return W.WHandle(a0, a1) +} +func (W _log_slog_Handler) WithAttrs(attrs []slog.Attr) slog.Handler { + return W.WWithAttrs(attrs) +} +func (W _log_slog_Handler) WithGroup(name string) slog.Handler { + return W.WWithGroup(name) +} + +// _log_slog_Leveler is an interface wrapper for Leveler type +type _log_slog_Leveler struct { + IValue interface{} + WLevel func() slog.Level +} + +func (W _log_slog_Leveler) Level() slog.Level { + return W.WLevel() +} + +// _log_slog_LogValuer is an interface wrapper for LogValuer type +type _log_slog_LogValuer struct { + IValue interface{} + WLogValue func() slog.Value +} + +func (W _log_slog_LogValuer) LogValue() slog.Value { + return W.WLogValue() +} diff --git a/stdlib/go1_20_log_syslog.go b/stdlib/go1_22_log_syslog.go similarity index 94% rename from stdlib/go1_20_log_syslog.go rename to stdlib/go1_22_log_syslog.go index 1a17c9017..0779e5212 100644 --- a/stdlib/go1_20_log_syslog.go +++ b/stdlib/go1_22_log_syslog.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract log/syslog'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !windows && !nacl && !plan9 -// +build go1.20,!go1.21,!windows,!nacl,!plan9 +//go:build go1.22 && !windows && !nacl && !plan9 +// +build go1.22,!windows,!nacl,!plan9 package stdlib diff --git a/stdlib/go1_22_maps.go b/stdlib/go1_22_maps.go new file mode 100644 index 000000000..789292058 --- /dev/null +++ b/stdlib/go1_22_maps.go @@ -0,0 +1,14 @@ +// Code generated by 'yaegi extract maps'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "reflect" +) + +func init() { + Symbols["maps/maps"] = map[string]reflect.Value{} +} diff --git a/stdlib/go1_20_math.go b/stdlib/go1_22_math.go similarity index 99% rename from stdlib/go1_20_math.go rename to stdlib/go1_22_math.go index e9bc31d16..593896ace 100644 --- a/stdlib/go1_20_math.go +++ b/stdlib/go1_22_math.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_math_big.go b/stdlib/go1_22_math_big.go similarity index 96% rename from stdlib/go1_20_math_big.go rename to stdlib/go1_22_math_big.go index 4294c3ecf..d0a303d4c 100644 --- a/stdlib/go1_20_math_big.go +++ b/stdlib/go1_22_math_big.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/big'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_math_bits.go b/stdlib/go1_22_math_bits.go similarity index 98% rename from stdlib/go1_20_math_bits.go rename to stdlib/go1_22_math_bits.go index 1bb89dc93..9e4b71b3e 100644 --- a/stdlib/go1_20_math_bits.go +++ b/stdlib/go1_22_math_bits.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/bits'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_math_cmplx.go b/stdlib/go1_22_math_cmplx.go similarity index 96% rename from stdlib/go1_20_math_cmplx.go rename to stdlib/go1_22_math_cmplx.go index 71f587fbb..7e8034339 100644 --- a/stdlib/go1_20_math_cmplx.go +++ b/stdlib/go1_22_math_cmplx.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_math_rand.go b/stdlib/go1_22_math_rand.go similarity index 97% rename from stdlib/go1_20_math_rand.go rename to stdlib/go1_22_math_rand.go index 8ddc23488..fc55daeb1 100644 --- a/stdlib/go1_20_math_rand.go +++ b/stdlib/go1_22_math_rand.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract math/rand'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_math_rand_v2.go b/stdlib/go1_22_math_rand_v2.go new file mode 100644 index 000000000..5af9f02be --- /dev/null +++ b/stdlib/go1_22_math_rand_v2.go @@ -0,0 +1,58 @@ +// Code generated by 'yaegi extract math/rand/v2'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "math/rand/v2" + "reflect" +) + +func init() { + Symbols["math/rand/v2/rand"] = map[string]reflect.Value{ + // function, constant and variable definitions + "ExpFloat64": reflect.ValueOf(rand.ExpFloat64), + "Float32": reflect.ValueOf(rand.Float32), + "Float64": reflect.ValueOf(rand.Float64), + "Int": reflect.ValueOf(rand.Int), + "Int32": reflect.ValueOf(rand.Int32), + "Int32N": reflect.ValueOf(rand.Int32N), + "Int64": reflect.ValueOf(rand.Int64), + "Int64N": reflect.ValueOf(rand.Int64N), + "IntN": reflect.ValueOf(rand.IntN), + "New": reflect.ValueOf(rand.New), + "NewChaCha8": reflect.ValueOf(rand.NewChaCha8), + "NewPCG": reflect.ValueOf(rand.NewPCG), + "NewZipf": reflect.ValueOf(rand.NewZipf), + "NormFloat64": reflect.ValueOf(rand.NormFloat64), + "Perm": reflect.ValueOf(rand.Perm), + "Shuffle": reflect.ValueOf(rand.Shuffle), + "Uint32": reflect.ValueOf(rand.Uint32), + "Uint32N": reflect.ValueOf(rand.Uint32N), + "Uint64": reflect.ValueOf(rand.Uint64), + "Uint64N": reflect.ValueOf(rand.Uint64N), + "UintN": reflect.ValueOf(rand.UintN), + + // type definitions + "ChaCha8": reflect.ValueOf((*rand.ChaCha8)(nil)), + "PCG": reflect.ValueOf((*rand.PCG)(nil)), + "Rand": reflect.ValueOf((*rand.Rand)(nil)), + "Source": reflect.ValueOf((*rand.Source)(nil)), + "Zipf": reflect.ValueOf((*rand.Zipf)(nil)), + + // interface wrapper definitions + "_Source": reflect.ValueOf((*_math_rand_v2_Source)(nil)), + } +} + +// _math_rand_v2_Source is an interface wrapper for Source type +type _math_rand_v2_Source struct { + IValue interface{} + WUint64 func() uint64 +} + +func (W _math_rand_v2_Source) Uint64() uint64 { + return W.WUint64() +} diff --git a/stdlib/go1_20_mime.go b/stdlib/go1_22_mime.go similarity index 94% rename from stdlib/go1_20_mime.go rename to stdlib/go1_22_mime.go index 5c9628e3c..fe9cade22 100644 --- a/stdlib/go1_20_mime.go +++ b/stdlib/go1_22_mime.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_mime_multipart.go b/stdlib/go1_22_mime_multipart.go similarity index 96% rename from stdlib/go1_20_mime_multipart.go rename to stdlib/go1_22_mime_multipart.go index 20ea65c27..b683a5a3d 100644 --- a/stdlib/go1_20_mime_multipart.go +++ b/stdlib/go1_22_mime_multipart.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime/multipart'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_mime_quotedprintable.go b/stdlib/go1_22_mime_quotedprintable.go similarity index 90% rename from stdlib/go1_20_mime_quotedprintable.go rename to stdlib/go1_22_mime_quotedprintable.go index eed0d28dd..19f306e83 100644 --- a/stdlib/go1_20_mime_quotedprintable.go +++ b/stdlib/go1_22_mime_quotedprintable.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net.go b/stdlib/go1_22_net.go similarity index 99% rename from stdlib/go1_20_net.go rename to stdlib/go1_22_net.go index 917774fe3..fed0cd388 100644 --- a/stdlib/go1_20_net.go +++ b/stdlib/go1_22_net.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http.go b/stdlib/go1_22_net_http.go similarity index 98% rename from stdlib/go1_20_net_http.go rename to stdlib/go1_22_net_http.go index 0523fefd8..7ba645c00 100644 --- a/stdlib/go1_20_net_http.go +++ b/stdlib/go1_22_net_http.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -42,6 +42,7 @@ func init() { "ErrNoLocation": reflect.ValueOf(&http.ErrNoLocation).Elem(), "ErrNotMultipart": reflect.ValueOf(&http.ErrNotMultipart).Elem(), "ErrNotSupported": reflect.ValueOf(&http.ErrNotSupported).Elem(), + "ErrSchemeMismatch": reflect.ValueOf(&http.ErrSchemeMismatch).Elem(), "ErrServerClosed": reflect.ValueOf(&http.ErrServerClosed).Elem(), "ErrShortBody": reflect.ValueOf(&http.ErrShortBody).Elem(), "ErrSkipAltProtocol": reflect.ValueOf(&http.ErrSkipAltProtocol).Elem(), @@ -51,6 +52,7 @@ func init() { "Error": reflect.ValueOf(http.Error), "FS": reflect.ValueOf(http.FS), "FileServer": reflect.ValueOf(http.FileServer), + "FileServerFS": reflect.ValueOf(http.FileServerFS), "Get": reflect.ValueOf(http.Get), "Handle": reflect.ValueOf(http.Handle), "HandleFunc": reflect.ValueOf(http.HandleFunc), @@ -70,6 +72,7 @@ func init() { "MethodPut": reflect.ValueOf(constant.MakeFromLiteral("\"PUT\"", token.STRING, 0)), "MethodTrace": reflect.ValueOf(constant.MakeFromLiteral("\"TRACE\"", token.STRING, 0)), "NewFileTransport": reflect.ValueOf(http.NewFileTransport), + "NewFileTransportFS": reflect.ValueOf(http.NewFileTransportFS), "NewRequest": reflect.ValueOf(http.NewRequest), "NewRequestWithContext": reflect.ValueOf(http.NewRequestWithContext), "NewResponseController": reflect.ValueOf(http.NewResponseController), @@ -94,6 +97,7 @@ func init() { "Serve": reflect.ValueOf(http.Serve), "ServeContent": reflect.ValueOf(http.ServeContent), "ServeFile": reflect.ValueOf(http.ServeFile), + "ServeFileFS": reflect.ValueOf(http.ServeFileFS), "ServeTLS": reflect.ValueOf(http.ServeTLS), "ServerContextKey": reflect.ValueOf(&http.ServerContextKey).Elem(), "SetCookie": reflect.ValueOf(http.SetCookie), diff --git a/stdlib/go1_20_net_http_cgi.go b/stdlib/go1_22_net_http_cgi.go similarity index 89% rename from stdlib/go1_20_net_http_cgi.go rename to stdlib/go1_22_net_http_cgi.go index 332fff9fc..c25a2dfd0 100644 --- a/stdlib/go1_20_net_http_cgi.go +++ b/stdlib/go1_22_net_http_cgi.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_cookiejar.go b/stdlib/go1_22_net_http_cookiejar.go similarity index 95% rename from stdlib/go1_20_net_http_cookiejar.go rename to stdlib/go1_22_net_http_cookiejar.go index 36ac840ef..007bbfe58 100644 --- a/stdlib/go1_20_net_http_cookiejar.go +++ b/stdlib/go1_22_net_http_cookiejar.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_fcgi.go b/stdlib/go1_22_net_http_fcgi.go similarity index 90% rename from stdlib/go1_20_net_http_fcgi.go rename to stdlib/go1_22_net_http_fcgi.go index 84ae2b08c..9b762467d 100644 --- a/stdlib/go1_20_net_http_fcgi.go +++ b/stdlib/go1_22_net_http_fcgi.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_httptest.go b/stdlib/go1_22_net_http_httptest.go similarity index 94% rename from stdlib/go1_20_net_http_httptest.go rename to stdlib/go1_22_net_http_httptest.go index 082ffee51..289b7cb48 100644 --- a/stdlib/go1_20_net_http_httptest.go +++ b/stdlib/go1_22_net_http_httptest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_httptrace.go b/stdlib/go1_22_net_http_httptrace.go similarity index 93% rename from stdlib/go1_20_net_http_httptrace.go rename to stdlib/go1_22_net_http_httptrace.go index a7b1f3440..f2a15b0b9 100644 --- a/stdlib/go1_20_net_http_httptrace.go +++ b/stdlib/go1_22_net_http_httptrace.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_httputil.go b/stdlib/go1_22_net_http_httputil.go similarity index 97% rename from stdlib/go1_20_net_http_httputil.go rename to stdlib/go1_22_net_http_httputil.go index 77ddface4..2a1baef0c 100644 --- a/stdlib/go1_20_net_http_httputil.go +++ b/stdlib/go1_22_net_http_httputil.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_http_pprof.go b/stdlib/go1_22_net_http_pprof.go similarity index 90% rename from stdlib/go1_20_net_http_pprof.go rename to stdlib/go1_22_net_http_pprof.go index bc9aa3c9b..3445932f9 100644 --- a/stdlib/go1_20_net_http_pprof.go +++ b/stdlib/go1_22_net_http_pprof.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_mail.go b/stdlib/go1_22_net_mail.go similarity index 93% rename from stdlib/go1_20_net_mail.go rename to stdlib/go1_22_net_mail.go index bc49fe26e..9c63d7600 100644 --- a/stdlib/go1_20_net_mail.go +++ b/stdlib/go1_22_net_mail.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_netip.go b/stdlib/go1_22_net_netip.go similarity index 96% rename from stdlib/go1_20_net_netip.go rename to stdlib/go1_22_net_netip.go index 5f398b4a4..3f5e8df9c 100644 --- a/stdlib/go1_20_net_netip.go +++ b/stdlib/go1_22_net_netip.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/netip'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_rpc.go b/stdlib/go1_22_net_rpc.go similarity index 98% rename from stdlib/go1_20_net_rpc.go rename to stdlib/go1_22_net_rpc.go index b31431267..0bbc83d02 100644 --- a/stdlib/go1_20_net_rpc.go +++ b/stdlib/go1_22_net_rpc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/rpc'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_rpc_jsonrpc.go b/stdlib/go1_22_net_rpc_jsonrpc.go similarity index 90% rename from stdlib/go1_20_net_rpc_jsonrpc.go rename to stdlib/go1_22_net_rpc_jsonrpc.go index 503f40783..3e4d5bf72 100644 --- a/stdlib/go1_20_net_rpc_jsonrpc.go +++ b/stdlib/go1_22_net_rpc_jsonrpc.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_smtp.go b/stdlib/go1_22_net_smtp.go similarity index 95% rename from stdlib/go1_20_net_smtp.go rename to stdlib/go1_22_net_smtp.go index 39c6335f8..9ed5612a5 100644 --- a/stdlib/go1_20_net_smtp.go +++ b/stdlib/go1_22_net_smtp.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_textproto.go b/stdlib/go1_22_net_textproto.go similarity index 95% rename from stdlib/go1_20_net_textproto.go rename to stdlib/go1_22_net_textproto.go index 15a5a6faf..832fbe7a1 100644 --- a/stdlib/go1_20_net_textproto.go +++ b/stdlib/go1_22_net_textproto.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_net_url.go b/stdlib/go1_22_net_url.go similarity index 95% rename from stdlib/go1_20_net_url.go rename to stdlib/go1_22_net_url.go index 088b22f94..591e80903 100644 --- a/stdlib/go1_20_net_url.go +++ b/stdlib/go1_22_net_url.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract net/url'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_os.go b/stdlib/go1_22_os.go similarity index 99% rename from stdlib/go1_20_os.go rename to stdlib/go1_22_os.go index d8398ea88..be7edf719 100644 --- a/stdlib/go1_20_os.go +++ b/stdlib/go1_22_os.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_os_signal.go b/stdlib/go1_22_os_signal.go similarity index 91% rename from stdlib/go1_20_os_signal.go rename to stdlib/go1_22_os_signal.go index d4ad29ab4..1f5a4d023 100644 --- a/stdlib/go1_20_os_signal.go +++ b/stdlib/go1_22_os_signal.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os/signal'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_os_user.go b/stdlib/go1_22_os_user.go similarity index 94% rename from stdlib/go1_20_os_user.go rename to stdlib/go1_22_os_user.go index 501603f0e..8cdf74260 100644 --- a/stdlib/go1_20_os_user.go +++ b/stdlib/go1_22_os_user.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract os/user'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_path.go b/stdlib/go1_22_path.go similarity index 92% rename from stdlib/go1_20_path.go rename to stdlib/go1_22_path.go index 5f3209487..3c97a3334 100644 --- a/stdlib/go1_20_path.go +++ b/stdlib/go1_22_path.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract path'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_path_filepath.go b/stdlib/go1_22_path_filepath.go similarity index 97% rename from stdlib/go1_20_path_filepath.go rename to stdlib/go1_22_path_filepath.go index 980cbcb14..cd509cf35 100644 --- a/stdlib/go1_20_path_filepath.go +++ b/stdlib/go1_22_path_filepath.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract path/filepath'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_reflect.go b/stdlib/go1_22_reflect.go similarity index 99% rename from stdlib/go1_20_reflect.go rename to stdlib/go1_22_reflect.go index 8da29ea12..772b8cc9c 100644 --- a/stdlib/go1_20_reflect.go +++ b/stdlib/go1_22_reflect.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract reflect'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_regexp.go b/stdlib/go1_22_regexp.go similarity index 93% rename from stdlib/go1_20_regexp.go rename to stdlib/go1_22_regexp.go index bc7c4c64b..752a016d3 100644 --- a/stdlib/go1_20_regexp.go +++ b/stdlib/go1_22_regexp.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract regexp'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_regexp_syntax.go b/stdlib/go1_22_regexp_syntax.go similarity index 99% rename from stdlib/go1_20_regexp_syntax.go rename to stdlib/go1_22_regexp_syntax.go index 144d6beb9..21ae95b02 100644 --- a/stdlib/go1_20_regexp_syntax.go +++ b/stdlib/go1_22_regexp_syntax.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract regexp/syntax'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_runtime.go b/stdlib/go1_22_runtime.go similarity index 95% rename from stdlib/go1_20_runtime.go rename to stdlib/go1_22_runtime.go index c6ae61023..0948887c4 100644 --- a/stdlib/go1_20_runtime.go +++ b/stdlib/go1_22_runtime.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -61,6 +61,8 @@ func init() { "Func": reflect.ValueOf((*runtime.Func)(nil)), "MemProfileRecord": reflect.ValueOf((*runtime.MemProfileRecord)(nil)), "MemStats": reflect.ValueOf((*runtime.MemStats)(nil)), + "PanicNilError": reflect.ValueOf((*runtime.PanicNilError)(nil)), + "Pinner": reflect.ValueOf((*runtime.Pinner)(nil)), "StackRecord": reflect.ValueOf((*runtime.StackRecord)(nil)), "TypeAssertionError": reflect.ValueOf((*runtime.TypeAssertionError)(nil)), diff --git a/stdlib/go1_20_runtime_debug.go b/stdlib/go1_22_runtime_debug.go similarity index 95% rename from stdlib/go1_20_runtime_debug.go rename to stdlib/go1_22_runtime_debug.go index 5be0c9958..92c6ba278 100644 --- a/stdlib/go1_20_runtime_debug.go +++ b/stdlib/go1_22_runtime_debug.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_runtime_metrics.go b/stdlib/go1_22_runtime_metrics.go similarity index 94% rename from stdlib/go1_20_runtime_metrics.go rename to stdlib/go1_22_runtime_metrics.go index 7b76d84e1..5fc2fd975 100644 --- a/stdlib/go1_20_runtime_metrics.go +++ b/stdlib/go1_22_runtime_metrics.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/metrics'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_runtime_pprof.go b/stdlib/go1_22_runtime_pprof.go similarity index 95% rename from stdlib/go1_20_runtime_pprof.go rename to stdlib/go1_22_runtime_pprof.go index 1f7ee54d0..8dcf17cef 100644 --- a/stdlib/go1_20_runtime_pprof.go +++ b/stdlib/go1_22_runtime_pprof.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_runtime_trace.go b/stdlib/go1_22_runtime_trace.go similarity index 93% rename from stdlib/go1_20_runtime_trace.go rename to stdlib/go1_22_runtime_trace.go index d26b38304..d0b94806f 100644 --- a/stdlib/go1_20_runtime_trace.go +++ b/stdlib/go1_22_runtime_trace.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_slices.go b/stdlib/go1_22_slices.go new file mode 100644 index 000000000..161694f4e --- /dev/null +++ b/stdlib/go1_22_slices.go @@ -0,0 +1,14 @@ +// Code generated by 'yaegi extract slices'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "reflect" +) + +func init() { + Symbols["slices/slices"] = map[string]reflect.Value{} +} diff --git a/stdlib/go1_20_sort.go b/stdlib/go1_22_sort.go similarity index 97% rename from stdlib/go1_20_sort.go rename to stdlib/go1_22_sort.go index fa7285946..224c9bcc1 100644 --- a/stdlib/go1_20_sort.go +++ b/stdlib/go1_22_sort.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sort'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_strconv.go b/stdlib/go1_22_strconv.go similarity index 98% rename from stdlib/go1_20_strconv.go rename to stdlib/go1_22_strconv.go index 6040b07fb..3769bb91a 100644 --- a/stdlib/go1_20_strconv.go +++ b/stdlib/go1_22_strconv.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract strconv'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_strings.go b/stdlib/go1_22_strings.go similarity index 97% rename from stdlib/go1_20_strings.go rename to stdlib/go1_22_strings.go index 4b464282a..14f53f0c4 100644 --- a/stdlib/go1_20_strings.go +++ b/stdlib/go1_22_strings.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract strings'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -17,6 +17,7 @@ func init() { "Compare": reflect.ValueOf(strings.Compare), "Contains": reflect.ValueOf(strings.Contains), "ContainsAny": reflect.ValueOf(strings.ContainsAny), + "ContainsFunc": reflect.ValueOf(strings.ContainsFunc), "ContainsRune": reflect.ValueOf(strings.ContainsRune), "Count": reflect.ValueOf(strings.Count), "Cut": reflect.ValueOf(strings.Cut), diff --git a/stdlib/go1_20_sync.go b/stdlib/go1_22_sync.go similarity index 88% rename from stdlib/go1_20_sync.go rename to stdlib/go1_22_sync.go index c03fd3c38..defa92f4b 100644 --- a/stdlib/go1_20_sync.go +++ b/stdlib/go1_22_sync.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sync'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -13,7 +13,8 @@ import ( func init() { Symbols["sync/sync"] = map[string]reflect.Value{ // function, constant and variable definitions - "NewCond": reflect.ValueOf(sync.NewCond), + "NewCond": reflect.ValueOf(sync.NewCond), + "OnceFunc": reflect.ValueOf(sync.OnceFunc), // type definitions "Cond": reflect.ValueOf((*sync.Cond)(nil)), diff --git a/stdlib/go1_20_sync_atomic.go b/stdlib/go1_22_sync_atomic.go similarity index 97% rename from stdlib/go1_20_sync_atomic.go rename to stdlib/go1_22_sync_atomic.go index 8cf827b22..8d2b71bef 100644 --- a/stdlib/go1_20_sync_atomic.go +++ b/stdlib/go1_22_sync_atomic.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract sync/atomic'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_testing.go b/stdlib/go1_22_testing.go similarity index 97% rename from stdlib/go1_20_testing.go rename to stdlib/go1_22_testing.go index d4a787e99..e56523071 100644 --- a/stdlib/go1_20_testing.go +++ b/stdlib/go1_22_testing.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -25,6 +25,7 @@ func init() { "RunExamples": reflect.ValueOf(testing.RunExamples), "RunTests": reflect.ValueOf(testing.RunTests), "Short": reflect.ValueOf(testing.Short), + "Testing": reflect.ValueOf(testing.Testing), "Verbose": reflect.ValueOf(testing.Verbose), // type definitions diff --git a/stdlib/go1_20_testing_fstest.go b/stdlib/go1_22_testing_fstest.go similarity index 88% rename from stdlib/go1_20_testing_fstest.go rename to stdlib/go1_22_testing_fstest.go index d7b302119..2e644316c 100644 --- a/stdlib/go1_20_testing_fstest.go +++ b/stdlib/go1_22_testing_fstest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/fstest'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_testing_iotest.go b/stdlib/go1_22_testing_iotest.go similarity index 93% rename from stdlib/go1_20_testing_iotest.go rename to stdlib/go1_22_testing_iotest.go index 027e4de9f..4e9f6d3f9 100644 --- a/stdlib/go1_20_testing_iotest.go +++ b/stdlib/go1_22_testing_iotest.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_testing_quick.go b/stdlib/go1_22_testing_quick.go similarity index 95% rename from stdlib/go1_20_testing_quick.go rename to stdlib/go1_22_testing_quick.go index d5972839a..27c25b57b 100644 --- a/stdlib/go1_20_testing_quick.go +++ b/stdlib/go1_22_testing_quick.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_22_testing_slogtest.go b/stdlib/go1_22_testing_slogtest.go new file mode 100644 index 000000000..e5dfb0e04 --- /dev/null +++ b/stdlib/go1_22_testing_slogtest.go @@ -0,0 +1,19 @@ +// Code generated by 'yaegi extract testing/slogtest'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package stdlib + +import ( + "reflect" + "testing/slogtest" +) + +func init() { + Symbols["testing/slogtest/slogtest"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Run": reflect.ValueOf(slogtest.Run), + "TestHandler": reflect.ValueOf(slogtest.TestHandler), + } +} diff --git a/stdlib/go1_20_text_scanner.go b/stdlib/go1_22_text_scanner.go similarity index 97% rename from stdlib/go1_20_text_scanner.go rename to stdlib/go1_22_text_scanner.go index 4b4f8cd2c..822065730 100644 --- a/stdlib/go1_20_text_scanner.go +++ b/stdlib/go1_22_text_scanner.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/scanner'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_text_tabwriter.go b/stdlib/go1_22_text_tabwriter.go similarity index 94% rename from stdlib/go1_20_text_tabwriter.go rename to stdlib/go1_22_text_tabwriter.go index afa398735..0080c8867 100644 --- a/stdlib/go1_20_text_tabwriter.go +++ b/stdlib/go1_22_text_tabwriter.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_text_template.go b/stdlib/go1_22_text_template.go similarity index 95% rename from stdlib/go1_20_text_template.go rename to stdlib/go1_22_text_template.go index 207e371b7..1f97cebc2 100644 --- a/stdlib/go1_20_text_template.go +++ b/stdlib/go1_22_text_template.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/template'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_text_template_parse.go b/stdlib/go1_22_text_template_parse.go similarity index 98% rename from stdlib/go1_20_text_template_parse.go rename to stdlib/go1_22_text_template_parse.go index 70d0be94e..0812db08e 100644 --- a/stdlib/go1_20_text_template_parse.go +++ b/stdlib/go1_22_text_template_parse.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract text/template/parse'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_time.go b/stdlib/go1_22_time.go similarity index 99% rename from stdlib/go1_20_time.go rename to stdlib/go1_22_time.go index 19c8d748b..e4db9a56f 100644 --- a/stdlib/go1_20_time.go +++ b/stdlib/go1_22_time.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract time'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_unicode.go b/stdlib/go1_22_unicode.go similarity index 97% rename from stdlib/go1_20_unicode.go rename to stdlib/go1_22_unicode.go index efe08ddcf..e5072fb99 100644 --- a/stdlib/go1_20_unicode.go +++ b/stdlib/go1_22_unicode.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib @@ -53,6 +53,7 @@ func init() { "Cs": reflect.ValueOf(&unicode.Cs).Elem(), "Cuneiform": reflect.ValueOf(&unicode.Cuneiform).Elem(), "Cypriot": reflect.ValueOf(&unicode.Cypriot).Elem(), + "Cypro_Minoan": reflect.ValueOf(&unicode.Cypro_Minoan).Elem(), "Cyrillic": reflect.ValueOf(&unicode.Cyrillic).Elem(), "Dash": reflect.ValueOf(&unicode.Dash).Elem(), "Deprecated": reflect.ValueOf(&unicode.Deprecated).Elem(), @@ -116,6 +117,7 @@ func init() { "Kaithi": reflect.ValueOf(&unicode.Kaithi).Elem(), "Kannada": reflect.ValueOf(&unicode.Kannada).Elem(), "Katakana": reflect.ValueOf(&unicode.Katakana).Elem(), + "Kawi": reflect.ValueOf(&unicode.Kawi).Elem(), "Kayah_Li": reflect.ValueOf(&unicode.Kayah_Li).Elem(), "Kharoshthi": reflect.ValueOf(&unicode.Kharoshthi).Elem(), "Khitan_Small_Script": reflect.ValueOf(&unicode.Khitan_Small_Script).Elem(), @@ -170,6 +172,7 @@ func init() { "Myanmar": reflect.ValueOf(&unicode.Myanmar).Elem(), "N": reflect.ValueOf(&unicode.N).Elem(), "Nabataean": reflect.ValueOf(&unicode.Nabataean).Elem(), + "Nag_Mundari": reflect.ValueOf(&unicode.Nag_Mundari).Elem(), "Nandinagari": reflect.ValueOf(&unicode.Nandinagari).Elem(), "Nd": reflect.ValueOf(&unicode.Nd).Elem(), "New_Tai_Lue": reflect.ValueOf(&unicode.New_Tai_Lue).Elem(), @@ -191,6 +194,7 @@ func init() { "Old_Sogdian": reflect.ValueOf(&unicode.Old_Sogdian).Elem(), "Old_South_Arabian": reflect.ValueOf(&unicode.Old_South_Arabian).Elem(), "Old_Turkic": reflect.ValueOf(&unicode.Old_Turkic).Elem(), + "Old_Uyghur": reflect.ValueOf(&unicode.Old_Uyghur).Elem(), "Oriya": reflect.ValueOf(&unicode.Oriya).Elem(), "Osage": reflect.ValueOf(&unicode.Osage).Elem(), "Osmanya": reflect.ValueOf(&unicode.Osmanya).Elem(), @@ -261,6 +265,7 @@ func init() { "Tai_Viet": reflect.ValueOf(&unicode.Tai_Viet).Elem(), "Takri": reflect.ValueOf(&unicode.Takri).Elem(), "Tamil": reflect.ValueOf(&unicode.Tamil).Elem(), + "Tangsa": reflect.ValueOf(&unicode.Tangsa).Elem(), "Tangut": reflect.ValueOf(&unicode.Tangut).Elem(), "Telugu": reflect.ValueOf(&unicode.Telugu).Elem(), "Terminal_Punctuation": reflect.ValueOf(&unicode.Terminal_Punctuation).Elem(), @@ -275,6 +280,7 @@ func init() { "ToLower": reflect.ValueOf(unicode.ToLower), "ToTitle": reflect.ValueOf(unicode.ToTitle), "ToUpper": reflect.ValueOf(unicode.ToUpper), + "Toto": reflect.ValueOf(&unicode.Toto).Elem(), "TurkishCase": reflect.ValueOf(&unicode.TurkishCase).Elem(), "Ugaritic": reflect.ValueOf(&unicode.Ugaritic).Elem(), "Unified_Ideograph": reflect.ValueOf(&unicode.Unified_Ideograph).Elem(), @@ -283,7 +289,8 @@ func init() { "UpperLower": reflect.ValueOf(constant.MakeFromLiteral("1114112", token.INT, 0)), "Vai": reflect.ValueOf(&unicode.Vai).Elem(), "Variation_Selector": reflect.ValueOf(&unicode.Variation_Selector).Elem(), - "Version": reflect.ValueOf(constant.MakeFromLiteral("\"13.0.0\"", token.STRING, 0)), + "Version": reflect.ValueOf(constant.MakeFromLiteral("\"15.0.0\"", token.STRING, 0)), + "Vithkuqi": reflect.ValueOf(&unicode.Vithkuqi).Elem(), "Wancho": reflect.ValueOf(&unicode.Wancho).Elem(), "Warang_Citi": reflect.ValueOf(&unicode.Warang_Citi).Elem(), "White_Space": reflect.ValueOf(&unicode.White_Space).Elem(), diff --git a/stdlib/go1_20_unicode_utf16.go b/stdlib/go1_22_unicode_utf16.go similarity index 91% rename from stdlib/go1_20_unicode_utf16.go rename to stdlib/go1_22_unicode_utf16.go index a57b80a1c..81df579d2 100644 --- a/stdlib/go1_20_unicode_utf16.go +++ b/stdlib/go1_22_unicode_utf16.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/go1_20_unicode_utf8.go b/stdlib/go1_22_unicode_utf8.go similarity index 96% rename from stdlib/go1_20_unicode_utf8.go rename to stdlib/go1_22_unicode_utf8.go index e48e33914..d6c4662cc 100644 --- a/stdlib/go1_20_unicode_utf8.go +++ b/stdlib/go1_22_unicode_utf8.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package stdlib diff --git a/stdlib/stdlib-go1.21.go b/stdlib/stdlib-go1.21.go deleted file mode 100644 index a1784e9ce..000000000 --- a/stdlib/stdlib-go1.21.go +++ /dev/null @@ -1,5 +0,0 @@ -//go:build go1.21 - -package stdlib - -//go:generate ../internal/cmd/extract/extract cmp log/slog maps slices testing/slogtest diff --git a/stdlib/stdlib-go1.22.go b/stdlib/stdlib-go1.22.go new file mode 100644 index 000000000..d2360b060 --- /dev/null +++ b/stdlib/stdlib-go1.22.go @@ -0,0 +1,5 @@ +//go:build go1.22 + +package stdlib + +//go:generate ../internal/cmd/extract/extract go/version math/rand/v2 diff --git a/stdlib/stdlib.go b/stdlib/stdlib.go index 5fcfb2f39..e617a49d6 100644 --- a/stdlib/stdlib.go +++ b/stdlib/stdlib.go @@ -1,4 +1,4 @@ -//go:build go1.20 +//go:build go1.21 // Package stdlib provides wrappers of standard library packages to be imported natively in Yaegi. package stdlib @@ -25,7 +25,7 @@ func init() { // go list std | grep -v internal | grep -v '\.' | grep -v unsafe | grep -v syscall //go:generate ../internal/cmd/extract/extract archive/tar archive/zip -//go:generate ../internal/cmd/extract/extract bufio bytes +//go:generate ../internal/cmd/extract/extract bufio bytes cmp //go:generate ../internal/cmd/extract/extract compress/bzip2 compress/flate compress/gzip compress/lzw compress/zlib //go:generate ../internal/cmd/extract/extract container/heap container/list container/ring //go:generate ../internal/cmd/extract/extract context crypto crypto/aes crypto/cipher crypto/des crypto/dsa crypto/ecdsa crypto/ecdh @@ -44,8 +44,8 @@ func init() { //go:generate ../internal/cmd/extract/extract html html/template //go:generate ../internal/cmd/extract/extract image image/color image/color/palette //go:generate ../internal/cmd/extract/extract image/draw image/gif image/jpeg image/png index/suffixarray -//go:generate ../internal/cmd/extract/extract io io/fs io/ioutil log log/syslog -//go:generate ../internal/cmd/extract/extract math math/big math/bits math/cmplx math/rand +//go:generate ../internal/cmd/extract/extract io io/fs io/ioutil log log/syslog log/slog +//go:generate ../internal/cmd/extract/extract maps math math/big math/bits math/cmplx math/rand //go:generate ../internal/cmd/extract/extract mime mime/multipart mime/quotedprintable //go:generate ../internal/cmd/extract/extract net net/http net/http/cgi net/http/cookiejar net/http/fcgi //go:generate ../internal/cmd/extract/extract net/http/httptest net/http/httptrace net/http/httputil net/http/pprof @@ -53,7 +53,7 @@ func init() { //go:generate ../internal/cmd/extract/extract os os/signal os/user //go:generate ../internal/cmd/extract/extract path path/filepath reflect regexp regexp/syntax //go:generate ../internal/cmd/extract/extract runtime runtime/debug runtime/metrics runtime/pprof runtime/trace -//go:generate ../internal/cmd/extract/extract sort strconv strings sync sync/atomic -//go:generate ../internal/cmd/extract/extract testing testing/fstest testing/iotest testing/quick +//go:generate ../internal/cmd/extract/extract slices sort strconv strings sync sync/atomic +//go:generate ../internal/cmd/extract/extract testing testing/fstest testing/iotest testing/quick testing/slogtest //go:generate ../internal/cmd/extract/extract text/scanner text/tabwriter text/template text/template/parse //go:generate ../internal/cmd/extract/extract time unicode unicode/utf16 unicode/utf8 diff --git a/stdlib/syscall/go1_21_syscall_aix_ppc64.go b/stdlib/syscall/go1_21_syscall_aix_ppc64.go index 9865125fc..3811b38ad 100644 --- a/stdlib/syscall/go1_21_syscall_aix_ppc64.go +++ b/stdlib/syscall/go1_21_syscall_aix_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_android_386.go b/stdlib/syscall/go1_21_syscall_android_386.go index fd1b8d341..bdab00cef 100644 --- a/stdlib/syscall/go1_21_syscall_android_386.go +++ b/stdlib/syscall/go1_21_syscall_android_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_21_syscall_android_amd64.go b/stdlib/syscall/go1_21_syscall_android_amd64.go index 438b02966..5dbcda41a 100644 --- a/stdlib/syscall/go1_21_syscall_android_amd64.go +++ b/stdlib/syscall/go1_21_syscall_android_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_21_syscall_android_arm.go b/stdlib/syscall/go1_21_syscall_android_arm.go index cf6d86edb..4739f79c6 100644 --- a/stdlib/syscall/go1_21_syscall_android_arm.go +++ b/stdlib/syscall/go1_21_syscall_android_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_21_syscall_android_arm64.go b/stdlib/syscall/go1_21_syscall_android_arm64.go index d439e6f8b..65c845f95 100644 --- a/stdlib/syscall/go1_21_syscall_android_arm64.go +++ b/stdlib/syscall/go1_21_syscall_android_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_21_syscall_darwin_amd64.go b/stdlib/syscall/go1_21_syscall_darwin_amd64.go index 10699555b..73187f7ac 100644 --- a/stdlib/syscall/go1_21_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_21_syscall_darwin_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_darwin_arm64.go b/stdlib/syscall/go1_21_syscall_darwin_arm64.go index 9535d8a80..b4e963b47 100644 --- a/stdlib/syscall/go1_21_syscall_darwin_arm64.go +++ b/stdlib/syscall/go1_21_syscall_darwin_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_dragonfly_amd64.go b/stdlib/syscall/go1_21_syscall_dragonfly_amd64.go index fddf108be..2bbc25e52 100644 --- a/stdlib/syscall/go1_21_syscall_dragonfly_amd64.go +++ b/stdlib/syscall/go1_21_syscall_dragonfly_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_freebsd_386.go b/stdlib/syscall/go1_21_syscall_freebsd_386.go index a59c2d122..ce7a1f42a 100644 --- a/stdlib/syscall/go1_21_syscall_freebsd_386.go +++ b/stdlib/syscall/go1_21_syscall_freebsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_freebsd_amd64.go b/stdlib/syscall/go1_21_syscall_freebsd_amd64.go index 379c2829c..b259e5825 100644 --- a/stdlib/syscall/go1_21_syscall_freebsd_amd64.go +++ b/stdlib/syscall/go1_21_syscall_freebsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_freebsd_arm.go b/stdlib/syscall/go1_21_syscall_freebsd_arm.go index 679390e6b..61b2286c0 100644 --- a/stdlib/syscall/go1_21_syscall_freebsd_arm.go +++ b/stdlib/syscall/go1_21_syscall_freebsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_freebsd_arm64.go b/stdlib/syscall/go1_21_syscall_freebsd_arm64.go index 9f388261a..3dab2d160 100644 --- a/stdlib/syscall/go1_21_syscall_freebsd_arm64.go +++ b/stdlib/syscall/go1_21_syscall_freebsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_freebsd_riscv64.go b/stdlib/syscall/go1_21_syscall_freebsd_riscv64.go index 9f388261a..3dab2d160 100644 --- a/stdlib/syscall/go1_21_syscall_freebsd_riscv64.go +++ b/stdlib/syscall/go1_21_syscall_freebsd_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_illumos_amd64.go b/stdlib/syscall/go1_21_syscall_illumos_amd64.go index 9ccb236e3..abfa9e9ea 100644 --- a/stdlib/syscall/go1_21_syscall_illumos_amd64.go +++ b/stdlib/syscall/go1_21_syscall_illumos_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !solaris -// +build go1.21,!solaris +//go:build go1.21 && !go1.22 && !solaris +// +build go1.21,!go1.22,!solaris package syscall diff --git a/stdlib/syscall/go1_21_syscall_ios_amd64.go b/stdlib/syscall/go1_21_syscall_ios_amd64.go index 10699555b..73187f7ac 100644 --- a/stdlib/syscall/go1_21_syscall_ios_amd64.go +++ b/stdlib/syscall/go1_21_syscall_ios_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_ios_arm64.go b/stdlib/syscall/go1_21_syscall_ios_arm64.go index 9535d8a80..b4e963b47 100644 --- a/stdlib/syscall/go1_21_syscall_ios_arm64.go +++ b/stdlib/syscall/go1_21_syscall_ios_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_js_wasm.go b/stdlib/syscall/go1_21_syscall_js_wasm.go index 67a50e618..e44a0a04f 100644 --- a/stdlib/syscall/go1_21_syscall_js_wasm.go +++ b/stdlib/syscall/go1_21_syscall_js_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_386.go b/stdlib/syscall/go1_21_syscall_linux_386.go index 0a13c8a66..f34b5b2f0 100644 --- a/stdlib/syscall/go1_21_syscall_linux_386.go +++ b/stdlib/syscall/go1_21_syscall_linux_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_amd64.go b/stdlib/syscall/go1_21_syscall_linux_amd64.go index 00257c0b4..d5eb44962 100644 --- a/stdlib/syscall/go1_21_syscall_linux_amd64.go +++ b/stdlib/syscall/go1_21_syscall_linux_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_arm.go b/stdlib/syscall/go1_21_syscall_linux_arm.go index 04dc84902..fa572de1b 100644 --- a/stdlib/syscall/go1_21_syscall_linux_arm.go +++ b/stdlib/syscall/go1_21_syscall_linux_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_arm64.go b/stdlib/syscall/go1_21_syscall_linux_arm64.go index 807682872..447a11477 100644 --- a/stdlib/syscall/go1_21_syscall_linux_arm64.go +++ b/stdlib/syscall/go1_21_syscall_linux_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_loong64.go b/stdlib/syscall/go1_21_syscall_linux_loong64.go index a509993cc..646b05585 100644 --- a/stdlib/syscall/go1_21_syscall_linux_loong64.go +++ b/stdlib/syscall/go1_21_syscall_linux_loong64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_mips.go b/stdlib/syscall/go1_21_syscall_linux_mips.go index 63832afab..63e512946 100644 --- a/stdlib/syscall/go1_21_syscall_linux_mips.go +++ b/stdlib/syscall/go1_21_syscall_linux_mips.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_mips64.go b/stdlib/syscall/go1_21_syscall_linux_mips64.go index f3a6a0924..6d09f1ab3 100644 --- a/stdlib/syscall/go1_21_syscall_linux_mips64.go +++ b/stdlib/syscall/go1_21_syscall_linux_mips64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_mips64le.go b/stdlib/syscall/go1_21_syscall_linux_mips64le.go index f3a6a0924..6d09f1ab3 100644 --- a/stdlib/syscall/go1_21_syscall_linux_mips64le.go +++ b/stdlib/syscall/go1_21_syscall_linux_mips64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_mipsle.go b/stdlib/syscall/go1_21_syscall_linux_mipsle.go index 63832afab..63e512946 100644 --- a/stdlib/syscall/go1_21_syscall_linux_mipsle.go +++ b/stdlib/syscall/go1_21_syscall_linux_mipsle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_ppc64.go b/stdlib/syscall/go1_21_syscall_linux_ppc64.go index 2260ca5f1..0757543ee 100644 --- a/stdlib/syscall/go1_21_syscall_linux_ppc64.go +++ b/stdlib/syscall/go1_21_syscall_linux_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_ppc64le.go b/stdlib/syscall/go1_21_syscall_linux_ppc64le.go index e2b164c96..f513910b8 100644 --- a/stdlib/syscall/go1_21_syscall_linux_ppc64le.go +++ b/stdlib/syscall/go1_21_syscall_linux_ppc64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_riscv64.go b/stdlib/syscall/go1_21_syscall_linux_riscv64.go index dcac035fb..1ad6c672e 100644 --- a/stdlib/syscall/go1_21_syscall_linux_riscv64.go +++ b/stdlib/syscall/go1_21_syscall_linux_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_linux_s390x.go b/stdlib/syscall/go1_21_syscall_linux_s390x.go index 2122ab642..2faab60ef 100644 --- a/stdlib/syscall/go1_21_syscall_linux_s390x.go +++ b/stdlib/syscall/go1_21_syscall_linux_s390x.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_netbsd_386.go b/stdlib/syscall/go1_21_syscall_netbsd_386.go index 3f5c2cb0c..083907f62 100644 --- a/stdlib/syscall/go1_21_syscall_netbsd_386.go +++ b/stdlib/syscall/go1_21_syscall_netbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_netbsd_amd64.go b/stdlib/syscall/go1_21_syscall_netbsd_amd64.go index 9d1abc54a..6f7e968f4 100644 --- a/stdlib/syscall/go1_21_syscall_netbsd_amd64.go +++ b/stdlib/syscall/go1_21_syscall_netbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_netbsd_arm.go b/stdlib/syscall/go1_21_syscall_netbsd_arm.go index 3333e3e44..1c3875984 100644 --- a/stdlib/syscall/go1_21_syscall_netbsd_arm.go +++ b/stdlib/syscall/go1_21_syscall_netbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_netbsd_arm64.go b/stdlib/syscall/go1_21_syscall_netbsd_arm64.go index 9d1abc54a..6f7e968f4 100644 --- a/stdlib/syscall/go1_21_syscall_netbsd_arm64.go +++ b/stdlib/syscall/go1_21_syscall_netbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_openbsd_386.go b/stdlib/syscall/go1_21_syscall_openbsd_386.go index 193b17fc2..3c986541c 100644 --- a/stdlib/syscall/go1_21_syscall_openbsd_386.go +++ b/stdlib/syscall/go1_21_syscall_openbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_openbsd_amd64.go b/stdlib/syscall/go1_21_syscall_openbsd_amd64.go index c1acda8d2..b7e54d594 100644 --- a/stdlib/syscall/go1_21_syscall_openbsd_amd64.go +++ b/stdlib/syscall/go1_21_syscall_openbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_openbsd_arm.go b/stdlib/syscall/go1_21_syscall_openbsd_arm.go index 136eac035..179d64859 100644 --- a/stdlib/syscall/go1_21_syscall_openbsd_arm.go +++ b/stdlib/syscall/go1_21_syscall_openbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_openbsd_arm64.go b/stdlib/syscall/go1_21_syscall_openbsd_arm64.go index cb7f0bd54..dba5d0af9 100644 --- a/stdlib/syscall/go1_21_syscall_openbsd_arm64.go +++ b/stdlib/syscall/go1_21_syscall_openbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_plan9_386.go b/stdlib/syscall/go1_21_syscall_plan9_386.go index d6c12aa1f..8d1eb6b77 100644 --- a/stdlib/syscall/go1_21_syscall_plan9_386.go +++ b/stdlib/syscall/go1_21_syscall_plan9_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_plan9_amd64.go b/stdlib/syscall/go1_21_syscall_plan9_amd64.go index d6c12aa1f..8d1eb6b77 100644 --- a/stdlib/syscall/go1_21_syscall_plan9_amd64.go +++ b/stdlib/syscall/go1_21_syscall_plan9_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_plan9_arm.go b/stdlib/syscall/go1_21_syscall_plan9_arm.go index d6c12aa1f..8d1eb6b77 100644 --- a/stdlib/syscall/go1_21_syscall_plan9_arm.go +++ b/stdlib/syscall/go1_21_syscall_plan9_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_solaris_amd64.go b/stdlib/syscall/go1_21_syscall_solaris_amd64.go index 8e832c30e..6fe25fc0d 100644 --- a/stdlib/syscall/go1_21_syscall_solaris_amd64.go +++ b/stdlib/syscall/go1_21_syscall_solaris_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_wasip1_wasm.go b/stdlib/syscall/go1_21_syscall_wasip1_wasm.go index c57168480..f16d7f117 100644 --- a/stdlib/syscall/go1_21_syscall_wasip1_wasm.go +++ b/stdlib/syscall/go1_21_syscall_wasip1_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_windows_386.go b/stdlib/syscall/go1_21_syscall_windows_386.go index 6417557b9..04c703ff0 100644 --- a/stdlib/syscall/go1_21_syscall_windows_386.go +++ b/stdlib/syscall/go1_21_syscall_windows_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_windows_amd64.go b/stdlib/syscall/go1_21_syscall_windows_amd64.go index 6417557b9..04c703ff0 100644 --- a/stdlib/syscall/go1_21_syscall_windows_amd64.go +++ b/stdlib/syscall/go1_21_syscall_windows_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_windows_arm.go b/stdlib/syscall/go1_21_syscall_windows_arm.go index 6417557b9..04c703ff0 100644 --- a/stdlib/syscall/go1_21_syscall_windows_arm.go +++ b/stdlib/syscall/go1_21_syscall_windows_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_21_syscall_windows_arm64.go b/stdlib/syscall/go1_21_syscall_windows_arm64.go index 6417557b9..04c703ff0 100644 --- a/stdlib/syscall/go1_21_syscall_windows_arm64.go +++ b/stdlib/syscall/go1_21_syscall_windows_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_aix_ppc64.go b/stdlib/syscall/go1_22_syscall_aix_ppc64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_aix_ppc64.go rename to stdlib/syscall/go1_22_syscall_aix_ppc64.go index f00d7f603..45f147b6c 100644 --- a/stdlib/syscall/go1_20_syscall_aix_ppc64.go +++ b/stdlib/syscall/go1_22_syscall_aix_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_386.go b/stdlib/syscall/go1_22_syscall_android_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_386.go rename to stdlib/syscall/go1_22_syscall_android_386.go index 006976554..be8adb495 100644 --- a/stdlib/syscall/go1_20_syscall_linux_386.go +++ b/stdlib/syscall/go1_22_syscall_android_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_amd64.go b/stdlib/syscall/go1_22_syscall_android_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_amd64.go rename to stdlib/syscall/go1_22_syscall_android_amd64.go index e8695f27f..ed732dc09 100644 --- a/stdlib/syscall/go1_20_syscall_linux_amd64.go +++ b/stdlib/syscall/go1_22_syscall_android_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_arm.go b/stdlib/syscall/go1_22_syscall_android_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_arm.go rename to stdlib/syscall/go1_22_syscall_android_arm.go index c978b8ef9..e7b5507e0 100644 --- a/stdlib/syscall/go1_20_syscall_linux_arm.go +++ b/stdlib/syscall/go1_22_syscall_android_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_arm64.go b/stdlib/syscall/go1_22_syscall_android_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_arm64.go rename to stdlib/syscall/go1_22_syscall_android_arm64.go index 9eb6a7b4d..69f7985e1 100644 --- a/stdlib/syscall/go1_20_syscall_linux_arm64.go +++ b/stdlib/syscall/go1_22_syscall_android_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package syscall diff --git a/stdlib/syscall/go1_20_syscall_darwin_amd64.go b/stdlib/syscall/go1_22_syscall_darwin_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_darwin_amd64.go rename to stdlib/syscall/go1_22_syscall_darwin_amd64.go index eb67c1b2b..803beabbe 100644 --- a/stdlib/syscall/go1_20_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_22_syscall_darwin_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_ios_arm64.go b/stdlib/syscall/go1_22_syscall_darwin_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_ios_arm64.go rename to stdlib/syscall/go1_22_syscall_darwin_arm64.go index 219ed9091..5b0c578a1 100644 --- a/stdlib/syscall/go1_20_syscall_ios_arm64.go +++ b/stdlib/syscall/go1_22_syscall_darwin_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_dragonfly_amd64.go b/stdlib/syscall/go1_22_syscall_dragonfly_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_dragonfly_amd64.go rename to stdlib/syscall/go1_22_syscall_dragonfly_amd64.go index 8df2a9891..b9ed8a05d 100644 --- a/stdlib/syscall/go1_20_syscall_dragonfly_amd64.go +++ b/stdlib/syscall/go1_22_syscall_dragonfly_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_freebsd_386.go b/stdlib/syscall/go1_22_syscall_freebsd_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_freebsd_386.go rename to stdlib/syscall/go1_22_syscall_freebsd_386.go index 0a0e3711e..79f6c2b2a 100644 --- a/stdlib/syscall/go1_20_syscall_freebsd_386.go +++ b/stdlib/syscall/go1_22_syscall_freebsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_freebsd_amd64.go b/stdlib/syscall/go1_22_syscall_freebsd_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_freebsd_amd64.go rename to stdlib/syscall/go1_22_syscall_freebsd_amd64.go index 76a6147ae..ef64d5eb7 100644 --- a/stdlib/syscall/go1_20_syscall_freebsd_amd64.go +++ b/stdlib/syscall/go1_22_syscall_freebsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_freebsd_arm.go b/stdlib/syscall/go1_22_syscall_freebsd_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_freebsd_arm.go rename to stdlib/syscall/go1_22_syscall_freebsd_arm.go index 29fdb8817..93b8c7225 100644 --- a/stdlib/syscall/go1_20_syscall_freebsd_arm.go +++ b/stdlib/syscall/go1_22_syscall_freebsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_freebsd_arm64.go b/stdlib/syscall/go1_22_syscall_freebsd_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_freebsd_arm64.go rename to stdlib/syscall/go1_22_syscall_freebsd_arm64.go index 08673f22b..8c903ce6a 100644 --- a/stdlib/syscall/go1_20_syscall_freebsd_arm64.go +++ b/stdlib/syscall/go1_22_syscall_freebsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_freebsd_riscv64.go b/stdlib/syscall/go1_22_syscall_freebsd_riscv64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_freebsd_riscv64.go rename to stdlib/syscall/go1_22_syscall_freebsd_riscv64.go index 08673f22b..8c903ce6a 100644 --- a/stdlib/syscall/go1_20_syscall_freebsd_riscv64.go +++ b/stdlib/syscall/go1_22_syscall_freebsd_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_illumos_amd64.go b/stdlib/syscall/go1_22_syscall_illumos_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_illumos_amd64.go rename to stdlib/syscall/go1_22_syscall_illumos_amd64.go index 96168fd0f..f97d4d212 100644 --- a/stdlib/syscall/go1_20_syscall_illumos_amd64.go +++ b/stdlib/syscall/go1_22_syscall_illumos_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !solaris -// +build go1.20,!go1.21,!solaris +//go:build go1.22 && !solaris +// +build go1.22,!solaris package syscall diff --git a/stdlib/syscall/go1_20_syscall_ios_amd64.go b/stdlib/syscall/go1_22_syscall_ios_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_ios_amd64.go rename to stdlib/syscall/go1_22_syscall_ios_amd64.go index eb67c1b2b..803beabbe 100644 --- a/stdlib/syscall/go1_20_syscall_ios_amd64.go +++ b/stdlib/syscall/go1_22_syscall_ios_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_darwin_arm64.go b/stdlib/syscall/go1_22_syscall_ios_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_darwin_arm64.go rename to stdlib/syscall/go1_22_syscall_ios_arm64.go index 219ed9091..5b0c578a1 100644 --- a/stdlib/syscall/go1_20_syscall_darwin_arm64.go +++ b/stdlib/syscall/go1_22_syscall_ios_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_js_wasm.go b/stdlib/syscall/go1_22_syscall_js_wasm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_js_wasm.go rename to stdlib/syscall/go1_22_syscall_js_wasm.go index 03acdd8f5..8c4b1c898 100644 --- a/stdlib/syscall/go1_20_syscall_js_wasm.go +++ b/stdlib/syscall/go1_22_syscall_js_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall @@ -241,8 +241,8 @@ func init() { "SOCK_RAW": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), "SOCK_SEQPACKET": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "SOCK_STREAM": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), - "SOMAXCONN": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), - "SO_ERROR": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "SOMAXCONN": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "SO_ERROR": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "SYS_FCNTL": reflect.ValueOf(constant.MakeFromLiteral("500", token.INT, 0)), "S_IEXEC": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), "S_IFBLK": reflect.ValueOf(constant.MakeFromLiteral("24576", token.INT, 0)), diff --git a/stdlib/syscall/go1_20_syscall_android_386.go b/stdlib/syscall/go1_22_syscall_linux_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_android_386.go rename to stdlib/syscall/go1_22_syscall_linux_386.go index 140371969..56efb6410 100644 --- a/stdlib/syscall/go1_20_syscall_android_386.go +++ b/stdlib/syscall/go1_22_syscall_linux_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_android_amd64.go b/stdlib/syscall/go1_22_syscall_linux_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_android_amd64.go rename to stdlib/syscall/go1_22_syscall_linux_amd64.go index e15fdd668..863c99bd1 100644 --- a/stdlib/syscall/go1_20_syscall_android_amd64.go +++ b/stdlib/syscall/go1_22_syscall_linux_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_android_arm.go b/stdlib/syscall/go1_22_syscall_linux_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_android_arm.go rename to stdlib/syscall/go1_22_syscall_linux_arm.go index 8cfdde802..0a084b9fb 100644 --- a/stdlib/syscall/go1_20_syscall_android_arm.go +++ b/stdlib/syscall/go1_22_syscall_linux_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_android_arm64.go b/stdlib/syscall/go1_22_syscall_linux_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_android_arm64.go rename to stdlib/syscall/go1_22_syscall_linux_arm64.go index ffe6f9702..b0446fccd 100644 --- a/stdlib/syscall/go1_20_syscall_android_arm64.go +++ b/stdlib/syscall/go1_22_syscall_linux_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_loong64.go b/stdlib/syscall/go1_22_syscall_linux_loong64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_loong64.go rename to stdlib/syscall/go1_22_syscall_linux_loong64.go index aba01e023..2ae337fc0 100644 --- a/stdlib/syscall/go1_20_syscall_linux_loong64.go +++ b/stdlib/syscall/go1_22_syscall_linux_loong64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_mipsle.go b/stdlib/syscall/go1_22_syscall_linux_mips.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_mipsle.go rename to stdlib/syscall/go1_22_syscall_linux_mips.go index 1096f468b..dda8746b6 100644 --- a/stdlib/syscall/go1_20_syscall_linux_mipsle.go +++ b/stdlib/syscall/go1_22_syscall_linux_mips.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_mips64le.go b/stdlib/syscall/go1_22_syscall_linux_mips64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_mips64le.go rename to stdlib/syscall/go1_22_syscall_linux_mips64.go index 45517878b..e4f683733 100644 --- a/stdlib/syscall/go1_20_syscall_linux_mips64le.go +++ b/stdlib/syscall/go1_22_syscall_linux_mips64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_mips64.go b/stdlib/syscall/go1_22_syscall_linux_mips64le.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_mips64.go rename to stdlib/syscall/go1_22_syscall_linux_mips64le.go index 45517878b..e4f683733 100644 --- a/stdlib/syscall/go1_20_syscall_linux_mips64.go +++ b/stdlib/syscall/go1_22_syscall_linux_mips64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_mips.go b/stdlib/syscall/go1_22_syscall_linux_mipsle.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_mips.go rename to stdlib/syscall/go1_22_syscall_linux_mipsle.go index 1096f468b..dda8746b6 100644 --- a/stdlib/syscall/go1_20_syscall_linux_mips.go +++ b/stdlib/syscall/go1_22_syscall_linux_mipsle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_ppc64.go b/stdlib/syscall/go1_22_syscall_linux_ppc64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_ppc64.go rename to stdlib/syscall/go1_22_syscall_linux_ppc64.go index f8d38e201..f6e3ff04f 100644 --- a/stdlib/syscall/go1_20_syscall_linux_ppc64.go +++ b/stdlib/syscall/go1_22_syscall_linux_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_ppc64le.go b/stdlib/syscall/go1_22_syscall_linux_ppc64le.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_ppc64le.go rename to stdlib/syscall/go1_22_syscall_linux_ppc64le.go index 86e6d79b5..141140437 100644 --- a/stdlib/syscall/go1_20_syscall_linux_ppc64le.go +++ b/stdlib/syscall/go1_22_syscall_linux_ppc64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_riscv64.go b/stdlib/syscall/go1_22_syscall_linux_riscv64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_riscv64.go rename to stdlib/syscall/go1_22_syscall_linux_riscv64.go index f7e35be89..fdeed4dd3 100644 --- a/stdlib/syscall/go1_20_syscall_linux_riscv64.go +++ b/stdlib/syscall/go1_22_syscall_linux_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_linux_s390x.go b/stdlib/syscall/go1_22_syscall_linux_s390x.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_linux_s390x.go rename to stdlib/syscall/go1_22_syscall_linux_s390x.go index 7db53fe43..34467dd09 100644 --- a/stdlib/syscall/go1_20_syscall_linux_s390x.go +++ b/stdlib/syscall/go1_22_syscall_linux_s390x.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_netbsd_386.go b/stdlib/syscall/go1_22_syscall_netbsd_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_netbsd_386.go rename to stdlib/syscall/go1_22_syscall_netbsd_386.go index ee23da54c..d581f87e2 100644 --- a/stdlib/syscall/go1_20_syscall_netbsd_386.go +++ b/stdlib/syscall/go1_22_syscall_netbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_netbsd_amd64.go b/stdlib/syscall/go1_22_syscall_netbsd_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_netbsd_amd64.go rename to stdlib/syscall/go1_22_syscall_netbsd_amd64.go index d984291fe..2b1479062 100644 --- a/stdlib/syscall/go1_20_syscall_netbsd_amd64.go +++ b/stdlib/syscall/go1_22_syscall_netbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_netbsd_arm.go b/stdlib/syscall/go1_22_syscall_netbsd_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_netbsd_arm.go rename to stdlib/syscall/go1_22_syscall_netbsd_arm.go index 86f05614e..f604bf48e 100644 --- a/stdlib/syscall/go1_20_syscall_netbsd_arm.go +++ b/stdlib/syscall/go1_22_syscall_netbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_netbsd_arm64.go b/stdlib/syscall/go1_22_syscall_netbsd_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_netbsd_arm64.go rename to stdlib/syscall/go1_22_syscall_netbsd_arm64.go index d984291fe..2b1479062 100644 --- a/stdlib/syscall/go1_20_syscall_netbsd_arm64.go +++ b/stdlib/syscall/go1_22_syscall_netbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_openbsd_386.go b/stdlib/syscall/go1_22_syscall_openbsd_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_openbsd_386.go rename to stdlib/syscall/go1_22_syscall_openbsd_386.go index ad4a5fa78..9359d40ee 100644 --- a/stdlib/syscall/go1_20_syscall_openbsd_386.go +++ b/stdlib/syscall/go1_22_syscall_openbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_openbsd_amd64.go b/stdlib/syscall/go1_22_syscall_openbsd_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_openbsd_amd64.go rename to stdlib/syscall/go1_22_syscall_openbsd_amd64.go index f86f8c998..6d53223f3 100644 --- a/stdlib/syscall/go1_20_syscall_openbsd_amd64.go +++ b/stdlib/syscall/go1_22_syscall_openbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_openbsd_arm.go b/stdlib/syscall/go1_22_syscall_openbsd_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_openbsd_arm.go rename to stdlib/syscall/go1_22_syscall_openbsd_arm.go index c4f5a472e..7644a106d 100644 --- a/stdlib/syscall/go1_20_syscall_openbsd_arm.go +++ b/stdlib/syscall/go1_22_syscall_openbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_openbsd_arm64.go b/stdlib/syscall/go1_22_syscall_openbsd_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_openbsd_arm64.go rename to stdlib/syscall/go1_22_syscall_openbsd_arm64.go index 6343fae98..7ad952281 100644 --- a/stdlib/syscall/go1_20_syscall_openbsd_arm64.go +++ b/stdlib/syscall/go1_22_syscall_openbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_openbsd_mips64.go b/stdlib/syscall/go1_22_syscall_openbsd_ppc64.go similarity index 98% rename from stdlib/syscall/go1_20_syscall_openbsd_mips64.go rename to stdlib/syscall/go1_22_syscall_openbsd_ppc64.go index 63bb1c2ee..617721857 100644 --- a/stdlib/syscall/go1_20_syscall_openbsd_mips64.go +++ b/stdlib/syscall/go1_22_syscall_openbsd_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall @@ -118,6 +118,12 @@ func init() { "BPF_FILDROP_CAPTURE": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), "BPF_FILDROP_DROP": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "BPF_FILDROP_PASS": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "BPF_F_DIR_IN": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "BPF_F_DIR_MASK": reflect.ValueOf(constant.MakeFromLiteral("48", token.INT, 0)), + "BPF_F_DIR_OUT": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), + "BPF_F_DIR_SHIFT": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "BPF_F_FLOWID": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "BPF_F_PRI_MASK": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), "BPF_H": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), "BPF_IMM": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), "BPF_IND": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), @@ -146,6 +152,7 @@ func init() { "BPF_OR": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), "BPF_RELEASE": reflect.ValueOf(constant.MakeFromLiteral("199606", token.INT, 0)), "BPF_RET": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), + "BPF_RND": reflect.ValueOf(constant.MakeFromLiteral("192", token.INT, 0)), "BPF_RSH": reflect.ValueOf(constant.MakeFromLiteral("112", token.INT, 0)), "BPF_ST": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "BPF_STX": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), @@ -349,6 +356,8 @@ func init() { "ESPIPE": reflect.ValueOf(syscall.ESPIPE), "ESRCH": reflect.ValueOf(syscall.ESRCH), "ESTALE": reflect.ValueOf(syscall.ESTALE), + "ETH64_8021_RSVD_MASK": reflect.ValueOf(constant.MakeFromLiteral("281474976710640", token.INT, 0)), + "ETH64_8021_RSVD_PREFIX": reflect.ValueOf(constant.MakeFromLiteral("1652522221568", token.INT, 0)), "ETHERMIN": reflect.ValueOf(constant.MakeFromLiteral("46", token.INT, 0)), "ETHERMTU": reflect.ValueOf(constant.MakeFromLiteral("1500", token.INT, 0)), "ETHERTYPE_8023": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), @@ -401,6 +410,7 @@ func init() { "ETHERTYPE_DN": reflect.ValueOf(constant.MakeFromLiteral("24579", token.INT, 0)), "ETHERTYPE_DOGFIGHT": reflect.ValueOf(constant.MakeFromLiteral("6537", token.INT, 0)), "ETHERTYPE_DSMD": reflect.ValueOf(constant.MakeFromLiteral("32825", token.INT, 0)), + "ETHERTYPE_EAPOL": reflect.ValueOf(constant.MakeFromLiteral("34958", token.INT, 0)), "ETHERTYPE_ECMA": reflect.ValueOf(constant.MakeFromLiteral("2051", token.INT, 0)), "ETHERTYPE_ENCRYPT": reflect.ValueOf(constant.MakeFromLiteral("32829", token.INT, 0)), "ETHERTYPE_ES": reflect.ValueOf(constant.MakeFromLiteral("32861", token.INT, 0)), @@ -461,15 +471,16 @@ func init() { "ETHERTYPE_NCD": reflect.ValueOf(constant.MakeFromLiteral("33097", token.INT, 0)), "ETHERTYPE_NESTAR": reflect.ValueOf(constant.MakeFromLiteral("32774", token.INT, 0)), "ETHERTYPE_NETBEUI": reflect.ValueOf(constant.MakeFromLiteral("33169", token.INT, 0)), + "ETHERTYPE_NHRP": reflect.ValueOf(constant.MakeFromLiteral("8193", token.INT, 0)), "ETHERTYPE_NOVELL": reflect.ValueOf(constant.MakeFromLiteral("33080", token.INT, 0)), "ETHERTYPE_NS": reflect.ValueOf(constant.MakeFromLiteral("1536", token.INT, 0)), "ETHERTYPE_NSAT": reflect.ValueOf(constant.MakeFromLiteral("1537", token.INT, 0)), "ETHERTYPE_NSCOMPAT": reflect.ValueOf(constant.MakeFromLiteral("2055", token.INT, 0)), + "ETHERTYPE_NSH": reflect.ValueOf(constant.MakeFromLiteral("38991", token.INT, 0)), "ETHERTYPE_NTRAILER": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), "ETHERTYPE_OS9": reflect.ValueOf(constant.MakeFromLiteral("28679", token.INT, 0)), "ETHERTYPE_OS9NET": reflect.ValueOf(constant.MakeFromLiteral("28681", token.INT, 0)), "ETHERTYPE_PACER": reflect.ValueOf(constant.MakeFromLiteral("32966", token.INT, 0)), - "ETHERTYPE_PAE": reflect.ValueOf(constant.MakeFromLiteral("34958", token.INT, 0)), "ETHERTYPE_PBB": reflect.ValueOf(constant.MakeFromLiteral("35047", token.INT, 0)), "ETHERTYPE_PCS": reflect.ValueOf(constant.MakeFromLiteral("16962", token.INT, 0)), "ETHERTYPE_PLANNING": reflect.ValueOf(constant.MakeFromLiteral("32836", token.INT, 0)), @@ -556,10 +567,11 @@ func init() { "EUSERS": reflect.ValueOf(syscall.EUSERS), "EVFILT_AIO": reflect.ValueOf(constant.MakeFromLiteral("-3", token.INT, 0)), "EVFILT_DEVICE": reflect.ValueOf(constant.MakeFromLiteral("-8", token.INT, 0)), + "EVFILT_EXCEPT": reflect.ValueOf(constant.MakeFromLiteral("-9", token.INT, 0)), "EVFILT_PROC": reflect.ValueOf(constant.MakeFromLiteral("-5", token.INT, 0)), "EVFILT_READ": reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)), "EVFILT_SIGNAL": reflect.ValueOf(constant.MakeFromLiteral("-6", token.INT, 0)), - "EVFILT_SYSCOUNT": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "EVFILT_SYSCOUNT": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), "EVFILT_TIMER": reflect.ValueOf(constant.MakeFromLiteral("-7", token.INT, 0)), "EVFILT_VNODE": reflect.ValueOf(constant.MakeFromLiteral("-4", token.INT, 0)), "EVFILT_WRITE": reflect.ValueOf(constant.MakeFromLiteral("-2", token.INT, 0)), @@ -581,7 +593,7 @@ func init() { "EV_FLAG1": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), "EV_ONESHOT": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), "EV_RECEIPT": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), - "EV_SYSFLAGS": reflect.ValueOf(constant.MakeFromLiteral("61440", token.INT, 0)), + "EV_SYSFLAGS": reflect.ValueOf(constant.MakeFromLiteral("63488", token.INT, 0)), "EWOULDBLOCK": reflect.ValueOf(syscall.EWOULDBLOCK), "EXDEV": reflect.ValueOf(syscall.EXDEV), "EXTA": reflect.ValueOf(constant.MakeFromLiteral("19200", token.INT, 0)), @@ -890,6 +902,7 @@ func init() { "IFT_VOICEOVERCABLE": reflect.ValueOf(constant.MakeFromLiteral("198", token.INT, 0)), "IFT_VOICEOVERFRAMERELAY": reflect.ValueOf(constant.MakeFromLiteral("153", token.INT, 0)), "IFT_VOICEOVERIP": reflect.ValueOf(constant.MakeFromLiteral("104", token.INT, 0)), + "IFT_WIREGUARD": reflect.ValueOf(constant.MakeFromLiteral("251", token.INT, 0)), "IFT_X213": reflect.ValueOf(constant.MakeFromLiteral("93", token.INT, 0)), "IFT_X25": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), "IFT_X25DDN": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), @@ -955,6 +968,7 @@ func init() { "IPPROTO_RAW": reflect.ValueOf(constant.MakeFromLiteral("255", token.INT, 0)), "IPPROTO_ROUTING": reflect.ValueOf(constant.MakeFromLiteral("43", token.INT, 0)), "IPPROTO_RSVP": reflect.ValueOf(constant.MakeFromLiteral("46", token.INT, 0)), + "IPPROTO_SCTP": reflect.ValueOf(constant.MakeFromLiteral("132", token.INT, 0)), "IPPROTO_TCP": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), "IPPROTO_TP": reflect.ValueOf(constant.MakeFromLiteral("29", token.INT, 0)), "IPPROTO_UDP": reflect.ValueOf(constant.MakeFromLiteral("17", token.INT, 0)), @@ -1122,6 +1136,7 @@ func init() { "MSG_PEEK": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "MSG_TRUNC": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), "MSG_WAITALL": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "MSG_WAITFORONE": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), "MS_ASYNC": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), "MS_INVALIDATE": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "MS_SYNC": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), @@ -1135,7 +1150,8 @@ func init() { "NET_RT_FLAGS": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "NET_RT_IFLIST": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), "NET_RT_IFNAMES": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), - "NET_RT_MAXID": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), + "NET_RT_MAXID": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "NET_RT_SOURCE": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), "NET_RT_STATS": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "NET_RT_TABLE": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), "NOFLSH": reflect.ValueOf(constant.MakeFromLiteral("2147483648", token.INT, 0)), @@ -1150,6 +1166,7 @@ func init() { "NOTE_FORK": reflect.ValueOf(constant.MakeFromLiteral("1073741824", token.INT, 0)), "NOTE_LINK": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), "NOTE_LOWAT": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "NOTE_OOB": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "NOTE_PCTRLMASK": reflect.ValueOf(constant.MakeFromLiteral("4026531840", token.INT, 0)), "NOTE_PDATAMASK": reflect.ValueOf(constant.MakeFromLiteral("1048575", token.INT, 0)), "NOTE_RENAME": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), @@ -1299,7 +1316,7 @@ func init() { "RTM_PROPOSAL": reflect.ValueOf(constant.MakeFromLiteral("19", token.INT, 0)), "RTM_REDIRECT": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), "RTM_RESOLVE": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), - "RTM_RTTUNIT": reflect.ValueOf(constant.MakeFromLiteral("1000000", token.INT, 0)), + "RTM_SOURCE": reflect.ValueOf(constant.MakeFromLiteral("22", token.INT, 0)), "RTM_VERSION": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), "RTV_EXPIRE": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "RTV_HOPCOUNT": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), @@ -1375,30 +1392,30 @@ func init() { "SIOCBRDGDELS": reflect.ValueOf(constant.MakeFromLiteral("2153802050", token.INT, 0)), "SIOCBRDGFLUSH": reflect.ValueOf(constant.MakeFromLiteral("2153802056", token.INT, 0)), "SIOCBRDGFRL": reflect.ValueOf(constant.MakeFromLiteral("2156685646", token.INT, 0)), - "SIOCBRDGGCACHE": reflect.ValueOf(constant.MakeFromLiteral("3222825281", token.INT, 0)), - "SIOCBRDGGFD": reflect.ValueOf(constant.MakeFromLiteral("3222825298", token.INT, 0)), - "SIOCBRDGGHT": reflect.ValueOf(constant.MakeFromLiteral("3222825297", token.INT, 0)), + "SIOCBRDGGCACHE": reflect.ValueOf(constant.MakeFromLiteral("3222563137", token.INT, 0)), + "SIOCBRDGGFD": reflect.ValueOf(constant.MakeFromLiteral("3222563154", token.INT, 0)), + "SIOCBRDGGHT": reflect.ValueOf(constant.MakeFromLiteral("3222563153", token.INT, 0)), "SIOCBRDGGIFFLGS": reflect.ValueOf(constant.MakeFromLiteral("3227543870", token.INT, 0)), - "SIOCBRDGGMA": reflect.ValueOf(constant.MakeFromLiteral("3222825299", token.INT, 0)), + "SIOCBRDGGMA": reflect.ValueOf(constant.MakeFromLiteral("3222563155", token.INT, 0)), "SIOCBRDGGPARAM": reflect.ValueOf(constant.MakeFromLiteral("3225446744", token.INT, 0)), - "SIOCBRDGGPRI": reflect.ValueOf(constant.MakeFromLiteral("3222825296", token.INT, 0)), + "SIOCBRDGGPRI": reflect.ValueOf(constant.MakeFromLiteral("3222563152", token.INT, 0)), "SIOCBRDGGRL": reflect.ValueOf(constant.MakeFromLiteral("3224398159", token.INT, 0)), - "SIOCBRDGGTO": reflect.ValueOf(constant.MakeFromLiteral("3222825286", token.INT, 0)), + "SIOCBRDGGTO": reflect.ValueOf(constant.MakeFromLiteral("3222563142", token.INT, 0)), "SIOCBRDGIFS": reflect.ValueOf(constant.MakeFromLiteral("3227543874", token.INT, 0)), "SIOCBRDGRTS": reflect.ValueOf(constant.MakeFromLiteral("3223349571", token.INT, 0)), "SIOCBRDGSADDR": reflect.ValueOf(constant.MakeFromLiteral("3240651076", token.INT, 0)), - "SIOCBRDGSCACHE": reflect.ValueOf(constant.MakeFromLiteral("2149083456", token.INT, 0)), - "SIOCBRDGSFD": reflect.ValueOf(constant.MakeFromLiteral("2149083474", token.INT, 0)), - "SIOCBRDGSHT": reflect.ValueOf(constant.MakeFromLiteral("2149083473", token.INT, 0)), + "SIOCBRDGSCACHE": reflect.ValueOf(constant.MakeFromLiteral("2148821312", token.INT, 0)), + "SIOCBRDGSFD": reflect.ValueOf(constant.MakeFromLiteral("2148821330", token.INT, 0)), + "SIOCBRDGSHT": reflect.ValueOf(constant.MakeFromLiteral("2148821329", token.INT, 0)), "SIOCBRDGSIFCOST": reflect.ValueOf(constant.MakeFromLiteral("2153802069", token.INT, 0)), "SIOCBRDGSIFFLGS": reflect.ValueOf(constant.MakeFromLiteral("2153802047", token.INT, 0)), "SIOCBRDGSIFPRIO": reflect.ValueOf(constant.MakeFromLiteral("2153802068", token.INT, 0)), "SIOCBRDGSIFPROT": reflect.ValueOf(constant.MakeFromLiteral("2153802058", token.INT, 0)), - "SIOCBRDGSMA": reflect.ValueOf(constant.MakeFromLiteral("2149083475", token.INT, 0)), - "SIOCBRDGSPRI": reflect.ValueOf(constant.MakeFromLiteral("2149083472", token.INT, 0)), - "SIOCBRDGSPROTO": reflect.ValueOf(constant.MakeFromLiteral("2149083482", token.INT, 0)), - "SIOCBRDGSTO": reflect.ValueOf(constant.MakeFromLiteral("2149083461", token.INT, 0)), - "SIOCBRDGSTXHC": reflect.ValueOf(constant.MakeFromLiteral("2149083481", token.INT, 0)), + "SIOCBRDGSMA": reflect.ValueOf(constant.MakeFromLiteral("2148821331", token.INT, 0)), + "SIOCBRDGSPRI": reflect.ValueOf(constant.MakeFromLiteral("2148821328", token.INT, 0)), + "SIOCBRDGSPROTO": reflect.ValueOf(constant.MakeFromLiteral("2148821338", token.INT, 0)), + "SIOCBRDGSTO": reflect.ValueOf(constant.MakeFromLiteral("2148821317", token.INT, 0)), + "SIOCBRDGSTXHC": reflect.ValueOf(constant.MakeFromLiteral("2148821337", token.INT, 0)), "SIOCDELLABEL": reflect.ValueOf(constant.MakeFromLiteral("2149607831", token.INT, 0)), "SIOCDELMULTI": reflect.ValueOf(constant.MakeFromLiteral("2149607730", token.INT, 0)), "SIOCDIFADDR": reflect.ValueOf(constant.MakeFromLiteral("2149607705", token.INT, 0)), @@ -1505,11 +1522,6 @@ func init() { "SIOCSVH": reflect.ValueOf(constant.MakeFromLiteral("3223349749", token.INT, 0)), "SIOCSVNETFLOWID": reflect.ValueOf(constant.MakeFromLiteral("2149607875", token.INT, 0)), "SIOCSVNETID": reflect.ValueOf(constant.MakeFromLiteral("2149607846", token.INT, 0)), - "SIOCSWGDPID": reflect.ValueOf(constant.MakeFromLiteral("3222825307", token.INT, 0)), - "SIOCSWGMAXFLOW": reflect.ValueOf(constant.MakeFromLiteral("3222825312", token.INT, 0)), - "SIOCSWGMAXGROUP": reflect.ValueOf(constant.MakeFromLiteral("3222825309", token.INT, 0)), - "SIOCSWSDPID": reflect.ValueOf(constant.MakeFromLiteral("2149083484", token.INT, 0)), - "SIOCSWSPORTNO": reflect.ValueOf(constant.MakeFromLiteral("3227543903", token.INT, 0)), "SOCK_CLOEXEC": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), "SOCK_DGRAM": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "SOCK_DNS": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), @@ -1589,7 +1601,7 @@ func init() { "SYS_FSTATAT": reflect.ValueOf(constant.MakeFromLiteral("42", token.INT, 0)), "SYS_FSTATFS": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), "SYS_FSYNC": reflect.ValueOf(constant.MakeFromLiteral("95", token.INT, 0)), - "SYS_FTRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("201", token.INT, 0)), + "SYS_FTRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("168", token.INT, 0)), "SYS_FUTEX": reflect.ValueOf(constant.MakeFromLiteral("83", token.INT, 0)), "SYS_FUTIMENS": reflect.ValueOf(constant.MakeFromLiteral("85", token.INT, 0)), "SYS_FUTIMES": reflect.ValueOf(constant.MakeFromLiteral("77", token.INT, 0)), @@ -1632,7 +1644,7 @@ func init() { "SYS_LINK": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), "SYS_LINKAT": reflect.ValueOf(constant.MakeFromLiteral("317", token.INT, 0)), "SYS_LISTEN": reflect.ValueOf(constant.MakeFromLiteral("106", token.INT, 0)), - "SYS_LSEEK": reflect.ValueOf(constant.MakeFromLiteral("199", token.INT, 0)), + "SYS_LSEEK": reflect.ValueOf(constant.MakeFromLiteral("166", token.INT, 0)), "SYS_LSTAT": reflect.ValueOf(constant.MakeFromLiteral("40", token.INT, 0)), "SYS_MADVISE": reflect.ValueOf(constant.MakeFromLiteral("75", token.INT, 0)), "SYS_MINHERIT": reflect.ValueOf(constant.MakeFromLiteral("250", token.INT, 0)), @@ -1644,10 +1656,10 @@ func init() { "SYS_MKNODAT": reflect.ValueOf(constant.MakeFromLiteral("320", token.INT, 0)), "SYS_MLOCK": reflect.ValueOf(constant.MakeFromLiteral("203", token.INT, 0)), "SYS_MLOCKALL": reflect.ValueOf(constant.MakeFromLiteral("271", token.INT, 0)), - "SYS_MMAP": reflect.ValueOf(constant.MakeFromLiteral("197", token.INT, 0)), + "SYS_MMAP": reflect.ValueOf(constant.MakeFromLiteral("49", token.INT, 0)), "SYS_MOUNT": reflect.ValueOf(constant.MakeFromLiteral("21", token.INT, 0)), "SYS_MPROTECT": reflect.ValueOf(constant.MakeFromLiteral("74", token.INT, 0)), - "SYS_MQUERY": reflect.ValueOf(constant.MakeFromLiteral("286", token.INT, 0)), + "SYS_MQUERY": reflect.ValueOf(constant.MakeFromLiteral("78", token.INT, 0)), "SYS_MSGCTL": reflect.ValueOf(constant.MakeFromLiteral("297", token.INT, 0)), "SYS_MSGGET": reflect.ValueOf(constant.MakeFromLiteral("225", token.INT, 0)), "SYS_MSGRCV": reflect.ValueOf(constant.MakeFromLiteral("227", token.INT, 0)), @@ -1662,19 +1674,28 @@ func init() { "SYS_OBREAK": reflect.ValueOf(constant.MakeFromLiteral("17", token.INT, 0)), "SYS_OPEN": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), "SYS_OPENAT": reflect.ValueOf(constant.MakeFromLiteral("321", token.INT, 0)), + "SYS_PAD_FTRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("201", token.INT, 0)), + "SYS_PAD_LSEEK": reflect.ValueOf(constant.MakeFromLiteral("199", token.INT, 0)), + "SYS_PAD_MMAP": reflect.ValueOf(constant.MakeFromLiteral("197", token.INT, 0)), + "SYS_PAD_MQUERY": reflect.ValueOf(constant.MakeFromLiteral("286", token.INT, 0)), + "SYS_PAD_PREAD": reflect.ValueOf(constant.MakeFromLiteral("173", token.INT, 0)), + "SYS_PAD_PREADV": reflect.ValueOf(constant.MakeFromLiteral("267", token.INT, 0)), + "SYS_PAD_PWRITE": reflect.ValueOf(constant.MakeFromLiteral("174", token.INT, 0)), + "SYS_PAD_PWRITEV": reflect.ValueOf(constant.MakeFromLiteral("268", token.INT, 0)), + "SYS_PAD_TRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("200", token.INT, 0)), "SYS_PATHCONF": reflect.ValueOf(constant.MakeFromLiteral("191", token.INT, 0)), "SYS_PIPE": reflect.ValueOf(constant.MakeFromLiteral("263", token.INT, 0)), "SYS_PIPE2": reflect.ValueOf(constant.MakeFromLiteral("101", token.INT, 0)), "SYS_PLEDGE": reflect.ValueOf(constant.MakeFromLiteral("108", token.INT, 0)), "SYS_POLL": reflect.ValueOf(constant.MakeFromLiteral("252", token.INT, 0)), "SYS_PPOLL": reflect.ValueOf(constant.MakeFromLiteral("109", token.INT, 0)), - "SYS_PREAD": reflect.ValueOf(constant.MakeFromLiteral("173", token.INT, 0)), - "SYS_PREADV": reflect.ValueOf(constant.MakeFromLiteral("267", token.INT, 0)), + "SYS_PREAD": reflect.ValueOf(constant.MakeFromLiteral("169", token.INT, 0)), + "SYS_PREADV": reflect.ValueOf(constant.MakeFromLiteral("171", token.INT, 0)), "SYS_PROFIL": reflect.ValueOf(constant.MakeFromLiteral("44", token.INT, 0)), "SYS_PSELECT": reflect.ValueOf(constant.MakeFromLiteral("110", token.INT, 0)), "SYS_PTRACE": reflect.ValueOf(constant.MakeFromLiteral("26", token.INT, 0)), - "SYS_PWRITE": reflect.ValueOf(constant.MakeFromLiteral("174", token.INT, 0)), - "SYS_PWRITEV": reflect.ValueOf(constant.MakeFromLiteral("268", token.INT, 0)), + "SYS_PWRITE": reflect.ValueOf(constant.MakeFromLiteral("170", token.INT, 0)), + "SYS_PWRITEV": reflect.ValueOf(constant.MakeFromLiteral("172", token.INT, 0)), "SYS_QUOTACTL": reflect.ValueOf(constant.MakeFromLiteral("148", token.INT, 0)), "SYS_READ": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), "SYS_READLINK": reflect.ValueOf(constant.MakeFromLiteral("58", token.INT, 0)), @@ -1682,6 +1703,7 @@ func init() { "SYS_READV": reflect.ValueOf(constant.MakeFromLiteral("120", token.INT, 0)), "SYS_REBOOT": reflect.ValueOf(constant.MakeFromLiteral("55", token.INT, 0)), "SYS_RECVFROM": reflect.ValueOf(constant.MakeFromLiteral("29", token.INT, 0)), + "SYS_RECVMMSG": reflect.ValueOf(constant.MakeFromLiteral("116", token.INT, 0)), "SYS_RECVMSG": reflect.ValueOf(constant.MakeFromLiteral("27", token.INT, 0)), "SYS_RENAME": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), "SYS_RENAMEAT": reflect.ValueOf(constant.MakeFromLiteral("323", token.INT, 0)), @@ -1691,6 +1713,7 @@ func init() { "SYS_SELECT": reflect.ValueOf(constant.MakeFromLiteral("71", token.INT, 0)), "SYS_SEMGET": reflect.ValueOf(constant.MakeFromLiteral("221", token.INT, 0)), "SYS_SEMOP": reflect.ValueOf(constant.MakeFromLiteral("290", token.INT, 0)), + "SYS_SENDMMSG": reflect.ValueOf(constant.MakeFromLiteral("117", token.INT, 0)), "SYS_SENDMSG": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)), "SYS_SENDSYSLOG": reflect.ValueOf(constant.MakeFromLiteral("112", token.INT, 0)), "SYS_SENDTO": reflect.ValueOf(constant.MakeFromLiteral("133", token.INT, 0)), @@ -1734,7 +1757,7 @@ func init() { "SYS_SYSARCH": reflect.ValueOf(constant.MakeFromLiteral("165", token.INT, 0)), "SYS_SYSCTL": reflect.ValueOf(constant.MakeFromLiteral("202", token.INT, 0)), "SYS_THRKILL": reflect.ValueOf(constant.MakeFromLiteral("119", token.INT, 0)), - "SYS_TRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("200", token.INT, 0)), + "SYS_TRUNCATE": reflect.ValueOf(constant.MakeFromLiteral("167", token.INT, 0)), "SYS_UMASK": reflect.ValueOf(constant.MakeFromLiteral("60", token.INT, 0)), "SYS_UNLINK": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), "SYS_UNLINKAT": reflect.ValueOf(constant.MakeFromLiteral("325", token.INT, 0)), @@ -1747,6 +1770,7 @@ func init() { "SYS_WAIT4": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), "SYS_WRITE": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), "SYS_WRITEV": reflect.ValueOf(constant.MakeFromLiteral("121", token.INT, 0)), + "SYS_YPCONNECT": reflect.ValueOf(constant.MakeFromLiteral("150", token.INT, 0)), "SYS___GETCWD": reflect.ValueOf(constant.MakeFromLiteral("304", token.INT, 0)), "SYS___GET_TCB": reflect.ValueOf(constant.MakeFromLiteral("330", token.INT, 0)), "SYS___REALPATH": reflect.ValueOf(constant.MakeFromLiteral("115", token.INT, 0)), @@ -1814,7 +1838,7 @@ func init() { "SetsockoptTimeval": reflect.ValueOf(syscall.SetsockoptTimeval), "Settimeofday": reflect.ValueOf(syscall.Settimeofday), "Setuid": reflect.ValueOf(syscall.Setuid), - "SizeofBpfHdr": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)), + "SizeofBpfHdr": reflect.ValueOf(constant.MakeFromLiteral("24", token.INT, 0)), "SizeofBpfInsn": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), "SizeofBpfProgram": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), "SizeofBpfStat": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), @@ -1857,7 +1881,7 @@ func init() { "TCIFLUSH": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), "TCIOFLUSH": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), "TCOFLUSH": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), - "TCP_MAXBURST": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "TCP_INFO": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), "TCP_MAXSEG": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), "TCP_MAXWIN": reflect.ValueOf(constant.MakeFromLiteral("65535", token.INT, 0)), "TCP_MAX_SACK": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), diff --git a/stdlib/syscall/go1_20_syscall_plan9_amd64.go b/stdlib/syscall/go1_22_syscall_plan9_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_plan9_amd64.go rename to stdlib/syscall/go1_22_syscall_plan9_386.go index 528665825..ea37092ea 100644 --- a/stdlib/syscall/go1_20_syscall_plan9_amd64.go +++ b/stdlib/syscall/go1_22_syscall_plan9_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_plan9_arm.go b/stdlib/syscall/go1_22_syscall_plan9_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_plan9_arm.go rename to stdlib/syscall/go1_22_syscall_plan9_amd64.go index 528665825..ea37092ea 100644 --- a/stdlib/syscall/go1_20_syscall_plan9_arm.go +++ b/stdlib/syscall/go1_22_syscall_plan9_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_plan9_386.go b/stdlib/syscall/go1_22_syscall_plan9_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_plan9_386.go rename to stdlib/syscall/go1_22_syscall_plan9_arm.go index 528665825..ea37092ea 100644 --- a/stdlib/syscall/go1_20_syscall_plan9_386.go +++ b/stdlib/syscall/go1_22_syscall_plan9_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_solaris_amd64.go b/stdlib/syscall/go1_22_syscall_solaris_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_solaris_amd64.go rename to stdlib/syscall/go1_22_syscall_solaris_amd64.go index 3e0e35917..ebaa94c08 100644 --- a/stdlib/syscall/go1_20_syscall_solaris_amd64.go +++ b/stdlib/syscall/go1_22_syscall_solaris_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_22_syscall_wasip1_wasm.go b/stdlib/syscall/go1_22_syscall_wasip1_wasm.go new file mode 100644 index 000000000..75aaad76f --- /dev/null +++ b/stdlib/syscall/go1_22_syscall_wasip1_wasm.go @@ -0,0 +1,407 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package syscall + +import ( + "go/constant" + "go/token" + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AF_INET": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "AF_INET6": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "AF_UNIX": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "AF_UNSPEC": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "Accept": reflect.ValueOf(syscall.Accept), + "Bind": reflect.ValueOf(syscall.Bind), + "BytePtrFromString": reflect.ValueOf(syscall.BytePtrFromString), + "ByteSliceFromString": reflect.ValueOf(syscall.ByteSliceFromString), + "Chdir": reflect.ValueOf(syscall.Chdir), + "Chmod": reflect.ValueOf(syscall.Chmod), + "Chown": reflect.ValueOf(syscall.Chown), + "Clearenv": reflect.ValueOf(syscall.Clearenv), + "Close": reflect.ValueOf(syscall.Close), + "CloseOnExec": reflect.ValueOf(syscall.CloseOnExec), + "Connect": reflect.ValueOf(syscall.Connect), + "Dup": reflect.ValueOf(syscall.Dup), + "Dup2": reflect.ValueOf(syscall.Dup2), + "E2BIG": reflect.ValueOf(syscall.E2BIG), + "EACCES": reflect.ValueOf(syscall.EACCES), + "EADDRINUSE": reflect.ValueOf(syscall.EADDRINUSE), + "EADDRNOTAVAIL": reflect.ValueOf(syscall.EADDRNOTAVAIL), + "EAFNOSUPPORT": reflect.ValueOf(syscall.EAFNOSUPPORT), + "EAGAIN": reflect.ValueOf(syscall.EAGAIN), + "EALREADY": reflect.ValueOf(syscall.EALREADY), + "EBADF": reflect.ValueOf(syscall.EBADF), + "EBADMSG": reflect.ValueOf(syscall.EBADMSG), + "EBUSY": reflect.ValueOf(syscall.EBUSY), + "ECANCELED": reflect.ValueOf(syscall.ECANCELED), + "ECHILD": reflect.ValueOf(syscall.ECHILD), + "ECONNABORTED": reflect.ValueOf(syscall.ECONNABORTED), + "ECONNREFUSED": reflect.ValueOf(syscall.ECONNREFUSED), + "ECONNRESET": reflect.ValueOf(syscall.ECONNRESET), + "EDEADLK": reflect.ValueOf(syscall.EDEADLK), + "EDESTADDRREQ": reflect.ValueOf(syscall.EDESTADDRREQ), + "EDOM": reflect.ValueOf(syscall.EDOM), + "EDQUOT": reflect.ValueOf(syscall.EDQUOT), + "EEXIST": reflect.ValueOf(syscall.EEXIST), + "EFAULT": reflect.ValueOf(syscall.EFAULT), + "EFBIG": reflect.ValueOf(syscall.EFBIG), + "EHOSTUNREACH": reflect.ValueOf(syscall.EHOSTUNREACH), + "EIDRM": reflect.ValueOf(syscall.EIDRM), + "EILSEQ": reflect.ValueOf(syscall.EILSEQ), + "EINPROGRESS": reflect.ValueOf(syscall.EINPROGRESS), + "EINTR": reflect.ValueOf(syscall.EINTR), + "EINVAL": reflect.ValueOf(syscall.EINVAL), + "EIO": reflect.ValueOf(syscall.EIO), + "EISCONN": reflect.ValueOf(syscall.EISCONN), + "EISDIR": reflect.ValueOf(syscall.EISDIR), + "ELOOP": reflect.ValueOf(syscall.ELOOP), + "EMFILE": reflect.ValueOf(syscall.EMFILE), + "EMLINK": reflect.ValueOf(syscall.EMLINK), + "EMSGSIZE": reflect.ValueOf(syscall.EMSGSIZE), + "EMULTIHOP": reflect.ValueOf(syscall.EMULTIHOP), + "ENAMETOOLONG": reflect.ValueOf(syscall.ENAMETOOLONG), + "ENETDOWN": reflect.ValueOf(syscall.ENETDOWN), + "ENETRESET": reflect.ValueOf(syscall.ENETRESET), + "ENETUNREACH": reflect.ValueOf(syscall.ENETUNREACH), + "ENFILE": reflect.ValueOf(syscall.ENFILE), + "ENOBUFS": reflect.ValueOf(syscall.ENOBUFS), + "ENODEV": reflect.ValueOf(syscall.ENODEV), + "ENOENT": reflect.ValueOf(syscall.ENOENT), + "ENOEXEC": reflect.ValueOf(syscall.ENOEXEC), + "ENOLCK": reflect.ValueOf(syscall.ENOLCK), + "ENOLINK": reflect.ValueOf(syscall.ENOLINK), + "ENOMEM": reflect.ValueOf(syscall.ENOMEM), + "ENOMSG": reflect.ValueOf(syscall.ENOMSG), + "ENOPROTOOPT": reflect.ValueOf(syscall.ENOPROTOOPT), + "ENOSPC": reflect.ValueOf(syscall.ENOSPC), + "ENOSYS": reflect.ValueOf(syscall.ENOSYS), + "ENOTCAPABLE": reflect.ValueOf(syscall.ENOTCAPABLE), + "ENOTCONN": reflect.ValueOf(syscall.ENOTCONN), + "ENOTDIR": reflect.ValueOf(syscall.ENOTDIR), + "ENOTEMPTY": reflect.ValueOf(syscall.ENOTEMPTY), + "ENOTRECOVERABLE": reflect.ValueOf(syscall.ENOTRECOVERABLE), + "ENOTSOCK": reflect.ValueOf(syscall.ENOTSOCK), + "ENOTSUP": reflect.ValueOf(syscall.ENOTSUP), + "ENOTTY": reflect.ValueOf(syscall.ENOTTY), + "ENXIO": reflect.ValueOf(syscall.ENXIO), + "EOPNOTSUPP": reflect.ValueOf(syscall.EOPNOTSUPP), + "EOVERFLOW": reflect.ValueOf(syscall.EOVERFLOW), + "EOWNERDEAD": reflect.ValueOf(syscall.EOWNERDEAD), + "EPERM": reflect.ValueOf(syscall.EPERM), + "EPIPE": reflect.ValueOf(syscall.EPIPE), + "EPROTO": reflect.ValueOf(syscall.EPROTO), + "EPROTONOSUPPORT": reflect.ValueOf(syscall.EPROTONOSUPPORT), + "EPROTOTYPE": reflect.ValueOf(syscall.EPROTOTYPE), + "ERANGE": reflect.ValueOf(syscall.ERANGE), + "EROFS": reflect.ValueOf(syscall.EROFS), + "ESPIPE": reflect.ValueOf(syscall.ESPIPE), + "ESRCH": reflect.ValueOf(syscall.ESRCH), + "ESTALE": reflect.ValueOf(syscall.ESTALE), + "ETIMEDOUT": reflect.ValueOf(syscall.ETIMEDOUT), + "ETXTBSY": reflect.ValueOf(syscall.ETXTBSY), + "EXDEV": reflect.ValueOf(syscall.EXDEV), + "Environ": reflect.ValueOf(syscall.Environ), + "FDFLAG_APPEND": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "FDFLAG_DSYNC": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "FDFLAG_NONBLOCK": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "FDFLAG_RSYNC": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "FDFLAG_SYNC": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "FILESTAT_SET_ATIM": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "FILESTAT_SET_ATIM_NOW": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "FILESTAT_SET_MTIM": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "FILESTAT_SET_MTIM_NOW": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "FILETYPE_BLOCK_DEVICE": reflect.ValueOf(syscall.FILETYPE_BLOCK_DEVICE), + "FILETYPE_CHARACTER_DEVICE": reflect.ValueOf(syscall.FILETYPE_CHARACTER_DEVICE), + "FILETYPE_DIRECTORY": reflect.ValueOf(syscall.FILETYPE_DIRECTORY), + "FILETYPE_REGULAR_FILE": reflect.ValueOf(syscall.FILETYPE_REGULAR_FILE), + "FILETYPE_SOCKET_DGRAM": reflect.ValueOf(syscall.FILETYPE_SOCKET_DGRAM), + "FILETYPE_SOCKET_STREAM": reflect.ValueOf(syscall.FILETYPE_SOCKET_STREAM), + "FILETYPE_SYMBOLIC_LINK": reflect.ValueOf(syscall.FILETYPE_SYMBOLIC_LINK), + "FILETYPE_UNKNOWN": reflect.ValueOf(syscall.FILETYPE_UNKNOWN), + "F_CNVT": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), + "F_DUPFD": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "F_DUPFD_CLOEXEC": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "F_GETFD": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "F_GETFL": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "F_GETLK": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), + "F_GETOWN": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), + "F_RDLCK": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "F_RGETLK": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), + "F_RSETLK": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), + "F_RSETLKW": reflect.ValueOf(constant.MakeFromLiteral("13", token.INT, 0)), + "F_SETFD": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "F_SETFL": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "F_SETLK": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "F_SETLKW": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), + "F_SETOWN": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), + "F_UNLCK": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "F_UNLKSYS": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "F_WRLCK": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "Fchmod": reflect.ValueOf(syscall.Fchmod), + "Fchown": reflect.ValueOf(syscall.Fchown), + "Fstat": reflect.ValueOf(syscall.Fstat), + "Fsync": reflect.ValueOf(syscall.Fsync), + "Ftruncate": reflect.ValueOf(syscall.Ftruncate), + "Getegid": reflect.ValueOf(syscall.Getegid), + "Getenv": reflect.ValueOf(syscall.Getenv), + "Geteuid": reflect.ValueOf(syscall.Geteuid), + "Getgid": reflect.ValueOf(syscall.Getgid), + "Getgroups": reflect.ValueOf(syscall.Getgroups), + "Getpagesize": reflect.ValueOf(syscall.Getpagesize), + "Getpid": reflect.ValueOf(syscall.Getpid), + "Getppid": reflect.ValueOf(syscall.Getppid), + "Getrlimit": reflect.ValueOf(syscall.Getrlimit), + "GetsockoptInt": reflect.ValueOf(syscall.GetsockoptInt), + "Gettimeofday": reflect.ValueOf(syscall.Gettimeofday), + "Getuid": reflect.ValueOf(syscall.Getuid), + "Getwd": reflect.ValueOf(syscall.Getwd), + "IPPROTO_IP": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "IPPROTO_IPV4": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "IPPROTO_IPV6": reflect.ValueOf(constant.MakeFromLiteral("41", token.INT, 0)), + "IPPROTO_TCP": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), + "IPPROTO_UDP": reflect.ValueOf(constant.MakeFromLiteral("17", token.INT, 0)), + "IPV6_V6ONLY": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "ImplementsGetwd": reflect.ValueOf(syscall.ImplementsGetwd), + "LOOKUP_SYMLINK_FOLLOW": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "Lchown": reflect.ValueOf(syscall.Lchown), + "Link": reflect.ValueOf(syscall.Link), + "Listen": reflect.ValueOf(syscall.Listen), + "Lstat": reflect.ValueOf(syscall.Lstat), + "Mkdir": reflect.ValueOf(syscall.Mkdir), + "NsecToTimespec": reflect.ValueOf(syscall.NsecToTimespec), + "NsecToTimeval": reflect.ValueOf(syscall.NsecToTimeval), + "OFLAG_CREATE": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "OFLAG_DIRECTORY": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "OFLAG_EXCL": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "OFLAG_TRUNC": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "O_APPEND": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), + "O_CLOEXEC": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "O_CREAT": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "O_CREATE": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "O_EXCL": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "O_RDONLY": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "O_RDWR": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "O_SYNC": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), + "O_TRUNC": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "O_WRONLY": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "Open": reflect.ValueOf(syscall.Open), + "ParseDirent": reflect.ValueOf(syscall.ParseDirent), + "Pipe": reflect.ValueOf(syscall.Pipe), + "Pread": reflect.ValueOf(syscall.Pread), + "Pwrite": reflect.ValueOf(syscall.Pwrite), + "RIGHT_FDSTAT_SET_FLAGS": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "RIGHT_FD_ADVISE": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "RIGHT_FD_ALLOCATE": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), + "RIGHT_FD_DATASYNC": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "RIGHT_FD_FILESTAT_GET": reflect.ValueOf(constant.MakeFromLiteral("2097152", token.INT, 0)), + "RIGHT_FD_FILESTAT_SET_SIZE": reflect.ValueOf(constant.MakeFromLiteral("4194304", token.INT, 0)), + "RIGHT_FD_FILESTAT_SET_TIMES": reflect.ValueOf(constant.MakeFromLiteral("8388608", token.INT, 0)), + "RIGHT_FD_READ": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "RIGHT_FD_READDIR": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), + "RIGHT_FD_SEEK": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "RIGHT_FD_SYNC": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "RIGHT_FD_TELL": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), + "RIGHT_FD_WRITE": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "RIGHT_PATH_CREATE_DIRECTORY": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "RIGHT_PATH_CREATE_FILE": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), + "RIGHT_PATH_FILESTAT_GET": reflect.ValueOf(constant.MakeFromLiteral("262144", token.INT, 0)), + "RIGHT_PATH_FILESTAT_SET_SIZE": reflect.ValueOf(constant.MakeFromLiteral("524288", token.INT, 0)), + "RIGHT_PATH_FILESTAT_SET_TIMES": reflect.ValueOf(constant.MakeFromLiteral("1048576", token.INT, 0)), + "RIGHT_PATH_LINK_SOURCE": reflect.ValueOf(constant.MakeFromLiteral("2048", token.INT, 0)), + "RIGHT_PATH_LINK_TARGET": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), + "RIGHT_PATH_OPEN": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), + "RIGHT_PATH_READLINK": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), + "RIGHT_PATH_REMOVE_DIRECTORY": reflect.ValueOf(constant.MakeFromLiteral("33554432", token.INT, 0)), + "RIGHT_PATH_RENAME_SOURCE": reflect.ValueOf(constant.MakeFromLiteral("65536", token.INT, 0)), + "RIGHT_PATH_RENAME_TARGET": reflect.ValueOf(constant.MakeFromLiteral("131072", token.INT, 0)), + "RIGHT_PATH_SYMLINK": reflect.ValueOf(constant.MakeFromLiteral("16777216", token.INT, 0)), + "RIGHT_PATH_UNLINK_FILE": reflect.ValueOf(constant.MakeFromLiteral("67108864", token.INT, 0)), + "RIGHT_POLL_FD_READWRITE": reflect.ValueOf(constant.MakeFromLiteral("134217728", token.INT, 0)), + "RIGHT_SOCK_ACCEPT": reflect.ValueOf(constant.MakeFromLiteral("536870912", token.INT, 0)), + "RIGHT_SOCK_SHUTDOWN": reflect.ValueOf(constant.MakeFromLiteral("268435456", token.INT, 0)), + "RLIMIT_NOFILE": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "RandomGet": reflect.ValueOf(syscall.RandomGet), + "Read": reflect.ValueOf(syscall.Read), + "ReadDir": reflect.ValueOf(syscall.ReadDir), + "Readlink": reflect.ValueOf(syscall.Readlink), + "Recvfrom": reflect.ValueOf(syscall.Recvfrom), + "Recvmsg": reflect.ValueOf(syscall.Recvmsg), + "Rename": reflect.ValueOf(syscall.Rename), + "Rmdir": reflect.ValueOf(syscall.Rmdir), + "SHUT_RD": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "SHUT_RDWR": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "SHUT_WR": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "SIGABRT": reflect.ValueOf(syscall.SIGABRT), + "SIGALRM": reflect.ValueOf(syscall.SIGALRM), + "SIGBUS": reflect.ValueOf(syscall.SIGBUS), + "SIGCHLD": reflect.ValueOf(syscall.SIGCHLD), + "SIGCONT": reflect.ValueOf(syscall.SIGCONT), + "SIGFPE": reflect.ValueOf(syscall.SIGFPE), + "SIGHUP": reflect.ValueOf(syscall.SIGHUP), + "SIGILL": reflect.ValueOf(syscall.SIGILL), + "SIGINT": reflect.ValueOf(syscall.SIGINT), + "SIGKILL": reflect.ValueOf(syscall.SIGKILL), + "SIGNONE": reflect.ValueOf(syscall.SIGNONE), + "SIGPIPE": reflect.ValueOf(syscall.SIGPIPE), + "SIGPOLL": reflect.ValueOf(syscall.SIGPOLL), + "SIGPROF": reflect.ValueOf(syscall.SIGPROF), + "SIGPWR": reflect.ValueOf(syscall.SIGPWR), + "SIGQUIT": reflect.ValueOf(syscall.SIGQUIT), + "SIGSEGV": reflect.ValueOf(syscall.SIGSEGV), + "SIGSTOP": reflect.ValueOf(syscall.SIGSTOP), + "SIGSYS": reflect.ValueOf(syscall.SIGSYS), + "SIGTERM": reflect.ValueOf(syscall.SIGTERM), + "SIGTRAP": reflect.ValueOf(syscall.SIGTRAP), + "SIGTSTP": reflect.ValueOf(syscall.SIGTSTP), + "SIGTTIN": reflect.ValueOf(syscall.SIGTTIN), + "SIGTTOU": reflect.ValueOf(syscall.SIGTTOU), + "SIGURG": reflect.ValueOf(syscall.SIGURG), + "SIGUSR1": reflect.ValueOf(syscall.SIGUSR1), + "SIGUSR2": reflect.ValueOf(syscall.SIGUSR2), + "SIGVTARLM": reflect.ValueOf(syscall.SIGVTARLM), + "SIGWINCH": reflect.ValueOf(syscall.SIGWINCH), + "SIGXCPU": reflect.ValueOf(syscall.SIGXCPU), + "SIGXFSZ": reflect.ValueOf(syscall.SIGXFSZ), + "SOCK_DGRAM": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "SOCK_RAW": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "SOCK_SEQPACKET": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "SOCK_STREAM": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "SOMAXCONN": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "SO_ERROR": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "SYS_FCNTL": reflect.ValueOf(constant.MakeFromLiteral("500", token.INT, 0)), + "S_IEXEC": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "S_IFBLK": reflect.ValueOf(constant.MakeFromLiteral("24576", token.INT, 0)), + "S_IFBOUNDSOCK": reflect.ValueOf(constant.MakeFromLiteral("77824", token.INT, 0)), + "S_IFCHR": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), + "S_IFCOND": reflect.ValueOf(constant.MakeFromLiteral("90112", token.INT, 0)), + "S_IFDIR": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), + "S_IFDSOCK": reflect.ValueOf(constant.MakeFromLiteral("69632", token.INT, 0)), + "S_IFIFO": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), + "S_IFLNK": reflect.ValueOf(constant.MakeFromLiteral("40960", token.INT, 0)), + "S_IFMT": reflect.ValueOf(constant.MakeFromLiteral("126976", token.INT, 0)), + "S_IFMUTEX": reflect.ValueOf(constant.MakeFromLiteral("86016", token.INT, 0)), + "S_IFREG": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), + "S_IFSEMA": reflect.ValueOf(constant.MakeFromLiteral("94208", token.INT, 0)), + "S_IFSHM": reflect.ValueOf(constant.MakeFromLiteral("81920", token.INT, 0)), + "S_IFSHM_SYSV": reflect.ValueOf(constant.MakeFromLiteral("98304", token.INT, 0)), + "S_IFSOCK": reflect.ValueOf(constant.MakeFromLiteral("49152", token.INT, 0)), + "S_IFSOCKADDR": reflect.ValueOf(constant.MakeFromLiteral("73728", token.INT, 0)), + "S_IREAD": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), + "S_IRGRP": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), + "S_IROTH": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "S_IRUSR": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), + "S_IRWXG": reflect.ValueOf(constant.MakeFromLiteral("56", token.INT, 0)), + "S_IRWXO": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), + "S_IRWXU": reflect.ValueOf(constant.MakeFromLiteral("448", token.INT, 0)), + "S_ISGID": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), + "S_ISUID": reflect.ValueOf(constant.MakeFromLiteral("2048", token.INT, 0)), + "S_ISVTX": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "S_IWGRP": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "S_IWOTH": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "S_IWRITE": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "S_IWUSR": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "S_IXGRP": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "S_IXOTH": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "S_IXUSR": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "S_UNSUP": reflect.ValueOf(constant.MakeFromLiteral("126976", token.INT, 0)), + "Seek": reflect.ValueOf(syscall.Seek), + "Sendfile": reflect.ValueOf(syscall.Sendfile), + "SendmsgN": reflect.ValueOf(syscall.SendmsgN), + "Sendto": reflect.ValueOf(syscall.Sendto), + "SetNonblock": reflect.ValueOf(syscall.SetNonblock), + "SetReadDeadline": reflect.ValueOf(syscall.SetReadDeadline), + "SetWriteDeadline": reflect.ValueOf(syscall.SetWriteDeadline), + "Setenv": reflect.ValueOf(syscall.Setenv), + "SetsockoptInt": reflect.ValueOf(syscall.SetsockoptInt), + "Socket": reflect.ValueOf(syscall.Socket), + "Stat": reflect.ValueOf(syscall.Stat), + "Stderr": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "Stdin": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "Stdout": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "StopIO": reflect.ValueOf(syscall.StopIO), + "StringBytePtr": reflect.ValueOf(syscall.StringBytePtr), + "StringByteSlice": reflect.ValueOf(syscall.StringByteSlice), + "Symlink": reflect.ValueOf(syscall.Symlink), + "Sysctl": reflect.ValueOf(syscall.Sysctl), + "TimespecToNsec": reflect.ValueOf(syscall.TimespecToNsec), + "TimevalToNsec": reflect.ValueOf(syscall.TimevalToNsec), + "Truncate": reflect.ValueOf(syscall.Truncate), + "Umask": reflect.ValueOf(syscall.Umask), + "Unlink": reflect.ValueOf(syscall.Unlink), + "Unsetenv": reflect.ValueOf(syscall.Unsetenv), + "UtimesNano": reflect.ValueOf(syscall.UtimesNano), + "WHENCE_CUR": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "WHENCE_END": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "WHENCE_SET": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "Wait4": reflect.ValueOf(syscall.Wait4), + "Write": reflect.ValueOf(syscall.Write), + + // type definitions + "Conn": reflect.ValueOf((*syscall.Conn)(nil)), + "Dircookie": reflect.ValueOf((*syscall.Dircookie)(nil)), + "Dirent": reflect.ValueOf((*syscall.Dirent)(nil)), + "Errno": reflect.ValueOf((*syscall.Errno)(nil)), + "Filetype": reflect.ValueOf((*syscall.Filetype)(nil)), + "ProcAttr": reflect.ValueOf((*syscall.ProcAttr)(nil)), + "RawConn": reflect.ValueOf((*syscall.RawConn)(nil)), + "Rlimit": reflect.ValueOf((*syscall.Rlimit)(nil)), + "Rusage": reflect.ValueOf((*syscall.Rusage)(nil)), + "Signal": reflect.ValueOf((*syscall.Signal)(nil)), + "Sockaddr": reflect.ValueOf((*syscall.Sockaddr)(nil)), + "SockaddrInet4": reflect.ValueOf((*syscall.SockaddrInet4)(nil)), + "SockaddrInet6": reflect.ValueOf((*syscall.SockaddrInet6)(nil)), + "SockaddrUnix": reflect.ValueOf((*syscall.SockaddrUnix)(nil)), + "Stat_t": reflect.ValueOf((*syscall.Stat_t)(nil)), + "SysProcAttr": reflect.ValueOf((*syscall.SysProcAttr)(nil)), + "Timespec": reflect.ValueOf((*syscall.Timespec)(nil)), + "Timeval": reflect.ValueOf((*syscall.Timeval)(nil)), + "WaitStatus": reflect.ValueOf((*syscall.WaitStatus)(nil)), + + // interface wrapper definitions + "_Conn": reflect.ValueOf((*_syscall_Conn)(nil)), + "_RawConn": reflect.ValueOf((*_syscall_RawConn)(nil)), + "_Sockaddr": reflect.ValueOf((*_syscall_Sockaddr)(nil)), + } +} + +// _syscall_Conn is an interface wrapper for Conn type +type _syscall_Conn struct { + IValue interface{} + WSyscallConn func() (syscall.RawConn, error) +} + +func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { + return W.WSyscallConn() +} + +// _syscall_RawConn is an interface wrapper for RawConn type +type _syscall_RawConn struct { + IValue interface{} + WControl func(f func(fd uintptr)) error + WRead func(f func(fd uintptr) (done bool)) error + WWrite func(f func(fd uintptr) (done bool)) error +} + +func (W _syscall_RawConn) Control(f func(fd uintptr)) error { + return W.WControl(f) +} +func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { + return W.WRead(f) +} +func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { + return W.WWrite(f) +} + +// _syscall_Sockaddr is an interface wrapper for Sockaddr type +type _syscall_Sockaddr struct { + IValue interface{} +} diff --git a/stdlib/syscall/go1_20_syscall_windows_386.go b/stdlib/syscall/go1_22_syscall_windows_386.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_windows_386.go rename to stdlib/syscall/go1_22_syscall_windows_386.go index 922496039..3ffa880f8 100644 --- a/stdlib/syscall/go1_20_syscall_windows_386.go +++ b/stdlib/syscall/go1_22_syscall_windows_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_windows_arm64.go b/stdlib/syscall/go1_22_syscall_windows_amd64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_windows_arm64.go rename to stdlib/syscall/go1_22_syscall_windows_amd64.go index 922496039..3ffa880f8 100644 --- a/stdlib/syscall/go1_20_syscall_windows_arm64.go +++ b/stdlib/syscall/go1_22_syscall_windows_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_windows_amd64.go b/stdlib/syscall/go1_22_syscall_windows_arm.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_windows_amd64.go rename to stdlib/syscall/go1_22_syscall_windows_arm.go index 922496039..3ffa880f8 100644 --- a/stdlib/syscall/go1_20_syscall_windows_amd64.go +++ b/stdlib/syscall/go1_22_syscall_windows_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/go1_20_syscall_windows_arm.go b/stdlib/syscall/go1_22_syscall_windows_arm64.go similarity index 99% rename from stdlib/syscall/go1_20_syscall_windows_arm.go rename to stdlib/syscall/go1_22_syscall_windows_arm64.go index 922496039..3ffa880f8 100644 --- a/stdlib/syscall/go1_20_syscall_windows_arm.go +++ b/stdlib/syscall/go1_22_syscall_windows_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package syscall diff --git a/stdlib/syscall/syscall.go b/stdlib/syscall/syscall.go index 66969bff1..3e52a1250 100644 --- a/stdlib/syscall/syscall.go +++ b/stdlib/syscall/syscall.go @@ -1,6 +1,3 @@ -//go:build go1.19 -// +build go1.19 - // Package syscall provide wrapper of standard library syscall package for native import in Yaegi. package syscall diff --git a/stdlib/unrestricted/go1_20_syscall_android_386.go b/stdlib/unrestricted/go1_20_syscall_android_386.go deleted file mode 100644 index 4f20dc8d0..000000000 --- a/stdlib/unrestricted/go1_20_syscall_android_386.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_android_amd64.go b/stdlib/unrestricted/go1_20_syscall_android_amd64.go deleted file mode 100644 index 4f20dc8d0..000000000 --- a/stdlib/unrestricted/go1_20_syscall_android_amd64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_android_arm.go b/stdlib/unrestricted/go1_20_syscall_android_arm.go deleted file mode 100644 index 4f20dc8d0..000000000 --- a/stdlib/unrestricted/go1_20_syscall_android_arm.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_android_arm64.go b/stdlib/unrestricted/go1_20_syscall_android_arm64.go deleted file mode 100644 index 4f20dc8d0..000000000 --- a/stdlib/unrestricted/go1_20_syscall_android_arm64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 && !linux -// +build go1.20,!go1.21,!linux - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_freebsd_arm64.go b/stdlib/unrestricted/go1_20_syscall_freebsd_arm64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_freebsd_arm64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_freebsd_riscv64.go b/stdlib/unrestricted/go1_20_syscall_freebsd_riscv64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_freebsd_riscv64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_loong64.go b/stdlib/unrestricted/go1_20_syscall_linux_loong64.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_loong64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_mips64.go b/stdlib/unrestricted/go1_20_syscall_linux_mips64.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_mips64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_mips64le.go b/stdlib/unrestricted/go1_20_syscall_linux_mips64le.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_mips64le.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_ppc64.go b/stdlib/unrestricted/go1_20_syscall_linux_ppc64.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_ppc64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_ppc64le.go b/stdlib/unrestricted/go1_20_syscall_linux_ppc64le.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_ppc64le.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_riscv64.go b/stdlib/unrestricted/go1_20_syscall_linux_riscv64.go deleted file mode 100644 index 5090413a8..000000000 --- a/stdlib/unrestricted/go1_20_syscall_linux_riscv64.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), - "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), - "PtraceCont": reflect.ValueOf(syscall.PtraceCont), - "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), - "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), - "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), - "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), - "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), - "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), - "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), - "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), - "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), - "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), - "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Reboot": reflect.ValueOf(syscall.Reboot), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - - // type definitions - "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_netbsd_386.go b/stdlib/unrestricted/go1_20_syscall_netbsd_386.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_netbsd_386.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_netbsd_amd64.go b/stdlib/unrestricted/go1_20_syscall_netbsd_amd64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_netbsd_amd64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_netbsd_arm.go b/stdlib/unrestricted/go1_20_syscall_netbsd_arm.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_netbsd_arm.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_netbsd_arm64.go b/stdlib/unrestricted/go1_20_syscall_netbsd_arm64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_netbsd_arm64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_openbsd_386.go b/stdlib/unrestricted/go1_20_syscall_openbsd_386.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_openbsd_386.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_openbsd_amd64.go b/stdlib/unrestricted/go1_20_syscall_openbsd_amd64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_openbsd_amd64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_openbsd_arm.go b/stdlib/unrestricted/go1_20_syscall_openbsd_arm.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_openbsd_arm.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_openbsd_arm64.go b/stdlib/unrestricted/go1_20_syscall_openbsd_arm64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_openbsd_arm64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_20_syscall_openbsd_mips64.go b/stdlib/unrestricted/go1_20_syscall_openbsd_mips64.go deleted file mode 100644 index 91c39eb4d..000000000 --- a/stdlib/unrestricted/go1_20_syscall_openbsd_mips64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by 'yaegi extract syscall'. DO NOT EDIT. - -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 - -package unrestricted - -import ( - "reflect" - "syscall" -) - -func init() { - Symbols["syscall/syscall"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Exec": reflect.ValueOf(syscall.Exec), - "Exit": reflect.ValueOf(syscall.Exit), - "ForkExec": reflect.ValueOf(syscall.ForkExec), - "Kill": reflect.ValueOf(syscall.Kill), - "RawSyscall": reflect.ValueOf(syscall.RawSyscall), - "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), - "Shutdown": reflect.ValueOf(syscall.Shutdown), - "StartProcess": reflect.ValueOf(syscall.StartProcess), - "Syscall": reflect.ValueOf(syscall.Syscall), - "Syscall6": reflect.ValueOf(syscall.Syscall6), - "Syscall9": reflect.ValueOf(syscall.Syscall9), - } -} diff --git a/stdlib/unrestricted/go1_21_syscall_aix_ppc64.go b/stdlib/unrestricted/go1_21_syscall_aix_ppc64.go index 281946633..da40a4592 100644 --- a/stdlib/unrestricted/go1_21_syscall_aix_ppc64.go +++ b/stdlib/unrestricted/go1_21_syscall_aix_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_android_386.go b/stdlib/unrestricted/go1_21_syscall_android_386.go index 7ea7eaad4..4da9846fb 100644 --- a/stdlib/unrestricted/go1_21_syscall_android_386.go +++ b/stdlib/unrestricted/go1_21_syscall_android_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_android_amd64.go b/stdlib/unrestricted/go1_21_syscall_android_amd64.go index 7ea7eaad4..4da9846fb 100644 --- a/stdlib/unrestricted/go1_21_syscall_android_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_android_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_android_arm.go b/stdlib/unrestricted/go1_21_syscall_android_arm.go index 7ea7eaad4..4da9846fb 100644 --- a/stdlib/unrestricted/go1_21_syscall_android_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_android_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_android_arm64.go b/stdlib/unrestricted/go1_21_syscall_android_arm64.go index 7ea7eaad4..4da9846fb 100644 --- a/stdlib/unrestricted/go1_21_syscall_android_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_android_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !linux -// +build go1.21,!linux +//go:build go1.21 && !go1.22 && !linux +// +build go1.21,!go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_darwin_amd64.go b/stdlib/unrestricted/go1_21_syscall_darwin_amd64.go index 4a88c6fe9..d56776dd8 100644 --- a/stdlib/unrestricted/go1_21_syscall_darwin_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_darwin_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_darwin_arm64.go b/stdlib/unrestricted/go1_21_syscall_darwin_arm64.go index 4a88c6fe9..d56776dd8 100644 --- a/stdlib/unrestricted/go1_21_syscall_darwin_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_darwin_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_dragonfly_amd64.go b/stdlib/unrestricted/go1_21_syscall_dragonfly_amd64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_dragonfly_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_dragonfly_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_freebsd_386.go b/stdlib/unrestricted/go1_21_syscall_freebsd_386.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_freebsd_386.go +++ b/stdlib/unrestricted/go1_21_syscall_freebsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_freebsd_amd64.go b/stdlib/unrestricted/go1_21_syscall_freebsd_amd64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_freebsd_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_freebsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_freebsd_arm.go b/stdlib/unrestricted/go1_21_syscall_freebsd_arm.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_freebsd_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_freebsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_freebsd_arm64.go b/stdlib/unrestricted/go1_21_syscall_freebsd_arm64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_freebsd_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_freebsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_freebsd_riscv64.go b/stdlib/unrestricted/go1_21_syscall_freebsd_riscv64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_freebsd_riscv64.go +++ b/stdlib/unrestricted/go1_21_syscall_freebsd_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_illumos_amd64.go b/stdlib/unrestricted/go1_21_syscall_illumos_amd64.go index 4afce2c0a..a57d766a0 100644 --- a/stdlib/unrestricted/go1_21_syscall_illumos_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_illumos_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 && !solaris -// +build go1.21,!solaris +//go:build go1.21 && !go1.22 && !solaris +// +build go1.21,!go1.22,!solaris package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_ios_amd64.go b/stdlib/unrestricted/go1_21_syscall_ios_amd64.go index 4a88c6fe9..d56776dd8 100644 --- a/stdlib/unrestricted/go1_21_syscall_ios_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_ios_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_ios_arm64.go b/stdlib/unrestricted/go1_21_syscall_ios_arm64.go index 4a88c6fe9..d56776dd8 100644 --- a/stdlib/unrestricted/go1_21_syscall_ios_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_ios_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_js_wasm.go b/stdlib/unrestricted/go1_21_syscall_js_wasm.go index 2444531a9..761de2b25 100644 --- a/stdlib/unrestricted/go1_21_syscall_js_wasm.go +++ b/stdlib/unrestricted/go1_21_syscall_js_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_386.go b/stdlib/unrestricted/go1_21_syscall_linux_386.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_386.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_amd64.go b/stdlib/unrestricted/go1_21_syscall_linux_amd64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_arm.go b/stdlib/unrestricted/go1_21_syscall_linux_arm.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_arm64.go b/stdlib/unrestricted/go1_21_syscall_linux_arm64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_loong64.go b/stdlib/unrestricted/go1_21_syscall_linux_loong64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_loong64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_loong64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_mips.go b/stdlib/unrestricted/go1_21_syscall_linux_mips.go index 0a1b15c94..a9168908e 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_mips.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_mips.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_mips64.go b/stdlib/unrestricted/go1_21_syscall_linux_mips64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_mips64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_mips64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_mips64le.go b/stdlib/unrestricted/go1_21_syscall_linux_mips64le.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_mips64le.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_mips64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_mipsle.go b/stdlib/unrestricted/go1_21_syscall_linux_mipsle.go index 0a1b15c94..a9168908e 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_mipsle.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_mipsle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_ppc64.go b/stdlib/unrestricted/go1_21_syscall_linux_ppc64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_ppc64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_ppc64le.go b/stdlib/unrestricted/go1_21_syscall_linux_ppc64le.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_ppc64le.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_ppc64le.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_riscv64.go b/stdlib/unrestricted/go1_21_syscall_linux_riscv64.go index 1ace1c25c..8c5f39f40 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_riscv64.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_riscv64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_linux_s390x.go b/stdlib/unrestricted/go1_21_syscall_linux_s390x.go index afe95f4bc..adeef342e 100644 --- a/stdlib/unrestricted/go1_21_syscall_linux_s390x.go +++ b/stdlib/unrestricted/go1_21_syscall_linux_s390x.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_netbsd_386.go b/stdlib/unrestricted/go1_21_syscall_netbsd_386.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_netbsd_386.go +++ b/stdlib/unrestricted/go1_21_syscall_netbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_netbsd_amd64.go b/stdlib/unrestricted/go1_21_syscall_netbsd_amd64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_netbsd_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_netbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_netbsd_arm.go b/stdlib/unrestricted/go1_21_syscall_netbsd_arm.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_netbsd_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_netbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_netbsd_arm64.go b/stdlib/unrestricted/go1_21_syscall_netbsd_arm64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_netbsd_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_netbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_openbsd_386.go b/stdlib/unrestricted/go1_21_syscall_openbsd_386.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_openbsd_386.go +++ b/stdlib/unrestricted/go1_21_syscall_openbsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_openbsd_amd64.go b/stdlib/unrestricted/go1_21_syscall_openbsd_amd64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_openbsd_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_openbsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_openbsd_arm.go b/stdlib/unrestricted/go1_21_syscall_openbsd_arm.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_openbsd_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_openbsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_openbsd_arm64.go b/stdlib/unrestricted/go1_21_syscall_openbsd_arm64.go index a05d0fffc..025db369b 100644 --- a/stdlib/unrestricted/go1_21_syscall_openbsd_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_openbsd_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_plan9_386.go b/stdlib/unrestricted/go1_21_syscall_plan9_386.go index 1d764bc6c..cbe0645d8 100644 --- a/stdlib/unrestricted/go1_21_syscall_plan9_386.go +++ b/stdlib/unrestricted/go1_21_syscall_plan9_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_plan9_amd64.go b/stdlib/unrestricted/go1_21_syscall_plan9_amd64.go index 1d764bc6c..cbe0645d8 100644 --- a/stdlib/unrestricted/go1_21_syscall_plan9_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_plan9_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_plan9_arm.go b/stdlib/unrestricted/go1_21_syscall_plan9_arm.go index 1d764bc6c..cbe0645d8 100644 --- a/stdlib/unrestricted/go1_21_syscall_plan9_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_plan9_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_solaris_amd64.go b/stdlib/unrestricted/go1_21_syscall_solaris_amd64.go index d05f18886..c4d6fabfc 100644 --- a/stdlib/unrestricted/go1_21_syscall_solaris_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_solaris_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_wasip1_wasm.go b/stdlib/unrestricted/go1_21_syscall_wasip1_wasm.go index 535bf75eb..cda6f7ef8 100644 --- a/stdlib/unrestricted/go1_21_syscall_wasip1_wasm.go +++ b/stdlib/unrestricted/go1_21_syscall_wasip1_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_windows_386.go b/stdlib/unrestricted/go1_21_syscall_windows_386.go index 34318fdaa..d71572456 100644 --- a/stdlib/unrestricted/go1_21_syscall_windows_386.go +++ b/stdlib/unrestricted/go1_21_syscall_windows_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_windows_amd64.go b/stdlib/unrestricted/go1_21_syscall_windows_amd64.go index 34318fdaa..d71572456 100644 --- a/stdlib/unrestricted/go1_21_syscall_windows_amd64.go +++ b/stdlib/unrestricted/go1_21_syscall_windows_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_windows_arm.go b/stdlib/unrestricted/go1_21_syscall_windows_arm.go index 34318fdaa..d71572456 100644 --- a/stdlib/unrestricted/go1_21_syscall_windows_arm.go +++ b/stdlib/unrestricted/go1_21_syscall_windows_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_21_syscall_windows_arm64.go b/stdlib/unrestricted/go1_21_syscall_windows_arm64.go index 34318fdaa..d71572456 100644 --- a/stdlib/unrestricted/go1_21_syscall_windows_arm64.go +++ b/stdlib/unrestricted/go1_21_syscall_windows_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_aix_ppc64.go b/stdlib/unrestricted/go1_22_syscall_aix_ppc64.go similarity index 96% rename from stdlib/unrestricted/go1_20_syscall_aix_ppc64.go rename to stdlib/unrestricted/go1_22_syscall_aix_ppc64.go index 4d6df0ab5..ebee87543 100644 --- a/stdlib/unrestricted/go1_20_syscall_aix_ppc64.go +++ b/stdlib/unrestricted/go1_22_syscall_aix_ppc64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_linux_386.go b/stdlib/unrestricted/go1_22_syscall_android_386.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_386.go rename to stdlib/unrestricted/go1_22_syscall_android_386.go index 5090413a8..eb46eecd3 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_386.go +++ b/stdlib/unrestricted/go1_22_syscall_android_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_linux_amd64.go b/stdlib/unrestricted/go1_22_syscall_android_amd64.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_amd64.go rename to stdlib/unrestricted/go1_22_syscall_android_amd64.go index 5090413a8..eb46eecd3 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_android_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_linux_arm.go b/stdlib/unrestricted/go1_22_syscall_android_arm.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_arm.go rename to stdlib/unrestricted/go1_22_syscall_android_arm.go index 5090413a8..eb46eecd3 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_arm.go +++ b/stdlib/unrestricted/go1_22_syscall_android_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_linux_arm64.go b/stdlib/unrestricted/go1_22_syscall_android_arm64.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_arm64.go rename to stdlib/unrestricted/go1_22_syscall_android_arm64.go index 5090413a8..eb46eecd3 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_arm64.go +++ b/stdlib/unrestricted/go1_22_syscall_android_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 && !linux +// +build go1.22,!linux package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_ios_amd64.go b/stdlib/unrestricted/go1_22_syscall_darwin_amd64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_ios_amd64.go rename to stdlib/unrestricted/go1_22_syscall_darwin_amd64.go index dbacdd536..0af170498 100644 --- a/stdlib/unrestricted/go1_20_syscall_ios_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_darwin_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_darwin_amd64.go b/stdlib/unrestricted/go1_22_syscall_darwin_arm64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_darwin_amd64.go rename to stdlib/unrestricted/go1_22_syscall_darwin_arm64.go index dbacdd536..0af170498 100644 --- a/stdlib/unrestricted/go1_20_syscall_darwin_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_darwin_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_freebsd_386.go b/stdlib/unrestricted/go1_22_syscall_dragonfly_amd64.go similarity index 93% rename from stdlib/unrestricted/go1_20_syscall_freebsd_386.go rename to stdlib/unrestricted/go1_22_syscall_dragonfly_amd64.go index 91c39eb4d..2ef14f013 100644 --- a/stdlib/unrestricted/go1_20_syscall_freebsd_386.go +++ b/stdlib/unrestricted/go1_22_syscall_dragonfly_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_freebsd_amd64.go b/stdlib/unrestricted/go1_22_syscall_freebsd_386.go similarity index 93% rename from stdlib/unrestricted/go1_20_syscall_freebsd_amd64.go rename to stdlib/unrestricted/go1_22_syscall_freebsd_386.go index 91c39eb4d..2ef14f013 100644 --- a/stdlib/unrestricted/go1_20_syscall_freebsd_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_freebsd_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_freebsd_arm.go b/stdlib/unrestricted/go1_22_syscall_freebsd_amd64.go similarity index 93% rename from stdlib/unrestricted/go1_20_syscall_freebsd_arm.go rename to stdlib/unrestricted/go1_22_syscall_freebsd_amd64.go index 91c39eb4d..2ef14f013 100644 --- a/stdlib/unrestricted/go1_20_syscall_freebsd_arm.go +++ b/stdlib/unrestricted/go1_22_syscall_freebsd_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_dragonfly_amd64.go b/stdlib/unrestricted/go1_22_syscall_freebsd_arm.go similarity index 93% rename from stdlib/unrestricted/go1_20_syscall_dragonfly_amd64.go rename to stdlib/unrestricted/go1_22_syscall_freebsd_arm.go index 91c39eb4d..2ef14f013 100644 --- a/stdlib/unrestricted/go1_20_syscall_dragonfly_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_freebsd_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_freebsd_arm64.go b/stdlib/unrestricted/go1_22_syscall_freebsd_arm64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_freebsd_arm64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_freebsd_riscv64.go b/stdlib/unrestricted/go1_22_syscall_freebsd_riscv64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_freebsd_riscv64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_illumos_amd64.go b/stdlib/unrestricted/go1_22_syscall_illumos_amd64.go similarity index 91% rename from stdlib/unrestricted/go1_20_syscall_illumos_amd64.go rename to stdlib/unrestricted/go1_22_syscall_illumos_amd64.go index 8ecb2fb93..35cd7f55f 100644 --- a/stdlib/unrestricted/go1_20_syscall_illumos_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_illumos_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 && !solaris -// +build go1.20,!go1.21,!solaris +//go:build go1.22 && !solaris +// +build go1.22,!solaris package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_darwin_arm64.go b/stdlib/unrestricted/go1_22_syscall_ios_amd64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_darwin_arm64.go rename to stdlib/unrestricted/go1_22_syscall_ios_amd64.go index dbacdd536..0af170498 100644 --- a/stdlib/unrestricted/go1_20_syscall_darwin_arm64.go +++ b/stdlib/unrestricted/go1_22_syscall_ios_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_ios_arm64.go b/stdlib/unrestricted/go1_22_syscall_ios_arm64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_ios_arm64.go rename to stdlib/unrestricted/go1_22_syscall_ios_arm64.go index dbacdd536..0af170498 100644 --- a/stdlib/unrestricted/go1_20_syscall_ios_arm64.go +++ b/stdlib/unrestricted/go1_22_syscall_ios_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_js_wasm.go b/stdlib/unrestricted/go1_22_syscall_js_wasm.go similarity index 92% rename from stdlib/unrestricted/go1_20_syscall_js_wasm.go rename to stdlib/unrestricted/go1_22_syscall_js_wasm.go index 4b2fdef87..1f8071598 100644 --- a/stdlib/unrestricted/go1_20_syscall_js_wasm.go +++ b/stdlib/unrestricted/go1_22_syscall_js_wasm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_linux_386.go b/stdlib/unrestricted/go1_22_syscall_linux_386.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_386.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_amd64.go b/stdlib/unrestricted/go1_22_syscall_linux_amd64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_amd64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_arm.go b/stdlib/unrestricted/go1_22_syscall_linux_arm.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_arm.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_arm64.go b/stdlib/unrestricted/go1_22_syscall_linux_arm64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_arm64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_loong64.go b/stdlib/unrestricted/go1_22_syscall_linux_loong64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_loong64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_mips.go b/stdlib/unrestricted/go1_22_syscall_linux_mips.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_mips.go rename to stdlib/unrestricted/go1_22_syscall_linux_mips.go index b88942476..82d518d72 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_mips.go +++ b/stdlib/unrestricted/go1_22_syscall_linux_mips.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_linux_mips64.go b/stdlib/unrestricted/go1_22_syscall_linux_mips64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_mips64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_mips64le.go b/stdlib/unrestricted/go1_22_syscall_linux_mips64le.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_mips64le.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_mipsle.go b/stdlib/unrestricted/go1_22_syscall_linux_mipsle.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_mipsle.go rename to stdlib/unrestricted/go1_22_syscall_linux_mipsle.go index b88942476..82d518d72 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_mipsle.go +++ b/stdlib/unrestricted/go1_22_syscall_linux_mipsle.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_linux_ppc64.go b/stdlib/unrestricted/go1_22_syscall_linux_ppc64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_ppc64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_ppc64le.go b/stdlib/unrestricted/go1_22_syscall_linux_ppc64le.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_ppc64le.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_linux_riscv64.go b/stdlib/unrestricted/go1_22_syscall_linux_riscv64.go new file mode 100644 index 000000000..d6c41dc9c --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_linux_riscv64.go @@ -0,0 +1,46 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "AllThreadsSyscall": reflect.ValueOf(syscall.AllThreadsSyscall), + "AllThreadsSyscall6": reflect.ValueOf(syscall.AllThreadsSyscall6), + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "PtraceAttach": reflect.ValueOf(syscall.PtraceAttach), + "PtraceCont": reflect.ValueOf(syscall.PtraceCont), + "PtraceDetach": reflect.ValueOf(syscall.PtraceDetach), + "PtraceGetEventMsg": reflect.ValueOf(syscall.PtraceGetEventMsg), + "PtraceGetRegs": reflect.ValueOf(syscall.PtraceGetRegs), + "PtracePeekData": reflect.ValueOf(syscall.PtracePeekData), + "PtracePeekText": reflect.ValueOf(syscall.PtracePeekText), + "PtracePokeData": reflect.ValueOf(syscall.PtracePokeData), + "PtracePokeText": reflect.ValueOf(syscall.PtracePokeText), + "PtraceSetOptions": reflect.ValueOf(syscall.PtraceSetOptions), + "PtraceSetRegs": reflect.ValueOf(syscall.PtraceSetRegs), + "PtraceSingleStep": reflect.ValueOf(syscall.PtraceSingleStep), + "PtraceSyscall": reflect.ValueOf(syscall.PtraceSyscall), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Reboot": reflect.ValueOf(syscall.Reboot), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + + // type definitions + "PtraceRegs": reflect.ValueOf((*syscall.PtraceRegs)(nil)), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_linux_s390x.go b/stdlib/unrestricted/go1_22_syscall_linux_s390x.go similarity index 97% rename from stdlib/unrestricted/go1_20_syscall_linux_s390x.go rename to stdlib/unrestricted/go1_22_syscall_linux_s390x.go index 04967910e..4a12fa1e6 100644 --- a/stdlib/unrestricted/go1_20_syscall_linux_s390x.go +++ b/stdlib/unrestricted/go1_22_syscall_linux_s390x.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_netbsd_386.go b/stdlib/unrestricted/go1_22_syscall_netbsd_386.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_netbsd_386.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_netbsd_amd64.go b/stdlib/unrestricted/go1_22_syscall_netbsd_amd64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_netbsd_amd64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_netbsd_arm.go b/stdlib/unrestricted/go1_22_syscall_netbsd_arm.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_netbsd_arm.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_netbsd_arm64.go b/stdlib/unrestricted/go1_22_syscall_netbsd_arm64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_netbsd_arm64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_openbsd_386.go b/stdlib/unrestricted/go1_22_syscall_openbsd_386.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_openbsd_386.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_openbsd_amd64.go b/stdlib/unrestricted/go1_22_syscall_openbsd_amd64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_openbsd_amd64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_openbsd_arm.go b/stdlib/unrestricted/go1_22_syscall_openbsd_arm.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_openbsd_arm.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_openbsd_arm64.go b/stdlib/unrestricted/go1_22_syscall_openbsd_arm64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_openbsd_arm64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_22_syscall_openbsd_ppc64.go b/stdlib/unrestricted/go1_22_syscall_openbsd_ppc64.go new file mode 100644 index 000000000..2ef14f013 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_openbsd_ppc64.go @@ -0,0 +1,28 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exec": reflect.ValueOf(syscall.Exec), + "Exit": reflect.ValueOf(syscall.Exit), + "ForkExec": reflect.ValueOf(syscall.ForkExec), + "Kill": reflect.ValueOf(syscall.Kill), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + "Syscall9": reflect.ValueOf(syscall.Syscall9), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_plan9_arm.go b/stdlib/unrestricted/go1_22_syscall_plan9_386.go similarity index 92% rename from stdlib/unrestricted/go1_20_syscall_plan9_arm.go rename to stdlib/unrestricted/go1_22_syscall_plan9_386.go index ee7fd55f6..c34a41b51 100644 --- a/stdlib/unrestricted/go1_20_syscall_plan9_arm.go +++ b/stdlib/unrestricted/go1_22_syscall_plan9_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_plan9_386.go b/stdlib/unrestricted/go1_22_syscall_plan9_amd64.go similarity index 92% rename from stdlib/unrestricted/go1_20_syscall_plan9_386.go rename to stdlib/unrestricted/go1_22_syscall_plan9_amd64.go index ee7fd55f6..c34a41b51 100644 --- a/stdlib/unrestricted/go1_20_syscall_plan9_386.go +++ b/stdlib/unrestricted/go1_22_syscall_plan9_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_plan9_amd64.go b/stdlib/unrestricted/go1_22_syscall_plan9_arm.go similarity index 92% rename from stdlib/unrestricted/go1_20_syscall_plan9_amd64.go rename to stdlib/unrestricted/go1_22_syscall_plan9_arm.go index ee7fd55f6..c34a41b51 100644 --- a/stdlib/unrestricted/go1_20_syscall_plan9_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_plan9_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_solaris_amd64.go b/stdlib/unrestricted/go1_22_syscall_solaris_amd64.go similarity index 92% rename from stdlib/unrestricted/go1_20_syscall_solaris_amd64.go rename to stdlib/unrestricted/go1_22_syscall_solaris_amd64.go index 2f315c434..a0a312879 100644 --- a/stdlib/unrestricted/go1_20_syscall_solaris_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_solaris_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_22_syscall_wasip1_wasm.go b/stdlib/unrestricted/go1_22_syscall_wasip1_wasm.go new file mode 100644 index 000000000..038994566 --- /dev/null +++ b/stdlib/unrestricted/go1_22_syscall_wasip1_wasm.go @@ -0,0 +1,26 @@ +// Code generated by 'yaegi extract syscall'. DO NOT EDIT. + +//go:build go1.22 +// +build go1.22 + +package unrestricted + +import ( + "reflect" + "syscall" +) + +func init() { + Symbols["syscall/syscall"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Exit": reflect.ValueOf(syscall.Exit), + "Kill": reflect.ValueOf(syscall.Kill), + "ProcExit": reflect.ValueOf(syscall.ProcExit), + "RawSyscall": reflect.ValueOf(syscall.RawSyscall), + "RawSyscall6": reflect.ValueOf(syscall.RawSyscall6), + "Shutdown": reflect.ValueOf(syscall.Shutdown), + "StartProcess": reflect.ValueOf(syscall.StartProcess), + "Syscall": reflect.ValueOf(syscall.Syscall), + "Syscall6": reflect.ValueOf(syscall.Syscall6), + } +} diff --git a/stdlib/unrestricted/go1_20_syscall_windows_arm.go b/stdlib/unrestricted/go1_22_syscall_windows_386.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_windows_arm.go rename to stdlib/unrestricted/go1_22_syscall_windows_386.go index eddaf1c37..210e44cf7 100644 --- a/stdlib/unrestricted/go1_20_syscall_windows_arm.go +++ b/stdlib/unrestricted/go1_22_syscall_windows_386.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_windows_arm64.go b/stdlib/unrestricted/go1_22_syscall_windows_amd64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_windows_arm64.go rename to stdlib/unrestricted/go1_22_syscall_windows_amd64.go index eddaf1c37..210e44cf7 100644 --- a/stdlib/unrestricted/go1_20_syscall_windows_arm64.go +++ b/stdlib/unrestricted/go1_22_syscall_windows_amd64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_windows_386.go b/stdlib/unrestricted/go1_22_syscall_windows_arm.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_windows_386.go rename to stdlib/unrestricted/go1_22_syscall_windows_arm.go index eddaf1c37..210e44cf7 100644 --- a/stdlib/unrestricted/go1_20_syscall_windows_386.go +++ b/stdlib/unrestricted/go1_22_syscall_windows_arm.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unrestricted/go1_20_syscall_windows_amd64.go b/stdlib/unrestricted/go1_22_syscall_windows_arm64.go similarity index 94% rename from stdlib/unrestricted/go1_20_syscall_windows_amd64.go rename to stdlib/unrestricted/go1_22_syscall_windows_arm64.go index eddaf1c37..210e44cf7 100644 --- a/stdlib/unrestricted/go1_20_syscall_windows_amd64.go +++ b/stdlib/unrestricted/go1_22_syscall_windows_arm64.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract syscall'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unrestricted diff --git a/stdlib/unsafe/go1_21_unsafe.go b/stdlib/unsafe/go1_21_unsafe.go index 213d605f6..904e66fc4 100644 --- a/stdlib/unsafe/go1_21_unsafe.go +++ b/stdlib/unsafe/go1_21_unsafe.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unsafe'. DO NOT EDIT. -//go:build go1.21 -// +build go1.21 +//go:build go1.21 && !go1.22 +// +build go1.21,!go1.22 package unsafe diff --git a/stdlib/unsafe/go1_20_unsafe.go b/stdlib/unsafe/go1_22_unsafe.go similarity index 82% rename from stdlib/unsafe/go1_20_unsafe.go rename to stdlib/unsafe/go1_22_unsafe.go index de33d9f5f..6efd39e82 100644 --- a/stdlib/unsafe/go1_20_unsafe.go +++ b/stdlib/unsafe/go1_22_unsafe.go @@ -1,7 +1,7 @@ // Code generated by 'yaegi extract unsafe'. DO NOT EDIT. -//go:build go1.20 && !go1.21 -// +build go1.20,!go1.21 +//go:build go1.22 +// +build go1.22 package unsafe diff --git a/stdlib/unsafe/unsafe.go b/stdlib/unsafe/unsafe.go index 06093f59b..8824f0ff8 100644 --- a/stdlib/unsafe/unsafe.go +++ b/stdlib/unsafe/unsafe.go @@ -1,5 +1,3 @@ -//go:build go1.20 - // Package unsafe provides wrapper of standard library unsafe package to be imported natively in Yaegi. package unsafe