modernc.org/libc v1.43.1
AArch64 (ARM64) architecture stringBacktick shell command-substitution syntax
SHA-2563fde8987908e558fc6167d3c185cdee8ea4a3bb4f696175825bb688238583460
Evidence
11:8… ttps://git.musl-libc.org/cgit/musl/snapshot/$(TAR)
12
13all: editor
14 golint 2>&1
15 staticcheck 2>&1
16
17build_all_targets:
18 ./build_all_targets.sh
19 echo done
20
21clean:
22 rm -f log-* cpu.test mem.test *.out
23 git clean -fd
24 find testdata/nsz.repo.hu/ -name \*.go -d …
1// Copyright 2021 The Libc Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build ignore
6// +build ignore
7
8package main
9
10import (
11 "fmt"
12 "os"
13 "path/filepath"
14 "strings"
15)
16
⋯5 lines
22func main() {
23 if len(os.Args) != 3 {
24 fail(1, "expected 2 args: pattern and replacement\n")
25 }
26
27 pattern := os.Args[1]
28 replacement := os.Args[2]
29 if err := filepath.Walk(".", func(path string, info os.FileInfo, err error) error {
30 if err != nil {
31 return err
⋯14 lines
46 // x 5
47 file = file[:x] + replacement + file[x+len(pattern):]
48 dst := filepath.Join(dir, file)
1// Copyright 2023 The Libc Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build linux && amd64
6
7package libc // import "modernc.org/libc"
8
9// /tmp/dbg/libc-test/
10
11import (
12 "bytes"
13 "context"
14 "encoding/hex"
15 "flag"
16 "fmt"
17 "io/fs"
18 "os"
19 "path/filepath"
20 "regexp"
21 "runtime"
22 "slices"
23 "strings"
24 "sync"
25 "sync/atomic"
26 "testing"
27 "time"
28 "unsafe"
29
30 ccgo "modernc.org/ccgo/v4/lib"
31 util "modernc.org/fileutil/ccgo"
32 "modernc.org/libc/internal/archive"
33 "modernc.org/memory"
34)
35
36var (
37 cpus = runtime.GOMAXPROCS(-1)
38 goarch = runtime.GOARCH
39 goos = runtime.GOOS
40 j = fmt.Sprint(cpus)
41 muslArch string
42 target = fmt.Sprintf("%s/%s", goos, goarch)
43
44 …
80 case "s390x":
81 muslArch = "s390x"
82 default:
83 fmt.Printf("unsupported goarch: %s\n", goarch)
84 os.Exit(1)
85 }
86
87 rc := m.Run()
88 os.Exit(rc)
89}
90
91func TestSwap(t *testing.T) {
92 if g, e := X__builtin_bswap16(nil, 0x1234), uint16(0x3412); g != e {
93 t.Errorf("%#04x %#04x", g, e)
94 }
95 if g, e := X__builtin_bswap32(nil, 0x12345678), uint32(0x78563412); g != e {
96 t.Errorf("%#04x %#04x", …
115:22… 86
116 if g, e := Xfmod(tls, x, y), 1.3518643030646695; g != e {
117 t.Fatal(g, e)
118 }
119}
⋯7 lines
Showing the top 5 files — 8 more files (38 regions) not shown.